I've never set up autofs before but I'm trying to on my wife's laptop. Since it's mobile, I didn't want a fixed fstab mount and she'd never be happy manually mounting something.
Here's what I've done:
Installed autofs
Created auto.master:
Created auto.shared
/shared is the folder I want to mount to and this works, but it appears as /shared/shared/<FILES> rather than /shared/<FILES>. I tried using "/" in auto.master instead of /shared, but that just does nothing, I tried "/mnt" instead of /shared thinking I would get "/mnt/shared/<FILES> and I do, but it over-mounts so all the other folders in /mnt are hidden.
I can live with it, but I wondered if there was a way to make it do what I want.
I guess it will be a moot point soon enough anyway as systemd has it's own automount service.
Here's what I've done:
Installed autofs
Created auto.master:
Code:
# +auto.master /shared /etc/auto.shared --timeout=300 --ghost
Code:
* server://media/shared
I can live with it, but I wondered if there was a way to make it do what I want.
I guess it will be a moot point soon enough anyway as systemd has it's own automount service.
Comment