Partition label function.


Forum: Programming and Scripting
Topic: Partition label function.
started by: Zucca

Posted by Zucca on Sep. 20 2006,13:07
Can 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:10
I suppose you could try doing something with fdisk?
Posted by mikshaw on Sep. 30 2006,23:00
sudo tune2fs -l /dev/hdXX | grep "Filesystem volume name"

I think this is only for ext2

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.