Grub installation on a USB external disk

Mikkel L. Ellertson mikkel at infinity-ltd.com
Tue Sep 25 15:53:47 UTC 2007


antonio montagnani wrote:
> I created a grub.conf file in /boot/grub
> 
> timeout=10
> default=0
> splashimage=(hd1,0)/grub/splash.xpm.gz
> title FC7  2.6.22.5-76.fc7 14/9/2007
>        kernel (hd1,0)/vmlinuz-2.6.22.5-76.fc7 ro root=/dev/VolGroup00/LogVol00
>        initrd (hd1,0)/initrd-2.6.22.5-76.fc7.img
> title FC7  2.6.22.1-65.fc7 27/8/2007
>        kernel (hd1,0)/vmlinuz-2.6.22.4-65.fc7 ro root=/dev/VolGroup00/LogVol00
>        initrd (hd1,0)/initrd-2.6.22.4-65.fc7.img
> title FC7  2.6.22.1-27.fc7 21/7/2007
>        kernel (hd1,0)/vmlinuz-2.6.22.1-27.fc7 ro root=/dev/VolGroup00/LogVol00
>        initrd (hd1,0)/initrd-2.6.22.1-27.fc7.img
> 
> #title Windows
> #       rootnoverify (hdx,y)
> #       chainloader +1
> 
If you are booting the USB drive directly from the BIOS, then you
are going to have a problem with this. When you boot that way, the
USB hard drive becomes hd0 instead of hd1. Your laptop hard drive
becomes hd1 instead of hd0. So you have to change all the hd
references to reflect this. You may also want to change device.map
to reflect this.

One side note, you can use this form instead of having to specify
the drive in the kernel and initrd line (excuse the line wrap...):

title FC7  2.6.22.5-76.fc7 14/9/2007
	root (hd0, 0)
        kernel /vmlinuz-2.6.22.5-76.fc7 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.22.5-76.fc7.img

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070925/97b12231/attachment-0001.sig>


More information about the fedora-list mailing list