Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I understand the concept of a file system UUID. Is there a manufacturer unique identifier on a hard drive, apart from the file system UUID, and how do I read that identifier?

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

If you open the Disk Utility application (default in Ubuntu) you get all the information regarding the disks in your computer.

enter image description here

Edit: command line output:

xxx@xxx$ sudo hdparm -i /dev/sda | grep Model
 Model=SAMSUNG HD753LJ, FwRev=1AA01113, SerialNo=S13UJDWQ907130
share|improve this answer
How do I query this information in a bash script? Specifically the serial number and world wide name? –  Hendre Oct 14 '12 at 20:43
I've edited my answer, and added the command line command as well –  bioShark Oct 14 '12 at 20:49
add comment

If you look in the folder /sys/block/sd?/device where the ? is a, b, etc you should find the files vendor and model which should enable you to identify the manufacturer.

For example, on one of my systems:

# cat /sys/block/sda/device/vendor
# cat /sys/block/sda/device/model
# cat /sys/block/sdd/device/vendor
# cat /sys/block/sdd/device/model
M2 Portable

Note that, due to the connection and age of some of my drives, hdparm -i does not always work.

# hdparm -i /dev/sda


 Model=ST9500325AS, FwRev=0001SDM1, SerialNo=5VE30D69
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=976773168
 IORDY=on/off, tPIO={min:120,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 udma3 udma4 udma5 *udma6
 AdvancedPM=yes: unknown setting WriteCache=enabled
 Drive conforms to: unknown:  ATA/ATAPI-4,5,6,7

 * signifies the current active mode

# hdparm -i /dev/sdd

 HDIO_GET_IDENTITY failed: Invalid argument
share|improve this answer
Good hint ;); Didn't know about /sys/block...path –  bioShark Oct 15 '12 at 1:04
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.