1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\" Fri Apr 2 11:32:09 MET DST 1993
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
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.
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.
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.
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
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)
29 .TH HD 4 2017-09-15 "Linux" "Linux Programmer's Manual"
31 hd \- MFM/IDE hard disk devices
35 devices are block devices to access MFM/IDE hard disk drives
37 The master drive on the primary IDE controller (major device
42 The master drive of the second controller (major device number 22)
48 General IDE block device names have the form
54 is a letter denoting the physical drive, and
56 is a number denoting the partition on that physical drive.
59 , is used to address the whole drive.
60 Partition numbers are assigned in the order the partitions
61 are discovered, and only nonempty, nonextended partitions
63 However, partition numbers 1\(en4 are given to the
64 four partitions described in the MBR (the "primary" partitions),
65 regardless of whether they are unused or extended.
66 Thus, the first logical partition will be
69 Both DOS-type partitioning and BSD-disklabel partitioning are supported.
70 You can have at most 63 partitions on an IDE disk.
74 refers to all of the first IDE drive in the system; and
76 refers to the third DOS "primary" partition on the second one.
78 They are typically created by:
82 mknod \-m 660 /dev/hda b 3 0
83 mknod \-m 660 /dev/hda1 b 3 1
84 mknod \-m 660 /dev/hda2 b 3 2
86 mknod \-m 660 /dev/hda8 b 3 8
87 mknod \-m 660 /dev/hdb b 3 64
88 mknod \-m 660 /dev/hdb1 b 3 65
89 mknod \-m 660 /dev/hdb2 b 3 66
91 mknod \-m 660 /dev/hdb8 b 3 72
92 chown root:disk /dev/hd*