Seth Woolley's Man Viewer

hd(4) - hd, hd - MFM/IDE hard disk devices - man 4 hd

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

HD(4)                      Linux Programmer's Manual                     HD(4)



NAME
       hd - MFM/IDE hard disk devices

DESCRIPTION
       The hd* devices are block devices to access(2,5) MFM/IDE hard disk drives in(1,8)
       raw(3x,7,8,3x cbreak) mode.  The master(5,8) drive on the primary IDE controller (major device
       number 3) is hda; the slave drive is hdb.  The master(5,8) drive of the sec-
       ond controller (major device number 22) is hdc and the slave hdd.

       General IDE block device names have the form hdX, or hdXP, where X is a
       letter denoting the physical drive, and P is a number denoting the par-
       tition on that physical drive.  The first form, hdX, is used to address
       the  whole drive.  Partition numbers are assigned in(1,8) the order the par-
       titions are discovered, and only non-empty, non-extended partitions get
       a  number.  However, partition numbers 1-4 are given to the four parti-
       tions described in(1,8) the MBR (the `primary'  partitions),  regardless  of
       whether they are unused or extended.  Thus, the first logical partition
       will be hdX5.  Both DOS-type partitioning and BSD-disklabel  partition-
       ing  are supported.  You can have at most 63 partitions on an IDE disk.

       For example, /dev/hda refers to all of the first IDE drive in(1,8) the  sys-
       tem;  and  /dev/hdb3 refers to the third DOS `primary' partition on the
       second one.

       They are typically created by:

              mknod(1,2) -m 660 /dev/hda b 3 0
              mknod(1,2) -m 660 /dev/hda1 b 3 1
              mknod(1,2) -m 660 /dev/hda2 b 3 2
              ...
              mknod(1,2) -m 660 /dev/hda8 b 3 8
              mknod(1,2) -m 660 /dev/hdb b 3 64
              mknod(1,2) -m 660 /dev/hdb1 b 3 65
              mknod(1,2) -m 660 /dev/hdb2 b 3 66
              ...
              mknod(1,2) -m 660 /dev/hdb8 b 3 72
              chown(1,2) root:disk /dev/hd*

FILES
       /dev/hd*

SEE ALSO
       chown(1,2)(1), mknod(1,2)(1), sd(4), mount(2,8)(8)



Linux                             1992-12-17                             HD(4)

References for this manual (incoming links)