• The forum software that supports hummy.tv has been upgraded to XenForo 2.3!

    Please bear with us as we continue to tweak things, and feel free to post any questions, issues or suggestions in the upgrade thread.

How to get the volume label of a USB drive

ed209

New Member
How can I get the volume name of a mounted USB drive from the unix command line?
The web-if does show the volume label when you click on the Blue button on the top left of the landing page, so it's in there somewhere
 
Thank you, that gives me the label.

I also managed to get it by running the same script as the web-if which gives me a little more info

/mnt/hd2/mod/webif/cgi-bin/usbinfo.jim

Content-Type: application/json; charset="UTF-8"; no-cache
Expires: -1
Connection: close
Pragma: no-cache
Cache-Control: no-cache

[
{
"LABEL": "HXBACKUP",
"USED": "92",
"MODEL": "Desktop",
"TYPE": "ntfs",
"SIZE": "1000202272768",
"MP": "/media/usb-drive1",
"VENDOR": "Seagate",
"UUID": "2248D7AE48D77ECB",
"DEV": "/dev/sda1",
"RDEV": "sda"
}
]
 
Back
Top