]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man4/hd.4
Hyphen/dash fixes
[thirdparty/man-pages.git] / man4 / hd.4
CommitLineData
fea681da
MK
1.\" Copyright (c) 1993 Michael Haardt (michael@moria.de), Fri Apr 2 11:32:09 MET DST 1993
2.\"
3.\" This is free documentation; you can redistribute it and/or
4.\" modify it under the terms of the GNU General Public License as
5.\" published by the Free Software Foundation; either version 2 of
6.\" the License, or (at your option) any later version.
7.\"
8.\" The GNU General Public License's references to "object code"
9.\" and "executables" are to be interpreted as the output of any
10.\" document formatting or typesetting system, including
11.\" intermediate and printed output.
12.\"
13.\" This manual is distributed in the hope that it will be useful,
14.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16.\" GNU General Public License for more details.
17.\"
18.\" You should have received a copy of the GNU General Public
19.\" License along with this manual; if not, write to the Free
20.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
21.\" USA.
22.\"
23.\" Modified Sat Jul 24 16:56:20 1993 by Rik Faith <faith@cs.unc.edu>
24.\" Modified Mon Oct 21 21:38:51 1996 by Eric S. Raymond <esr@thyrsus.com>
25.\" (and some more by aeb)
26.\"
27.TH HD 4 1992-12-17 "Linux" "Linux Programmer's Manual"
28.SH NAME
29hd \- MFM/IDE hard disk devices
30.SH DESCRIPTION
31The \fBhd*\fP devices are block devices to access MFM/IDE hard disk drives
32in raw mode. The master drive on the primary IDE controller (major device
33number 3) is \fBhda\fR; the slave drive is \fBhdb\fR. The master
34drive of the second controller (major device number 22) is \fBhdc\fR
35and the slave \fBhdd\fR.
36.LP
37General IDE block device names have the form
38.BI hd X\c
39, or
40.BI hd XP\c
41, where
42.I X
43is a letter denoting the physical drive, and
44.I P
45is a number denoting the partition on that physical drive.
46The first form,
47.BI hd X,
48is used to address the whole drive.
49Partition numbers are assigned in the order the partitions
50are discovered, and only non-empty, non-extended partitions
51get a number. However, partition numbers 1-4 are given to the
52four partitions described in the MBR (the `primary' partitions),
53regardless of whether they are unused or extended.
54Thus, the first logical partition will be
55.BI hd X 5\c
56\&.
57Both DOS-type partitioning and BSD-disklabel partitioning are supported.
58You can have at most 63 partitions on an IDE disk.
59.LP
60For example,
61.B /dev/hda
62refers to all of the first IDE drive in the system; and
63.B /dev/hdb3
64refers to the third DOS `primary' partition on the second one.
65.LP
66They are typically created by:
67.RS
68.sp
69mknod -m 660 /dev/hda b 3 0
70.br
71mknod -m 660 /dev/hda1 b 3 1
72.br
73mknod -m 660 /dev/hda2 b 3 2
74.br
75\&...
76.br
77mknod -m 660 /dev/hda8 b 3 8
78.br
79mknod -m 660 /dev/hdb b 3 64
80.br
81mknod -m 660 /dev/hdb1 b 3 65
82.br
83mknod -m 660 /dev/hdb2 b 3 66
84.br
85\&...
86.br
87mknod -m 660 /dev/hdb8 b 3 72
88.br
89chown root:disk /dev/hd*
90.RE
91.SH FILES
92/dev/hd*
93.SH "SEE ALSO"
94.BR chown (1),
95.BR mknod (1),
96.BR sd (4),
97.BR mount (8)