Linux Lite Forums
After installing how do I set grub to chainload old windows10 drive? - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Installing Linux Lite (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=17)
+--- Thread: After installing how do I set grub to chainload old windows10 drive? (/showthread.php?tid=5900)



After installing how do I set grub to chainload old windows10 drive? - timbuck2 - 01-02-2019

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?


Re: After installing how do I set grub to chainload old windows10 drive? - bitsnpcs - 01-02-2019

(01-02-2019, 01:25 AM)timbuck2 link Wrote: Can anyone suggest a way to add an entry to chainload the windows10 drive through the grub menu?


Hello timbuck2,

Code:
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


Re: After installing how do I set grub to chainload old windows10 drive? - bitsnpcs - 01-02-2019

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.freecinema2022.gq/forums/off-topic/my-first-try/



Re: After installing how do I set grub to chainload old windows10 drive? - firenice03 - 01-02-2019

(01-02-2019, 01:25 AM)timbuck2 link Wrote: 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:
sudo update-grub

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


Re: After installing how do I set grub to chainload old windows10 drive? - timbuck2 - 01-02-2019

(01-02-2019, 03:53 AM)firenice03 link Wrote: [quote author=timbuck2 link=topic=6128.msg45185#msg45185 date=1546392339]
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:
sudo update-grub

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

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:
etc/default/grub
to change the line
Code:
GRUB_TERMINAL=console
so I could read the entries from text mode menu and when I ran
Code:
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:
/etc/grub.d
I moved
Code:
30_os-prober
to
Code:
11_os-prober
so my windows drive shows up after linux but before the memtest86+ entries.


Re: After installing how do I set grub to chainload old windows10 drive? - firenice03 - 01-02-2019

Cool Deal!!! Glad to hear your set up Smile