Which bash command shows the volume label?

link|improve this question

3  
That's not where the answer goes. – Ignacio Vazquez-Abrams May 8 '11 at 7:04
please leave the question section for.. questions.. – Sathya May 8 '11 at 12:39
feedback

1 Answer

up vote 4 down vote accepted
/sbin/blkid /dev/sdXY                    # needs rootpriv for internal drives
ls -l /dev/disk/by-label/ | grep sdXY    # workaround for unprivileged users
link|improve this answer
I like the second line (even without grep) – ajo May 10 '11 at 9:16
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.