2008-07-06 15:10:32 +00:00
|
|
|
.\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
|
|
|
|
.\" Fri Apr 2 11:32:09 MET DST 1993
|
2004-11-03 13:51:07 +00:00
|
|
|
.\"
|
|
|
|
.\" This is free documentation; you can redistribute it and/or
|
|
|
|
.\" modify it under the terms of the GNU General Public License as
|
|
|
|
.\" published by the Free Software Foundation; either version 2 of
|
|
|
|
.\" the License, or (at your option) any later version.
|
|
|
|
.\"
|
|
|
|
.\" The GNU General Public License's references to "object code"
|
|
|
|
.\" and "executables" are to be interpreted as the output of any
|
|
|
|
.\" document formatting or typesetting system, including
|
|
|
|
.\" intermediate and printed output.
|
|
|
|
.\"
|
|
|
|
.\" This manual is distributed in the hope that it will be useful,
|
|
|
|
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
.\" GNU General Public License for more details.
|
|
|
|
.\"
|
|
|
|
.\" You should have received a copy of the GNU General Public
|
|
|
|
.\" License along with this manual; if not, write to the Free
|
|
|
|
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
|
|
|
|
.\" USA.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2004-11-03 13:51:07 +00:00
|
|
|
.\" Modified Sat Jul 24 16:56:20 1993 by Rik Faith <faith@cs.unc.edu>
|
|
|
|
.\" Modified Mon Oct 21 21:38:51 1996 by Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
.\" (and some more by aeb)
|
|
|
|
.\"
|
|
|
|
.TH HD 4 1992-12-17 "Linux" "Linux Programmer's Manual"
|
|
|
|
.SH NAME
|
|
|
|
hd \- MFM/IDE hard disk devices
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The \fBhd*\fP devices are block devices to access MFM/IDE hard disk drives
|
2007-04-12 22:42:49 +00:00
|
|
|
in raw mode.
|
|
|
|
The master drive on the primary IDE controller (major device
|
|
|
|
number 3) is \fBhda\fR; the slave drive is \fBhdb\fR.
|
|
|
|
The master drive of the second controller (major device number 22)
|
|
|
|
is \fBhdc\fR and the slave \fBhdd\fR.
|
2004-11-03 13:51:07 +00:00
|
|
|
.LP
|
|
|
|
General IDE block device names have the form
|
|
|
|
.BI hd X\c
|
|
|
|
, or
|
|
|
|
.BI hd XP\c
|
|
|
|
, where
|
|
|
|
.I X
|
|
|
|
is a letter denoting the physical drive, and
|
|
|
|
.I P
|
|
|
|
is a number denoting the partition on that physical drive.
|
|
|
|
The first form,
|
|
|
|
.BI hd X,
|
|
|
|
is used to address the whole drive.
|
|
|
|
Partition numbers are assigned in the order the partitions
|
accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 17:20:12 +00:00
|
|
|
are discovered, and only nonempty, nonextended partitions
|
2007-04-12 22:42:49 +00:00
|
|
|
get a number.
|
|
|
|
However, partition numbers 1-4 are given to the
|
2008-06-05 20:14:50 +00:00
|
|
|
four partitions described in the MBR (the "primary" partitions),
|
2004-11-03 13:51:07 +00:00
|
|
|
regardless of whether they are unused or extended.
|
|
|
|
Thus, the first logical partition will be
|
|
|
|
.BI hd X 5\c
|
|
|
|
\&.
|
|
|
|
Both DOS-type partitioning and BSD-disklabel partitioning are supported.
|
|
|
|
You can have at most 63 partitions on an IDE disk.
|
|
|
|
.LP
|
|
|
|
For example,
|
2005-11-02 13:55:25 +00:00
|
|
|
.I /dev/hda
|
2004-11-03 13:51:07 +00:00
|
|
|
refers to all of the first IDE drive in the system; and
|
2005-11-02 13:55:25 +00:00
|
|
|
.I /dev/hdb3
|
2008-06-05 20:14:50 +00:00
|
|
|
refers to the third DOS "primary" partition on the second one.
|
2004-11-03 13:51:07 +00:00
|
|
|
.LP
|
|
|
|
They are typically created by:
|
|
|
|
.RS
|
|
|
|
.sp
|
2005-07-06 07:41:37 +00:00
|
|
|
mknod \-m 660 /dev/hda b 3 0
|
2004-11-03 13:51:07 +00:00
|
|
|
.br
|
2005-07-06 07:41:37 +00:00
|
|
|
mknod \-m 660 /dev/hda1 b 3 1
|
2004-11-03 13:51:07 +00:00
|
|
|
.br
|
2005-07-06 07:41:37 +00:00
|
|
|
mknod \-m 660 /dev/hda2 b 3 2
|
2004-11-03 13:51:07 +00:00
|
|
|
.br
|
|
|
|
\&...
|
|
|
|
.br
|
2005-07-06 07:41:37 +00:00
|
|
|
mknod \-m 660 /dev/hda8 b 3 8
|
2004-11-03 13:51:07 +00:00
|
|
|
.br
|
2005-07-06 07:41:37 +00:00
|
|
|
mknod \-m 660 /dev/hdb b 3 64
|
2004-11-03 13:51:07 +00:00
|
|
|
.br
|
2005-07-06 07:41:37 +00:00
|
|
|
mknod \-m 660 /dev/hdb1 b 3 65
|
2004-11-03 13:51:07 +00:00
|
|
|
.br
|
2005-07-06 07:41:37 +00:00
|
|
|
mknod \-m 660 /dev/hdb2 b 3 66
|
2004-11-03 13:51:07 +00:00
|
|
|
.br
|
|
|
|
\&...
|
|
|
|
.br
|
2005-07-06 07:41:37 +00:00
|
|
|
mknod \-m 660 /dev/hdb8 b 3 72
|
2004-11-03 13:51:07 +00:00
|
|
|
.br
|
|
|
|
chown root:disk /dev/hd*
|
|
|
|
.RE
|
|
|
|
.SH FILES
|
|
|
|
/dev/hd*
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR chown (1),
|
|
|
|
.BR mknod (1),
|
|
|
|
.BR sd (4),
|
|
|
|
.BR mount (8)
|