OSDN Git Service

(split) LDP: Update original to LDP v3.50.
[linuxjm/LDP_man-pages.git] / original / man4 / hd.4
1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\"     Fri Apr  2 11:32:09 MET DST 1993
3 .\"
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.
9 .\"
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.
14 .\"
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.
19 .\"
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/>.
23 .\" %%%LICENSE_END
24 .\"
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)
28 .\"
29 .TH HD 4 1992-12-17 "Linux" "Linux Programmer's Manual"
30 .SH NAME
31 hd \- MFM/IDE hard disk devices
32 .SH DESCRIPTION
33 The \fBhd*\fP devices are block devices to access MFM/IDE hard disk drives
34 in raw mode.
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.
39 .LP
40 General IDE block device names have the form
41 .BI hd X\c
42 , or
43 .BI hd XP\c
44 , where
45 .I X
46 is a letter denoting the physical drive, and
47 .I P
48 is a number denoting the partition on that physical drive.
49 The first form,
50 .BI hd X,
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
54 get a number.
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
59 .BI hd X 5\c
60 \&.
61 Both DOS-type partitioning and BSD-disklabel partitioning are supported.
62 You can have at most 63 partitions on an IDE disk.
63 .LP
64 For example,
65 .I /dev/hda
66 refers to all of the first IDE drive in the system; and
67 .I /dev/hdb3
68 refers to the third DOS "primary" partition on the second one.
69 .LP
70 They are typically created by:
71 .RS
72 .sp
73 mknod \-m 660 /dev/hda b 3 0
74 .br
75 mknod \-m 660 /dev/hda1 b 3 1
76 .br
77 mknod \-m 660 /dev/hda2 b 3 2
78 .br
79 \&...
80 .br
81 mknod \-m 660 /dev/hda8 b 3 8
82 .br
83 mknod \-m 660 /dev/hdb b 3 64
84 .br
85 mknod \-m 660 /dev/hdb1 b 3 65
86 .br
87 mknod \-m 660 /dev/hdb2 b 3 66
88 .br
89 \&...
90 .br
91 mknod \-m 660 /dev/hdb8 b 3 72
92 .br
93 chown root:disk /dev/hd*
94 .RE
95 .SH FILES
96 /dev/hd*
97 .SH SEE ALSO
98 .BR chown (1),
99 .BR mknod (1),
100 .BR sd (4),
101 .BR mount (8)