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