This week I was trying to determine the cache size of an IDE disk drive. While poking around /proc/ide, I came across a number of super useful entries:
IDE driver versions:
$ cat /proc/ide/drivers
ide-floppy version 0.99.newide ide-cdrom version 4.61 ide-disk version 1.18
IDE drive cache size:
$ cat /proc/ide/ide0/hda/cache
2048
IDE drive capacity:
$ cat /proc/ide/ide0/hda/capacity
16778160
IDE drive geometry:
$ cat /proc/ide/ide0/hda/geometry
physical 16645/16/63
logical 16645/16/63
Model of IDE device:
$ cat /proc/ide/ide0/hda/model
Virtual HDD [0]
IDE driver configuration settings:
$ cat /proc/ide/ide0/hda/settings
name value min max mode
acoustic 0 0 254 rw address 0 0 2 rw bios_cyl 16645 0 65535 rw bios_head 16 0 255 rw bios_sect 63 0 63 rw bswap 0 0 1 r current_speed 69 0 70 rw failures 0 0 65535 rw init_speed 69 0 70 rw io_32bit 0 0 3 rw keepsettings 0 0 1 rw lun 0 0 7 rw max_failures 1 0 65535 rw multcount 128 0 128 rw nice1 1 0 1 rw nowerr 0 0 1 rw number 0 0 3 rw pio_mode write-only 0 255 w unmaskirq 0 0 1 rw using_dma 1 0 1 rw wcache 1 0 1 rw
Each time I dig through /proc, I always seem to turn up some interesting