

That is important because this is the file read by GRUB2 when it builds the menu that appears at start-up time. Once that has done its business, then you can look into /boot/grub/grub.cfg to check that the text added into 40_custom has found its way into there. After all that decoding, my final comment on what’s above is a simple one: the text “Windows 7” is what will appear in the GRUB menu so you can change this as you see fit.Īfter saving 40_custom, the next step is to issue the following command to update grub.cfg: If you dont have a System Reserved then it will be your OS drive/partition. I set C:/ to active and it fixed it but isnt correct. edit: 'System Reserved' should be active. If it doesn't you can right click 'mark petition as active'. The next line (chainloader) tells GRUB to load the first sector of the Windows drive so that it can boot. go to windows 'disk management' and make sure the drive where windows is installed has 'active' in the status column. While I was expecting to see entries like (hd0,6) in /boot/grub/grub.cfg, what I saw were ones like (hd0,msdos6) instead with the number in the text after the comma being the partition identifier 1 is the first (sda1), 2 (sda2) is the second and so on. More generally, hd0 (or /dev/sda elsewhere) refers to the first hard disk installed in any PC with hd1 (or /dev/sdb elsewhere) being the second and so on.

Since the location of the Windows installation can differ widely, I need to explain the “set root” line because (hd0,msdos2) refers to /dev/sda2 on my machine. The first step is to edit /etc/grub.d/40_custom (using SUDO) and add the following lines to the bottom of the file:
Grub2 windows 10 chainloader how to#
Thankfully, I eventually figured out how to do this and the process is shared here in a more coherent order than the one in which I discovered all of the steps. However, unlike the same attempt with my Asus Eee PC where Windows XP coexists with Ubuntu, there was no menu entry on the GRUB (I understand that Ubuntu has had version 2 of this since 9.04 though the internal version is something like 1.9x you can issue grub-install -v at the command line to find out what version you have on your system) menu afterwards. A recent endeavour of mine has been to set up a dual-booting arrangement on my Toshiba Equium laptop with Ubuntu 10.10 and Windows 7 on there side by side.
