On other systems, disk devices may be found as da devices, so grep ^da. #How to find hp server serial number serialOn 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |