.\" Copyright (c) 1993 Michael Haardt (michael@moria.de), .\" Fri Apr 2 11:32:09 MET DST 1993 .\" .\" %%%LICENSE_START(GPLv2+_DOC_FULL) .\" 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, see .\" . .\" %%%LICENSE_END .\" .\" Modified Sat Jul 24 16:56:20 1993 by Rik Faith .\" Modified Mon Oct 21 21:38:51 1996 by Eric S. Raymond .\" (and some more by aeb) .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1996,1997,1998 ISHIKAWA Mutsumi .\" all rights reserved. .\" Translated Sun Jan 11 03:35:23 JST 1998 .\" by ISHIKAWA Mutsumi .\" .TH HD 4 1992\-12\-17 Linux "Linux Programmer's Manual" .SH 名前 hd \- MFM/IDE ハードディスクデバイス .SH 説明 \fBhd*\fP デバイスは MFM/IDE ハードディスクドライブにローモード (raw mode) でアクセスするためのブロックデバイス (block device) である。プライマリ (primary) IDE コントローラー (メジャーナンバー 3) の マスタードライブ (mater drive) は \fBhda\fP、スレーブドライブ (slave drive) は \fBhdb\fP である。また、セカンドコントローラー (メジャーナンバー 22) のマスター ドライブは \fBhdc\fP スレーブは \fBhdd\fP である。 .LP 一般的な IDE ブロックデバイスの名前は \fBhd\fP\fIX\fPまたは、 \fBhd\fP\fIXP\fPという形態をとる。この、 \fIX\fP の部分は物理的なドライブを表す文字で、 \fIP\fP の部分はその物理的なドライブ上のパーティション (partition) を表す数字で ある。この最初の形式 \fBhd\fP\fIX\fP はドライブ全体を示すのに使われる。 パーティションナンバーは発見されたパーティションに順に割り付けられる。 パーティションナンバーが割り付けられるのは、空でなく (nonempty) かつ 拡張パーティションでない (nonextended) パーティションのみである。 このうち、パーティションナンバー 1 から 4 はそれが使われていなくても、 また拡張パーティションだとしても MBR に記述される四つのパーティション (いわゆる、プラマリ'パーティション) に与えられる。 従って、最初の論理パーティション (logical pertition) は、 \fBhd\fP\fIX\fP\fB5\fPとなるだろう。 (IDE ハードディスクでは) DOS タイプのパーティショニング (partitioning) と BSD ディスクラベル (BSD\-disklabel) によるパーティショニングの両方が サポートされている。また、IDE ディスク上に最高 63 のパーティションを 作成する事ができる。 .LP 例えば、 \fI/dev/hda\fP はシステムの最初の IDE ドライブ全体を参照する。そして、 \fI/dev/hdb3\fP はセカンドドライブの三つめの DOS `プライマリ'パーティションを参照する。 .LP これらは典型的には次のようにして作られる。 .RS .sp mknod \-m 660 /dev/hda b 3 0 .br mknod \-m 660 /dev/hda1 b 3 1 .br mknod \-m 660 /dev/hda2 b 3 2 .br \&... .br mknod \-m 660 /dev/hda8 b 3 8 .br mknod \-m 660 /dev/hdb b 3 64 .br mknod \-m 660 /dev/hdb1 b 3 65 .br mknod \-m 660 /dev/hdb2 b 3 66 .br \&... .br mknod \-m 660 /dev/hdb8 b 3 72 .br chown root:disk /dev/hd* .RE .SH ファイル /dev/hd* .SH 関連項目 \fBchown\fP(1), \fBmknod\fP(1), \fBsd\fP(4) \fBmount\fP(8), .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。