HD(4) Linux Programmer’s Manual HD(4) 名前 hd - MFM/IDE ハードディスクデバイス 説明 hd* デバイスは MFM/IDE ハードディスクドライブにローモード (raw mode) で アクセスするためのブロックデバイス (block device) である。プラ イ マ リ (primary) IDE コ ントローラ (メジャーナンバー 3) の マスタードライブ (mater drive) は hda、スレーブドライブ (slave drive) は hdb である。 ま た、セカンドコントローラ (メジャーナンバー 22) のマスタードライブは hdc スレーブは hdd である。 一般的な IDE ブロックデバイスの名前は hdXまたは、 hdXPという形態をと る 。 この、 X の部分は物理的なドライブを表す文字で、 P の部分はその物理的 なドライブ上のパーティション (partition) を表す数字である。この最初の形 式 hdX, はドライブ全体を示すのに使われる。パーティションナンバーは発見 されたパーティションに順に割り付けられる。パーティションナンバーが割 り 付けられるのは、空でなく (non-empty) かつ拡張パーティションでない (non- extended) パーティションのみである。このうち、パーティションナンバー 1 から 4 はそれが使われていなくても、また拡張パーティションだとしても MBR に記述される四つのパーティション (いわゆる、プラマリ’パーティション) に 与 え られる。従って、最初の論理パーティション (logical pertition) は、 hdX5となるだろう。 (IDE ハードディスクでは) DOS タイプのパーティショ ニ ン グ (partitioning) と BSD ディスクラベル (BSD-disklabel) によるパーテ ィショニングの両方がサポートされている。また、IDE ディスク上に最 高 63 のパーティションを作成する事ができる。 例えば、 /dev/hda はシステムの最初の IDE ドライブ全体を参照する。そして 、 /dev/hdb3 はセカンドドライブの三つめの DOS ‘プライマリ’パーティシ ョ ンを参照する。 これらのデバイスファイル (device file) は典型的には次のようにして作られ る。 mknod -m 660 /dev/hda b 3 0 mknod -m 660 /dev/hda1 b 3 1 mknod -m 660 /dev/hda2 b 3 2 ... mknod -m 660 /dev/hda8 b 3 8 mknod -m 660 /dev/hdb b 3 64 mknod -m 660 /dev/hdb1 b 3 65 mknod -m 660 /dev/hdb2 b 3 66 ... mknod -m 660 /dev/hdb8 b 3 72 chown root:disk /dev/hd* ファイル /dev/hd* 関連項目 chown(1), mknod(1), sd(4) mount(8), Linux 1992-12-17 HD(4)
HD(4) Linux Programmer’s Manual HD(4) NAME hd - MFM/IDE hard disk devices DESCRIPTION The hd* devices are block devices to access MFM/IDE hard disk drives in raw mode. The master drive on the primary IDE controller (major device number 3) is hda; the slave drive is hdb. The master drive of the sec- ond controller (major device number 22) is hdc and the slave hdd. General IDE block device names have the form hdX, or hdXP, where X is a letter denoting the physical drive, and P is a number denoting the par- tition on that physical drive. The first form, hdX, is used to address the whole drive. Partition numbers are assigned in the order the par- titions are discovered, and only non-empty, non-extended partitions get a number. However, partition numbers 1-4 are given to the four parti- tions described in the MBR (the "primary" partitions), regardless of whether they are unused or extended. Thus, the first logical partition will be hdX5. Both DOS-type partitioning and BSD-disklabel partition- ing are supported. You can have at most 63 partitions on an IDE disk. For example, /dev/hda refers to all of the first IDE drive in the sys- tem; and /dev/hdb3 refers to the third DOS "primary" partition on the second one. They are typically created by: mknod -m 660 /dev/hda b 3 0 mknod -m 660 /dev/hda1 b 3 1 mknod -m 660 /dev/hda2 b 3 2 ... mknod -m 660 /dev/hda8 b 3 8 mknod -m 660 /dev/hdb b 3 64 mknod -m 660 /dev/hdb1 b 3 65 mknod -m 660 /dev/hdb2 b 3 66 ... mknod -m 660 /dev/hdb8 b 3 72 chown root:disk /dev/hd* FILES /dev/hd* SEE ALSO chown(1), mknod(1), sd(4), mount(8) COLOPHON This page is part of release 3.22 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 1992-12-17 HD(4)
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa