[gllug] iostat
Russell Howe
rhowe at siksai.co.uk
Wed May 4 15:01:03 UTC 2005
On Wed, May 04, 2005 at 03:37:30PM +0100, Steve Nelson wrote:
> A chap was asking about finding the serial number of a disk.
>
> Any ideas how to do this?
# hdparm -i /dev/hde
/dev/hde:
Model=IBM-DTLA-307045, FwRev=TX6OA5AA, SerialNo=YMDYMG95248
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=40
BuffType=DualPortCache, BuffSize=1916kB, MaxMultSect=16, MultSect=16
CurCHS=65535/1/63, CurSects=4128705, LBA=yes, LBAsects=90069840
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1:
* signifies the current active mode
or
# grep ^hd /var/log/dmesg
hda: ST313640A, ATA DISK drive
hdc: ST380021A, ATA DISK drive
hdd: Maxtor 33073H4, ATA DISK drive
hde: IBM-DTLA-307045, ATA DISK drive
hda: max request size: 128KiB
hda: 26562500 sectors (13600 MB) w/512KiB Cache, CHS=26351/16/63, UDMA(33)
hda: cache flushes not supported
hdc: max request size: 128KiB
hdc: 156312576 sectors (80032 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(33)
hdc: cache flushes not supported
hdd: max request size: 128KiB
hdd: 60030432 sectors (30735 MB) w/512KiB Cache, CHS=59554/16/63, UDMA(33)
hdd: cache flushes not supported
hde: max request size: 128KiB
hde: 90069840 sectors (46115 MB) w/1916KiB Cache, CHS=65535/16/63, UDMA(33)
hde: cache flushes not supported
or
# hddtemp /dev/hdc
/dev/hdc: ST380021A: 32°C
or for SCSI:
cat /proc/scsi/scsi (might now be deprecated?)
There's a shell script in the Debian 'scsitools' package which will list
all SCSI devices and their IDENTIFY information (I think that's what
it's called) as well, I think.
hdparm is soon to be replaced by blktool, AFAIK. I guess the rework was
in order to make it works with the new libata IDE layer.
I would expect to be able to get this information out of sysfs on 2.6.x,
but I can't see where to get the information from.
The 'modern' way to do it would be to ask hald or something.
--
Russell Howe | Why be just another cog in the machine,
rhowe at siksai.co.uk | when you can be the spanner in the works?
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list