11 Nov
2016
11 Nov
'16
14:15
Hello, On Fri, 11 Nov 2016, Carlos E. R. wrote:
On 2016-11-11 05:02, Philip Amadeo Saeli wrote:
* Carlos E. R. <> [2016-11-09 07:59]:
and then parse the output. I wonder about a command that directly gives the information. maybe blkid, but I don't see how.
You can start with something like:
$ hdparm -I /dev/sda | egrep -i 'device.*media|number|wwn' [..] Yes, a solution of that manner is what I though.
# /lib/udev/ata_id --export /dev/sdX # eval $(/lib/udev/ata_id --export /dev/sdX) # echo $ID_SERIAL $ID_WWN HTH, -dnh -- "There was a point to this story, but it has temporarily escaped the chronicler's mind." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org