SATA disks and Chapter 8. Making the LFS System Bootable
profplump at engineer.com
Wed Apr 27 07:47:45 PDT 2005
On Apr 26, 2005, at 12:51 PM, Mark A. Nicolosi wrote:
> Grub uses its own naming structure for drives and partitions in the
> of (hdn,m), where n is the hard drive number and m is the partition
> number, both starting from zero. For example, partition hda1 is (hd0,0)
> to Grub and hdb3 is (hd1,2). In contrast to Linux, Grub does not
> consider CD-ROM drives to be hard drives. For example, if using a CD on
> hdb and a second hard drive on hdc, that second hard drive would still
> be (hd1).
> I think the book should mention something like "If you're computer has
> SCSI disks and you don't have any IDE disks, sda would be (hd0)." But
> made to fit better into the paragraph. Hope that makes sense ;-)
Or maybe something that more completely describes the way that grub
chooses names like:
Grub uses its own naming structure for drives and partitions in the
form of (hdn,m), where n is the hard drive number and m is the
partition number, both starting from zero. Grub does not distinguish
between busses, but simply names disks in the same order they are
presented by your BIOS, skipping any optical drives. While the
particular order of disks that grub chooses is BIOS dependent, /dev/hda
or /dev/sda are usually considered hd0 by grub.
For example, on an IDE-based machine with a hard drive at /dev/hda, a
CD drive at /dev/hdc, and a second hard drive at /dev/hde, grub would
likely present the first hard drive as hd0, the second hard drive as
hd1, and would not present the CD drive at all.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1664 bytes
Desc: not available
More information about the lfs-dev