Thread: grub question
View Single Post

   
  #4 (permalink)  
Old 01-19-2008, 06:13 AM
Timothy Murphy
 
Posts: n/a
Default Re: grub question

François Patte wrote:

> I suppose that what you call "support files" is the /boot/grub/grub.conf
> isn't it?


Exactly

> So how do I tell grub, installed in the sda MBR to query its
> configuration file in /boot/grub which is located in sdb1?


By the "root" line in the grub entry.
Here is an entry in my grub.conf,
telling the machine that /boot is the second partition on /dev/sdb ,
ie /dev/sdb2 .

title Fedora (2.6.21-1.3228.fc7)
root (hd1,1)
kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=/dev/VolGroup00/slash
initrd /initrd-2.6.21-1.3228.fc7.img

The hd1 means second disk.

If you have a /boot partition at sdb1 you would say
root (hd1,0)

Note that if you do not have a separate partition for /boot
(ie it is in the / partition)
then you would say "kernel /boot/vmlinuz..." and "initrd /boot/initrd...".



--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Reply With Quote