

Now, use a Hex-to-ASCII converter like and punch in the first number. So the first one has many spaces followed by a few bytes of real data, which makes the two serial numbers comparable in size. Notice that the first appears to be a hexadecimal number. This is what I wrote in this answer originally:

So you may have to take matters into your own hands. Rather more comprehensive output can be found via diskinfo, but each disk device must be queried explicitly: $ diskinfo -v ada0ġ000204886016 # mediasize in bytes (932G)ġ938021 # Cylinders according to firmware.Īlthough each disk must be named explicitly, globbing is allowed, such as diskinfo ada.If you Google "Win32_PhysicalMedia", the second hit is a bug report which now that I read everything more carefully looks like it describes exactly your problem (but offers no fix from what I see):

On other systems, disk devices may be found as da devices, so grep ^da. On systems with ATA/SATA disks, look for ada devices: $ grep ^ada /var/run/dmesg.boot | grep -i serial On FreeBSD, one could find that information in /var/run/dmesg. Definitely a bug since this data is available to the system, that's where inxi gets it, direct. And it shows nothing for serial, it also by the way shows nothing for other values, like label. lsblk -nodeps -o name,serialĪs you can see, to lsblk, it thinks that an optical drive and floppy drive are also disks, which in a sense they are, though not really, since they don't become disks until a disk is inserted. Which is why inxi uses a much more reliable method to get that data. Note that on my Debian system, lsblk does not show anything for serials, whether as root or user. Optical-2: /dev/sr1 model: LITE-ON LTR-52327S rev: QS0C dev-links: cdrom,cdrwĪudio: yes dvd: no rw: cd-r,cd-rw state: running Optical-1: /dev/sr0 model: LITE-ON DVDRW SOHW-1693SĪudio: yes dvd: yes rw: cd-r,cd-rw,dvd-r state: running Note that this filters out optical drives. u adds UUID for the partitions.ĭrives: HDD Total Size: 810.2GB (42.9% used) That outputs all disks, their serials, and any extra info. Easiest way I know (does not require root): inxi -Dplxx
