Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .