[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Grub installation on a USB external disk



2007/9/25, Mikkel L. Ellertson <mikkel infinity-ltd com>:
> 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!
>
>
> --
> fedora-list mailing list
> fedora-list redhat com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
>
Tnx Mikkel for the help

device map is like this???

(hd0)     /dev/sda
(hd1)     /dev/sdb

where sdb is the internal disk and sda is the USB disk.

Tnx



-- 
Antonio Montagnani
Skype : antoniomontag


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]