hd

Section: Devices and Network Interfaces (4)
Updated: 2025-09-21
Index JM Home Page roff page
 

名前

hd - MFM/IDE ハードディスクデバイス  

説明

hd* デバイスは MFM/IDE ハードディスクドライブにローモード (raw mode) でアクセスするためのブロックデバイス (block device) である。プライマリ (primary) IDE コントローラー (メジャーナンバー 3) の マスタードライブ (mater drive) は hda、スレーブドライブ (slave drive) は hdb である。また、セカンドコントローラー (メジャーナンバー 22) のマスター ドライブは hdc スレーブは 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 partition on that physical drive. The first form, hdX, is used to address the whole drive. Partition numbers are assigned in the order the partitions are discovered, and only nonempty, nonextended partitions get a number. However, partition numbers 1-4 are given to the four partitions 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 partitioning are supported. You can have at most 63 partitions on an IDE disk.

例えば、 /dev/hda はシステムの最初の IDE ドライブ全体を参照する。そして、 /dev/hdb3 はセカンドドライブの三つめの DOS `プライマリ'パーティションを参照する。

これらは典型的には次のようにして作られる。

 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),


 

Index

名前
説明
ファイル
関連項目

This document was created by man2html, using the manual pages.