Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Which bash command shows the volume label?

share|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

1 Answer 1

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
share|improve this answer
    
I like the second line (even without grep) –  ajo May 10 '11 at 9:16

Your Answer

 
discard

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.