]>
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 | 3 | .\" |
1dd72f9c | 4 | .\" %%%LICENSE_START(GPLv2+_DOC_FULL) |
fea681da MK |
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 | |
c715f741 MK |
21 | .\" License along with this manual; if not, see |
22 | .\" <http://www.gnu.org/licenses/>. | |
6a8d8745 | 23 | .\" %%%LICENSE_END |
c13182ef | 24 | .\" |
fea681da MK |
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 | .\" | |
4b8c67d9 | 29 | .TH HD 4 2017-09-15 "Linux" "Linux Programmer's Manual" |
fea681da MK |
30 | .SH NAME |
31 | hd \- MFM/IDE hard disk devices | |
32 | .SH DESCRIPTION | |
35cfd378 MK |
33 | The |
34 | .B hd* | |
35 | devices are block devices to access MFM/IDE hard disk drives | |
c13182ef MK |
36 | in raw mode. |
37 | The master drive on the primary IDE controller (major device | |
35cfd378 MK |
38 | number 3) is |
39 | .BR hda ; | |
40 | the slave drive is | |
41 | .BR hdb . | |
c13182ef | 42 | The master drive of the second controller (major device number 22) |
51700fd7 | 43 | is |
35cfd378 | 44 | .B hdc |
66fbc196 | 45 | and the slave is |
35cfd378 | 46 | .BR hdd . |
dd3568a1 | 47 | .PP |
fea681da MK |
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, | |
9ebe66fa MK |
58 | .BI hd X\c |
59 | , is used to address the whole drive. | |
fea681da | 60 | Partition numbers are assigned in the order the partitions |
24b74457 | 61 | are discovered, and only nonempty, nonextended partitions |
c13182ef | 62 | get a number. |
d2fdb1e3 | 63 | However, partition numbers 1\(en4 are given to the |
84c517a4 | 64 | four partitions described in the MBR (the "primary" partitions), |
fea681da MK |
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. | |
dd3568a1 | 71 | .PP |
fea681da | 72 | For example, |
8478ee02 | 73 | .I /dev/hda |
fea681da | 74 | refers to all of the first IDE drive in the system; and |
8478ee02 | 75 | .I /dev/hdb3 |
84c517a4 | 76 | refers to the third DOS "primary" partition on the second one. |
dd3568a1 | 77 | .PP |
fea681da | 78 | They are typically created by: |
bdd915e2 MK |
79 | .PP |
80 | .in +4n | |
81 | .EX | |
4d9b6984 | 82 | mknod \-m 660 /dev/hda b 3 0 |
4d9b6984 | 83 | mknod \-m 660 /dev/hda1 b 3 1 |
4d9b6984 | 84 | mknod \-m 660 /dev/hda2 b 3 2 |
fea681da | 85 | \&... |
4d9b6984 | 86 | mknod \-m 660 /dev/hda8 b 3 8 |
4d9b6984 | 87 | mknod \-m 660 /dev/hdb b 3 64 |
4d9b6984 | 88 | mknod \-m 660 /dev/hdb1 b 3 65 |
4d9b6984 | 89 | mknod \-m 660 /dev/hdb2 b 3 66 |
fea681da | 90 | \&... |
4d9b6984 | 91 | mknod \-m 660 /dev/hdb8 b 3 72 |
fea681da | 92 | chown root:disk /dev/hd* |
bdd915e2 MK |
93 | .EE |
94 | .in | |
fea681da MK |
95 | .SH FILES |
96 | /dev/hd* | |
47297adb | 97 | .SH SEE ALSO |
fea681da MK |
98 | .BR chown (1), |
99 | .BR mknod (1), | |
100 | .BR sd (4), | |
101 | .BR mount (8) |