getting the HD serial numbers

Bruno Gallant bsdnode at
Wed Jun 8 20:52:22 GMT 2005


is there a way to get the serial number of an hard drive while the
machine is up?  I know it can be done with the Linux /proc filesystem,
but I was wondering if I could do the same without having to stop the
server and remove the disks. [1]

I tried the smartctl command, but I don't think my drives are supported.

The individual hard drives are hidden behind a Compaq array.  2 x 36Gb
in raid 1.

ida0: <Compaq Integrated Array controller> port 0x2000-0x20ff mem
ff,0xc5000000-0xc5ffffff irq 19 at device 1.0 on pci0
ida0: drives=1 firm_rev=1.42
idad0: <Compaq Logical Drive> on ida0
idad0: 34727MB (71122560 sectors), blocksize=512

I don't think I can get this info, but the only stupid question is the
one that is not asked.

Thanks all.

[1] My servers are HP DL-360s and DL-380s, so it's not _that_ hard to
do, but I don't like stopping my servers for nothing.
[2] Brand new HDs from HP

# Bruno Gallant - scion at - bsdnode at

More information about the freebsd-questions mailing list