I'm looking for a way to gather specific HDD info such as what shows up in
dmesg:

IDE:
hda: WDC WD800JB-00CRA1, ATA DISK drive
hdb: CD-ROM CMD5X11, ATAPI CD/DVD-ROM drive
blk: queue c040c460, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=9729/255/63,
UDMA(100)
hdb: attached ide-cdrom driver.
hdb: ATAPI 52X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12

Or SCSI:
scsi0 : ioc0: LSISAS1064, FwRev=01040000h, Ports=1, MaxQ=203, IRQ=209
  Vendor: FUJITSU   Model: MAV2073RCSUN72G   Rev: 0301
  Type:   Direct-Access                      ANSI SCSI revision: 04
SCSI device sda: 143374738 512-byte hdwr sectors (73408 MB)
SCSI device sda: drive cache: write through
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 >
Attached scsi disk sda at scsi0, channel 0, id 2, lun 0
  Vendor: FUJITSU   Model: MAV2073RCSUN72G   Rev: 0301
  Type:   Direct-Access                      ANSI SCSI revision: 04
SCSI device sdb: 143374738 512-byte hdwr sectors (73408 MB)
SCSI device sdb: drive cache: write through
 sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 sdb7 sdb8 >
Attached scsi disk sdb at scsi0, channel 0, id 3, lun 0


What I'm mainly after is where the make/model information comes from.  I dug
around in the /proc filesystem but didn't see much.  Googling turned up a
lot of information, but not what I'm looking for specifically.  fdisk -l
only provides the geometry and layout of the disk.

I had thought of writing a script to gather the information on system
bootup, or to grep it out of /var/log/dmesg.  But, I was looking for
commands to issue to gather it in case someone had installed a hot-plug disk
without rebooting.

Any insight to this?


Thanks!

--
-Shawn

-Nemo me impune lacessit.  Ne Obliviscaris..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20060323/d55d0e82/attachment.htm