Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo/grub on multi-disk computer [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5914

PostPosted: Wed Oct 11, 2017 11:14 pm    Post subject: Gentoo/grub on multi-disk computer [SOLVED] Reply with quote

If I'm installing Gentoo on a multi-disk computer, and I'm installing on a disk other than /dev/sda, do I need to install grub to /dev/sda, or do I install grub to the disk I'm installing Gentoo on?
_________________
Gentoo Studio
Gentoo Studio in open beta. Feedback wanted.


Last edited by audiodef on Sun Oct 22, 2017 12:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11431

PostPosted: Thu Oct 12, 2017 12:44 am    Post subject: Reply with quote

Install Grub to the disk which your BIOS or UEFI implementation will boot. On some systems, you can configure which disk this will be from inside the BIOS/UEFI user interface. On others, the firmware picks one disk (or, if you're lucky, a series of disks, but in a predictable and stable order) and boots from only that disk (or disks). If you're really unlucky, the firmware will pick one disk, not let you choose which disk it will be, and not be consistent across reboots. I don't recall reading of any such firmware, but firmware authors are notorious for shipping barely functioning blobs of garbage. :)
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5914

PostPosted: Thu Oct 12, 2017 1:50 pm    Post subject: Reply with quote

Thanks, Hu. I hate blobs.
_________________
Gentoo Studio
Gentoo Studio in open beta. Feedback wanted.
Back to top
View user's profile Send private message
djentoo
n00b
n00b


Joined: 17 Oct 2017
Posts: 12

PostPosted: Tue Oct 17, 2017 4:56 pm    Post subject: Reply with quote

Hu wrote:
Install Grub to the disk which your BIOS or UEFI implementation will boot. On some systems, you can configure which disk this will be from inside the BIOS/UEFI user interface. On others, the firmware picks one disk (or, if you're lucky, a series of disks, but in a predictable and stable order) and boots from only that disk (or disks). If you're really unlucky, the firmware will pick one disk, not let you choose which disk it will be, and not be consistent across reboots. I don't recall reading of any such firmware, but firmware authors are notorious for shipping barely functioning blobs of garbage. :)


Wouldn't this affect the MBR if you have a Windows partition?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11431

PostPosted: Wed Oct 18, 2017 1:33 am    Post subject: Reply with quote

djentoo: I don't understand your question or how it applies to the original poster's question. Yes, installing Grub is often done to the MBR, but might be done in some other way if you needed a foreign bootloader (such as Microsoft's) to have first choice of how to boot the system. This thread is entirely about where to put the first stages of the bootloader to ensure that it is used at all by the system's firmware, independent of specifically which bootloader is used.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2038
Location: Illinois, USA

PostPosted: Wed Oct 18, 2017 2:38 am    Post subject: Reply with quote

If not installing Gentoo on /dev/sda, you will also have to install grub on the MBR of the disk it's on or to the partition that it's on. You then modify the grub menu to chain load the partition on the other disk.

On one of my systems, Windows XP is on sda and Gentoo is on sdb and so is Ubuntu. Windows "chain loads" the sdb MBR using a procedure intended for Win98. When that grub menu comes up it lists the available kernels on /boot and also has a menu item to chain load Ubuntu on one of the partitions. When I installed Ubuntu, I chose to install grub2 on that partition. Grub legacy will chain load grub2 and I'm sure vice versa.

UEFI is a whole other story.

You can also install windows on one drive then afterwards install gentoo on another drive and choose that drive as the boot drive in the BIOS. In that case install grub in the MBR so that the BIOS boots it and add a menu line to chainload Windows. Windows will call its boot drive C: no matter where it is physically.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum