version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
HD |
|
|
2 |
!!!HD |
|
|
3 |
NAME |
|
|
4 |
DESCRIPTION |
|
|
5 |
FILES |
|
|
6 |
SEE ALSO |
|
|
7 |
---- |
|
|
8 |
!!NAME |
|
|
9 |
|
|
|
10 |
|
|
|
11 |
hd - MFM/IDE hard disk devices |
|
|
12 |
!!DESCRIPTION |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
The __hd*__ devices are block devices to access MFM/IDE |
|
|
16 |
hard disk drives in raw mode. The master drive on the |
|
|
17 |
primary IDE controller (major device number 3) is |
|
|
18 |
__hda__; the slave drive is __hdb__. The master drive |
|
|
19 |
of the second controller (major device number 22) is |
|
|
20 |
__hdc__ and the slave __hdd__. |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
General IDE block device names have the form |
|
|
24 |
__hd__''X'', or __hd__''XP'', where ''X'' is |
|
|
25 |
a letter denoting the physical drive, and ''P'' is a |
|
|
26 |
number denoting the partition on that physical drive. The |
|
|
27 |
first form, __hd__''X,'' is used to address the whole |
|
|
28 |
drive. Partition numbers are assigned in the order the |
|
|
29 |
partitions are discovered, and only non-empty, non-extended |
|
|
30 |
partitions get a number. However, partition numbers 1-4 are |
|
|
31 |
given to the four partitions described in the MBR (the |
|
|
32 |
`primary' partitions), regardless of whether they are unused |
|
|
33 |
or extended. Thus, the first logical partition will be |
|
|
34 |
__hd__''X''__5__. Both DOS-type partitioning and |
|
|
35 |
BSD-disklabel partitioning are supported. You can have at |
|
|
36 |
most 63 partitions on an IDE disk. |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
For example, __/dev/hda__ refers to all of the first IDE |
|
|
40 |
drive in the system; and __/dev/hdb3__ refers to the |
|
|
41 |
third DOS `primary' partition on the second |
|
|
42 |
one. |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
They are typically created by: |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
mknod -m 660 /dev/hda b 3 0 |
|
|
49 |
mknod -m 660 /dev/hda1 b 3 1 |
|
|
50 |
mknod -m 660 /dev/hda2 b 3 2 |
|
|
51 |
... |
|
|
52 |
mknod -m 660 /dev/hda8 b 3 8 |
|
|
53 |
mknod -m 660 /dev/hdb b 3 64 |
|
|
54 |
mknod -m 660 /dev/hdb1 b 3 65 |
|
|
55 |
mknod -m 660 /dev/hdb2 b 3 66 |
|
|
56 |
... |
|
|
57 |
mknod -m 660 /dev/hdb8 b 3 72 |
|
|
58 |
chown root:disk /dev/hd* |
|
|
59 |
!!FILES |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
/dev/hd* |
|
|
63 |
!!SEE ALSO |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
mknod(1), chown(1), mount(8), |
|
|
67 |
sd(4) |
|
|
68 |
---- |