]>
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 | .\" |
e4a74ca8 | 4 | .\" SPDX-License-Identifier: GPL-2.0-or-later |
c13182ef | 5 | .\" |
fea681da MK |
6 | .\" Modified Sat Jul 24 16:56:20 1993 by Rik Faith <faith@cs.unc.edu> |
7 | .\" Modified Mon Oct 21 21:38:51 1996 by Eric S. Raymond <esr@thyrsus.com> | |
8 | .\" (and some more by aeb) | |
9 | .\" | |
4c1c5274 | 10 | .TH hd 4 (date) "Linux man-pages (unreleased)" |
fea681da MK |
11 | .SH NAME |
12 | hd \- MFM/IDE hard disk devices | |
13 | .SH DESCRIPTION | |
35cfd378 MK |
14 | The |
15 | .B hd* | |
16 | devices are block devices to access MFM/IDE hard disk drives | |
c13182ef MK |
17 | in raw mode. |
18 | The master drive on the primary IDE controller (major device | |
35cfd378 MK |
19 | number 3) is |
20 | .BR hda ; | |
21 | the slave drive is | |
22 | .BR hdb . | |
c13182ef | 23 | The master drive of the second controller (major device number 22) |
51700fd7 | 24 | is |
35cfd378 | 25 | .B hdc |
66fbc196 | 26 | and the slave is |
35cfd378 | 27 | .BR hdd . |
c6d039a3 | 28 | .P |
fea681da MK |
29 | General IDE block device names have the form |
30 | .BI hd X\c | |
31 | , or | |
32 | .BI hd XP\c | |
33 | , where | |
34 | .I X | |
35 | is a letter denoting the physical drive, and | |
36 | .I P | |
37 | is a number denoting the partition on that physical drive. | |
38 | The first form, | |
9ebe66fa MK |
39 | .BI hd X\c |
40 | , is used to address the whole drive. | |
fea681da | 41 | Partition numbers are assigned in the order the partitions |
24b74457 | 42 | are discovered, and only nonempty, nonextended partitions |
c13182ef | 43 | get a number. |
523869f6 | 44 | However, partition numbers 1\[en]4 are given to the |
84c517a4 | 45 | four partitions described in the MBR (the "primary" partitions), |
fea681da MK |
46 | regardless of whether they are unused or extended. |
47 | Thus, the first logical partition will be | |
48 | .BI hd X 5\c | |
49 | \&. | |
50 | Both DOS-type partitioning and BSD-disklabel partitioning are supported. | |
51 | You can have at most 63 partitions on an IDE disk. | |
c6d039a3 | 52 | .P |
fea681da | 53 | For example, |
8478ee02 | 54 | .I /dev/hda |
fea681da | 55 | refers to all of the first IDE drive in the system; and |
8478ee02 | 56 | .I /dev/hdb3 |
84c517a4 | 57 | refers to the third DOS "primary" partition on the second one. |
c6d039a3 | 58 | .P |
fea681da | 59 | They are typically created by: |
c6d039a3 | 60 | .P |
bdd915e2 MK |
61 | .in +4n |
62 | .EX | |
4d9b6984 | 63 | mknod \-m 660 /dev/hda b 3 0 |
4d9b6984 | 64 | mknod \-m 660 /dev/hda1 b 3 1 |
4d9b6984 | 65 | mknod \-m 660 /dev/hda2 b 3 2 |
fea681da | 66 | \&... |
4d9b6984 | 67 | mknod \-m 660 /dev/hda8 b 3 8 |
4d9b6984 | 68 | mknod \-m 660 /dev/hdb b 3 64 |
4d9b6984 | 69 | mknod \-m 660 /dev/hdb1 b 3 65 |
4d9b6984 | 70 | mknod \-m 660 /dev/hdb2 b 3 66 |
fea681da | 71 | \&... |
4d9b6984 | 72 | mknod \-m 660 /dev/hdb8 b 3 72 |
fea681da | 73 | chown root:disk /dev/hd* |
bdd915e2 MK |
74 | .EE |
75 | .in | |
fea681da | 76 | .SH FILES |
e8d59c39 | 77 | .I /dev/hd* |
47297adb | 78 | .SH SEE ALSO |
fea681da MK |
79 | .BR chown (1), |
80 | .BR mknod (1), | |
81 | .BR sd (4), | |
82 | .BR mount (8) |