Change Volume Serial Number Linux
First of all, I would like to apologies for the title for not including hardware details. This is because I am looking for a command that will work in all Linux distribution.Question:I am very new to Linux and don't know much, however, is it possible to retrieve the hard drive serial number running as non-root. I am aware there are commands available to retrieve this information running using sudo. However, I need a way to retrieve this information without running as sudo.Any suggestions would be highly appreciated.Kind Regards,Mustafa. On most current distributions HDD serial numbers are stored in the udev database, which could be queried without root permissions: /sbin/udevadm info -query=property -name=sda(look for IDSERIAL, IDSERIALSHORT; there are also /dev/disk/by-id/ata-. Driver pcchips m925 para xp.
Change Volume Serial Number Linux Download
symlinks for ATA drives based on those values).udisks provides a higher-level interface to those data and more (it also gives access to SMART attributes without requiring root privileges, which would be needed for calling, e.g., smartctl directly).