1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\" Fri Apr 2 11:32:09 MET DST 1993
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 .\" GNU General Public License for more details.
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
25 .\" Modified Sat Jul 24 16:56:20 1993 by Rik Faith <faith@cs.unc.edu>
26 .\" Modified Mon Oct 21 21:38:51 1996 by Eric S. Raymond <esr@thyrsus.com>
27 .\" (and some more by aeb)
29 .TH HD 4 1992-12-17 "Linux" "Linux Programmer's Manual"
31 hd \- MFM/IDE hard disk devices
33 The \fBhd*\fP devices are block devices to access MFM/IDE hard disk drives
35 The master drive on the primary IDE controller (major device
36 number 3) is \fBhda\fR; the slave drive is \fBhdb\fR.
37 The master drive of the second controller (major device number 22)
38 is \fBhdc\fR and the slave \fBhdd\fR.
40 General IDE block device names have the form
46 is a letter denoting the physical drive, and
48 is a number denoting the partition on that physical drive.
51 is used to address the whole drive.
52 Partition numbers are assigned in the order the partitions
53 are discovered, and only nonempty, nonextended partitions
55 However, partition numbers 1-4 are given to the
56 four partitions described in the MBR (the "primary" partitions),
57 regardless of whether they are unused or extended.
58 Thus, the first logical partition will be
61 Both DOS-type partitioning and BSD-disklabel partitioning are supported.
62 You can have at most 63 partitions on an IDE disk.
66 refers to all of the first IDE drive in the system; and
68 refers to the third DOS "primary" partition on the second one.
70 They are typically created by:
73 mknod \-m 660 /dev/hda b 3 0
75 mknod \-m 660 /dev/hda1 b 3 1
77 mknod \-m 660 /dev/hda2 b 3 2
81 mknod \-m 660 /dev/hda8 b 3 8
83 mknod \-m 660 /dev/hdb b 3 64
85 mknod \-m 660 /dev/hdb1 b 3 65
87 mknod \-m 660 /dev/hdb2 b 3 66
91 mknod \-m 660 /dev/hdb8 b 3 72
93 chown root:disk /dev/hd*