
Chapter 2. The /proc File System 41
------------- drive0 --------- drive1 -------- drive0 ---------- drive1 ------
DMA enabled: yes no yes no
UDMA enabled: yes no no no
UDMA enabled: 2 X X X
UDMA
DMA
PIO
Navigating into the directory for an IDE channel, such as ide0, provides additional information. The
channel file provides the channel number, while the model tells you the bus type for the channel
(such as pci).
2.3.4.1. The Device Directory
Within each IDE channel directory is a device directory. The name of the device directory corresponds
to the drive letter in the /dev directory. For instance the first IDE drive on ide0 would be hda.
Note
There is a symlink to each of these device directories in the /proc/ide/ directory.
Each device directory contains a collection of information and statistics. The contents of these direc-
tories vary according to the type of device connected. Some of the more useful files common to many
devices include:
• cache — The device’s cache.
• capacity — The capacity of the device, in 512 byte blocks.
• driver — The driver and version used to control the device.
• geometry — The physical and logical geometry of the device.
• media — The type of device, such as a disk.
• model — The model name or number of the device.
• settings — A collection of current parameters of the device. This file usually contains quite a
bit of useful, technical information. A sample settings file for a standard IDE hard disk looks
similar to this:
name value min max mode
---- ----- --- --- ----
bios_cyl 784 0 65535 rw
bios_head 255 0 255 rw
bios_sect 63 0 63 rw
breada_readahead 4 0 127 rw
bswap 0 0 1 r
current_speed 66 0 69 rw
file_readahead 0 0 2097151 rw
ide_scsi 0 0 1 rw
init_speed 66 0 69 rw
io_32bit 0 0 3 rw
keepsettings 0 0 1 rw
lun 0 0 7 rw
max_kb_per_request 64 1 127 rw
multcount 8 0 8 rw
nice1 1 0 1 rw
Commenti su questo manuale