Announcement
Collapse
No announcement yet.
autofs weirdness - minor directory issue, but seeking understanding
Collapse
This topic is closed.
X
X
-
The name of the directory isn't really the issue, it just seems that the extra directory layer is unnecessary and restrictive.
- Top
- Bottom
-
Yeah, I guess. With an fstab mount, you get what you enter, with autofs you get that plus the last bit of the shared directory, apparently.
The export is server://media/shared. I also had to mount it as nfsV3 since it failed when I tried nfsV4 option. However oddly - the sub export that only supposed to work with nfsV4 is still there. Weird.
It would help a lot if there was ANY output from autofs. It just fails and no notice. Anyway - I adjusted my links to account for the extra /shared and it works like I want. I just thought it was unnecessary for the extra directory level to be there for no reason or benefit.
Maybe if you had multiple shares mounted this way they collect under a single directory. OK I guess, but not very flexible.
- Top
- Bottom
Leave a comment:
-
If ,,,I am understanding what I am reading .....it creates the mount point from the beginning part of "auto.master" (/shared,nfs,smb,ect) AND the last part of "auto.shared (/shared,server,data,) so in your case,,,,,,,,,, /shared/shared in auto.master use something distinctive /homeserver ,/srv whatever .Originally posted by oshunluvr View PostI'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.sharedCode:# +auto.master [COLOR=#ff0000]/shared[/COLOR] /etc/auto.shared --timeout=300 --ghost
/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.Code:* server://media[COLOR=#ff0000]/shared[/COLOR]
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.
VINNY
- Top
- Bottom
Leave a comment:
-
Not knowing what you have already reviewed, have you see this? https://help.ubuntu.com/community/Autofs
- Top
- Bottom
Leave a comment:
-
autofs weirdness - minor directory issue, but seeking understanding
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.sharedCode:# +auto.master /shared /etc/auto.shared --timeout=300 --ghost
/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.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.Tags: None
- Top
- Bottom
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: