4

I've got two hard drives in my computer after I replaced one for windows. Since I love linux so much, I put a copy of Xubuntu on the one that I had initially replaced, and I now have two separate hard drives with two separate operating systems. I can boot to either one from the BIOS, and I used EasyBCD so that it will let me choose when booting to the windows drive, but I'd like to add a GRUB option for the windows drive so I can eliminate any additional software. How would I add an option for an extra hard drive?

GParted layout on my linux drive: enter image description here

GParted layout on the windows drive: enter image description here

2

I believe that Grub will automatically detect the second drive. Boot into Xubuntu and run sudo update-grub.

  • Just got Adding boot menu entry for EFI firmware configuration. Does that mean it will automatically show me the menu from now on, or is there a config file for that? – theStandard Nov 20 '14 at 4:05
  • @theStandard honestly, I have no idea. Reboot and see if the menu entry shows up. If not, we will just add it to /boot/grub/grub.cfg by hand. – Elephant454 Nov 20 '14 at 4:08
  • The extra entry wasn't there, and Xubuntu did not boot to the GRUB menu by default – theStandard Nov 20 '14 at 4:27
  • So, so sorry for kind of abandoning you for three days. Could you post your /boot/grub/grub.cfg to Pastebin? Also, what is the partition you are trying to add a menu entry for? ("/dev/sda1" for example) – Elephant454 Nov 23 '14 at 16:01
  • 1
    It's cool -- it's not like my computer won't boot -- I'll get that for you. – theStandard Nov 23 '14 at 21:08
1

if you have live linux in a hard drive and you install anothe OS on anothe r hard disk. For ubuntu just do:

#update-grub  

os prober will properly detect other OS. If you are in gentoo run in terminal:

#grub2-mkconfig -o /boot/grub/grub.cfg 

hopefully other os will be autodetect.

  • 2
    not working on 16.04 – pylover Jul 25 '16 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.