[lug] /etc/fstab in the modern world

David Anselmi anselmi at anselmi.us
Sat Oct 23 19:28:02 MDT 2004


P. Scott DeVos wrote:
[...]
> e2label <partition>
> 
[...]
> That's all there is to it.  I would love to have a tool that listed all 
> partitions with their labels, but I am not aware of such a tool and do 
> not have time to write one myself.  If anyone knows of such a tool, 
> please post here!

Huh.  This seems pretty close:

for part in /dev/hda* ; do sudo e2label $part 2>/dev/null ; done

Of course you can use your imagination in working out what to use 
instead of /dev/hda* to get the appropriate partitions.  For example, df 
gives a pretty good start at all your mounted partitions.

Dave




More information about the LUG mailing list