Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which bash command shows the volume label?

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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