Monday, April 12, 2010

Automount filesystems by label

Here's a handy (and from what's in the autofs the man pages, undocumented) trick for auto-mounting ext3 filesystems by label. Say I had a removable USB drive formatted as ext3 with the label WD-250 I could add this line to my auto.misc file:
WD-250 -fstype=ext3 :LABEL=WD-250
The filesystem UUID also seems to work using this method.

0 comments:

Post a Comment