Partition label function.
Forum: Programming and Scripting
Topic: Partition label function.
started by: Zucca
Posted by Zucca on Sep. 20 2006,13:07Can someone tell me how to get partition name (label) with bash script?
If a function could be submitted..?
Posted by ^thehatsrule^ on Sep. 30 2006,22:10I suppose you could try doing something with fdisk?
Posted by mikshaw on Sep. 30 2006,23:00sudo tune2fs -l /dev/hdXX | grep "Filesystem volume name"
I think this is only for ext2