OSDN Git Service

LDP: Update original to LDP v3.79
[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
34 .B hd*
35 devices are block devices to access MFM/IDE hard disk drives
36 in raw mode.
37 The master drive on the primary IDE controller (major device
38 number 3) is
39 .BR hda ;
40 the slave drive is
41 .BR hdb .
42 The master drive of the second controller (major device number 22)
43 is
44 .B hdc
45 and the slave is
46 .BR hdd .
47 .LP
48 General IDE block device names have the form
49 .BI hd X\c
50 , or
51 .BI hd XP\c
52 , where
53 .I X
54 is a letter denoting the physical drive, and
55 .I P
56 is a number denoting the partition on that physical drive.
57 The first form,
58 .BI hd X\c
59 , is used to address the whole drive.
60 Partition numbers are assigned in the order the partitions
61 are discovered, and only nonempty, nonextended partitions
62 get a number.
63 However, partition numbers 1-4 are given to the
64 four partitions described in the MBR (the "primary" partitions),
65 regardless of whether they are unused or extended.
66 Thus, the first logical partition will be
67 .BI hd X 5\c
68 \&.
69 Both DOS-type partitioning and BSD-disklabel partitioning are supported.
70 You can have at most 63 partitions on an IDE disk.
71 .LP
72 For example,
73 .I /dev/hda
74 refers to all of the first IDE drive in the system; and
75 .I /dev/hdb3
76 refers to the third DOS "primary" partition on the second one.
77 .LP
78 They are typically created by:
79 .RS
80 .sp
81 mknod \-m 660 /dev/hda b 3 0
82 .br
83 mknod \-m 660 /dev/hda1 b 3 1
84 .br
85 mknod \-m 660 /dev/hda2 b 3 2
86 .br
87 \&...
88 .br
89 mknod \-m 660 /dev/hda8 b 3 8
90 .br
91 mknod \-m 660 /dev/hdb b 3 64
92 .br
93 mknod \-m 660 /dev/hdb1 b 3 65
94 .br
95 mknod \-m 660 /dev/hdb2 b 3 66
96 .br
97 \&...
98 .br
99 mknod \-m 660 /dev/hdb8 b 3 72
100 .br
101 chown root:disk /dev/hd*
102 .RE
103 .SH FILES
104 /dev/hd*
105 .SH SEE ALSO
106 .BR chown (1),
107 .BR mknod (1),
108 .BR sd (4),
109 .BR mount (8)
110 .SH COLOPHON
111 This page is part of release 3.79 of the Linux
112 .I man-pages
113 project.
114 A description of the project,
115 information about reporting bugs,
116 and the latest version of this page,
117 can be found at
118 \%http://www.kernel.org/doc/man\-pages/.