Jump to content

Dual Boot Ubuntu + Windows separate storage drives

Hi, I recently built a new rig and installed windows and ubuntu ( in that order ) on separate SSD's. I've been trying to rely on gnu grub for OS selection at startup but have been hitting a snag as of late. Basically, when I try to load windows from gnu grub, it says "no such device" and that it cannot find /efi/Boot/Windows/mgfw.efi in the drive that it's supposed to be on. What is interesting to me is that this happens sometimes. And i'm not really sure what changes. Once it failed, I went into command line mode in gnu grub, came back and re-tried and launched perfectly.

The only way I can get around this is going to BIOS and changing the boot order.

I have tried:

$ sudo update-grub

and it says it found "Windows boot loader" and that it is adding it to the configuration. when I open the grub cfg under /boot/grub I can see it there.

 

I've also tried the steps described on this thread: https://askubuntu.com/questions/197868/grub-does-not-detect-windows and I think maybe it worked once, but the next time I shut it down and restarted the issue resurfaced.

 

My current workaround is to go into BIOS and change the boot order which is sorta painful to go through.

 

I'm not super familiar with dealing with gnu grub or boot modes i.e. UEFI vs Legacy boot so any help and "dumbing it down" would be very helpful!

Let me know if I can provide other information that might be useful. Thanks in advance.

Link to post
Share on other sites

On some boards you can disable all boot devices and it will bring up a menu to choose what drive to boot from on power-on/reset.  Another option is to use the "boot selection hotkey" on bootup to choose a different startup drive.

 

I find dealing with grub or Windows boot manager to be more hassle than its worth if you have auto-updates going on in the Linux machine.

Link to post
Share on other sites

2 hours ago, KarathKasun said:

On some boards you can disable all boot devices and it will bring up a menu to choose what drive to boot from on power-on/reset.  Another option is to use the "boot selection hotkey" on bootup to choose a different startup drive.

 

I find dealing with grub or Windows boot manager to be more hassle than its worth if you have auto-updates going on in the Linux machine.

AFAICT, best I can get is having to F12 every time I startup / switch OS to choose boot device and then hiding grub :/

Link to post
Share on other sites

9 hours ago, esanmiguelc said:

AFAICT, best I can get is having to F12 every time I startup / switch OS to choose boot device and then hiding grub :/

Dual boot used to be much simpler.  But now it seems like MS will randomly update parts of their bootloader just to obfuscate and frustrate Linux users.

Link to post
Share on other sites

Try:

@= sda1 or whatever partition grub is on, but probably sda1
@@= sda or bootsector of hdd where linux and windows 10 is installed, but probably sda

sudo mount /dev/@ /mnt

sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

grub-install /dev/@@

sudo update-grub

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×