]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man4/hd.4
man*/: srcfix (Use .P instead of .PP or .LP)
[thirdparty/man-pages.git] / man4 / hd.4
CommitLineData
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
12hd \- MFM/IDE hard disk devices
13.SH DESCRIPTION
35cfd378
MK
14The
15.B hd*
16devices are block devices to access MFM/IDE hard disk drives
c13182ef
MK
17in raw mode.
18The master drive on the primary IDE controller (major device
35cfd378
MK
19number 3) is
20.BR hda ;
21the slave drive is
22.BR hdb .
c13182ef 23The master drive of the second controller (major device number 22)
51700fd7 24is
35cfd378 25.B hdc
66fbc196 26and the slave is
35cfd378 27.BR hdd .
c6d039a3 28.P
fea681da
MK
29General IDE block device names have the form
30.BI hd X\c
31, or
32.BI hd XP\c
33, where
34.I X
35is a letter denoting the physical drive, and
36.I P
37is a number denoting the partition on that physical drive.
38The first form,
9ebe66fa
MK
39.BI hd X\c
40, is used to address the whole drive.
fea681da 41Partition numbers are assigned in the order the partitions
24b74457 42are discovered, and only nonempty, nonextended partitions
c13182ef 43get a number.
523869f6 44However, partition numbers 1\[en]4 are given to the
84c517a4 45four partitions described in the MBR (the "primary" partitions),
fea681da
MK
46regardless of whether they are unused or extended.
47Thus, the first logical partition will be
48.BI hd X 5\c
49\&.
50Both DOS-type partitioning and BSD-disklabel partitioning are supported.
51You can have at most 63 partitions on an IDE disk.
c6d039a3 52.P
fea681da 53For example,
8478ee02 54.I /dev/hda
fea681da 55refers to all of the first IDE drive in the system; and
8478ee02 56.I /dev/hdb3
84c517a4 57refers to the third DOS "primary" partition on the second one.
c6d039a3 58.P
fea681da 59They are typically created by:
c6d039a3 60.P
bdd915e2
MK
61.in +4n
62.EX
4d9b6984 63mknod \-m 660 /dev/hda b 3 0
4d9b6984 64mknod \-m 660 /dev/hda1 b 3 1
4d9b6984 65mknod \-m 660 /dev/hda2 b 3 2
fea681da 66\&...
4d9b6984 67mknod \-m 660 /dev/hda8 b 3 8
4d9b6984 68mknod \-m 660 /dev/hdb b 3 64
4d9b6984 69mknod \-m 660 /dev/hdb1 b 3 65
4d9b6984 70mknod \-m 660 /dev/hdb2 b 3 66
fea681da 71\&...
4d9b6984 72mknod \-m 660 /dev/hdb8 b 3 72
fea681da 73chown 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)