Linux Lite Forums

Software - Support => Installing Linux Lite => Topic started by: timbuck2 on January 01, 2019, 08:25:39 PM

Title: After installing how do I set grub to chainload old windows10 drive?
Post by: timbuck2 on January 01, 2019, 08:25:39 PM
I have Linux Lite 4.2 and grub installed on ssd with the grub menu showing at boot.

My old windows 10 drive is still attached and mounted so I can browse files.

I can boot the old win10 drive through the bios boot menu, but would like to add the option into the grub menu.

Can anyone suggest a way to add an entry to chainload the windows10 drive through the grub menu?
Title: Re: After installing how do I set grub to chainload old windows10 drive?
Post by: bitsnpcs on January 01, 2019, 08:54:57 PM
Can anyone suggest a way to add an entry to chainload the windows10 drive through the grub menu?


Hello timbuck2,

Code: [Select]
menuentry "Windows" {
   insmod chain
   insmod ntfs
   set root=(hd0,1)
   chainloader +1
}

https://www.gnu.org/software/grub/manual/grub/html_node/Chain_002dloading.html#Chain_002dloading

https://www.gnu.org/software/grub/manual/grub/html_node/DOS_002fWindows.html#DOS_002fWindows
Title: Re: After installing how do I set grub to chainload old windows10 drive?
Post by: bitsnpcs on January 01, 2019, 09:33:26 PM
Hello timbuck2,

unsure if you know the above but want only to add it in to the menu of the grub screen ?
It is discussed here how I edited grub, https://www.linuxliteos.com/forums/off-topic/my-first-try/
Title: Re: After installing how do I set grub to chainload old windows10 drive?
Post by: firenice03 on January 01, 2019, 10:53:09 PM
I have Linux Lite 4.2 and grub installed on ssd with the grub menu showing at boot.

My old windows 10 drive is still attached and mounted so I can browse files.

I can boot the old win10 drive through the bios boot menu, but would like to add the option into the grub menu.

Can anyone suggest a way to add an entry to chainload the windows10 drive through the grub menu?

Was the Old Windows Drive not attached when LL was installed?

LL Grub will check for other installed OS's and add to grub..
- If it was not - from within LL open terminal and run the following:

Code: [Select]
sudo update-grub
enter your password allow it to process then reboot you should see Windows..
I have an output example here:
https://www.linuxliteos.com/forums/installing-linux-lite/can-i-install-two-copies-of-ll4-0-on-the-same-drive-and-have-grub/msg41879/#msg41879
Title: Re: After installing how do I set grub to chainload old windows10 drive?
Post by: timbuck2 on January 02, 2019, 09:01:32 AM
I have Linux Lite 4.2 and grub installed on ssd with the grub menu showing at boot.

My old windows 10 drive is still attached and mounted so I can browse files.

I can boot the old win10 drive through the bios boot menu, but would like to add the option into the grub menu.

Can anyone suggest a way to add an entry to chainload the windows10 drive through the grub menu?

Was the Old Windows Drive not attached when LL was installed?

LL Grub will check for other installed OS's and add to grub..
- If it was not - from within LL open terminal and run the following:

Code: [Select]
sudo update-grub
enter your password allow it to process then reboot you should see Windows..
I have an output example here:
https://www.linuxliteos.com/forums/installing-linux-lite/can-i-install-two-copies-of-ll4-0-on-the-same-drive-and-have-grub/msg41879/#msg41879

Yeah I just noticed that.  My grub menu was graphical and the text was soooo small on my 1080p monitor I couldn't read it.

I edited
Code: [Select]
etc/default/grub to change the line
Code: [Select]
GRUB_TERMINAL=console so I could read the entries from text mode menu and when I ran
Code: [Select]
sudo update-grub I noticed it found my windows drive automatically.  So when the text menu came up at boot and I could read it I noticed windows 10 was there already. 

In
Code: [Select]
/etc/grub.d I moved
Code: [Select]
30_os-prober to
Code: [Select]
11_os-prober so my windows drive shows up after linux but before the memtest86+ entries.
Title: Re: After installing how do I set grub to chainload old windows10 drive?
Post by: firenice03 on January 02, 2019, 12:50:34 PM
Cool Deal!!! Glad to hear your set up :)