You are not logged in.

#1 2010-02-28 10:32:47

dptkby
Member
Registered: 2009-07-02
Posts: 64

Simple device-specific automounting with Autofs

I've been looking into automounting using Autofs; after getting the basics to work I figured it would be nice to make sure the same physical devices always get mounted in the same place, regardless of the order in which they are plugged in.

The posts I've come across regarding this usually mention udev rules and fstab magic and the like. However, as udev or whatever conveniently creates relevant links in the /dev/disk/by-uuid directory, it seems like the easiest way is to put /dev/disk/by-uuid/FOOBAR where you would normally put for example /dev/sda1 in your auto. file and you're set. A quick test seems to confirm this.

Now, my question is: What am I missing? Is there any reason not to do this and does this way guarantee a specific physical device is always mounted in the same spot?

If this is indeed a good way to do it, this post might serve as a tip to any mountically challenged person, like me, looking to have their devices stay put smile.

Offline

Board footer

Powered by FluxBB