]>
Commit | Line | Data |
---|---|---|
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 | |
29 | hd \- MFM/IDE hard disk devices | |
30 | .SH DESCRIPTION | |
31 | The \fBhd*\fP devices are block devices to access MFM/IDE hard disk drives | |
32 | in raw mode. The master drive on the primary IDE controller (major device | |
33 | number 3) is \fBhda\fR; the slave drive is \fBhdb\fR. The master | |
34 | drive of the second controller (major device number 22) is \fBhdc\fR | |
35 | and the slave \fBhdd\fR. | |
36 | .LP | |
37 | General IDE block device names have the form | |
38 | .BI hd X\c | |
39 | , or | |
40 | .BI hd XP\c | |
41 | , where | |
42 | .I X | |
43 | is a letter denoting the physical drive, and | |
44 | .I P | |
45 | is a number denoting the partition on that physical drive. | |
46 | The first form, | |
47 | .BI hd X, | |
48 | is used to address the whole drive. | |
49 | Partition numbers are assigned in the order the partitions | |
50 | are discovered, and only non-empty, non-extended partitions | |
51 | get a number. However, partition numbers 1-4 are given to the | |
52 | four partitions described in the MBR (the `primary' partitions), | |
53 | regardless of whether they are unused or extended. | |
54 | Thus, the first logical partition will be | |
55 | .BI hd X 5\c | |
56 | \&. | |
57 | Both DOS-type partitioning and BSD-disklabel partitioning are supported. | |
58 | You can have at most 63 partitions on an IDE disk. | |
59 | .LP | |
60 | For example, | |
61 | .B /dev/hda | |
62 | refers to all of the first IDE drive in the system; and | |
63 | .B /dev/hdb3 | |
64 | refers to the third DOS `primary' partition on the second one. | |
65 | .LP | |
66 | They are typically created by: | |
67 | .RS | |
68 | .sp | |
69 | mknod -m 660 /dev/hda b 3 0 | |
70 | .br | |
71 | mknod -m 660 /dev/hda1 b 3 1 | |
72 | .br | |
73 | mknod -m 660 /dev/hda2 b 3 2 | |
74 | .br | |
75 | \&... | |
76 | .br | |
77 | mknod -m 660 /dev/hda8 b 3 8 | |
78 | .br | |
79 | mknod -m 660 /dev/hdb b 3 64 | |
80 | .br | |
81 | mknod -m 660 /dev/hdb1 b 3 65 | |
82 | .br | |
83 | mknod -m 660 /dev/hdb2 b 3 66 | |
84 | .br | |
85 | \&... | |
86 | .br | |
87 | mknod -m 660 /dev/hdb8 b 3 72 | |
88 | .br | |
89 | chown 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) |