Systemd makes everything easy. Gone is the drudgery
of appending a line to /etc/fstab with _netdev specified,
and auto.master, and running automount. Never leave to
simple and settled what complex and fast-moving can do.
I've been missing out on all the fun -- Slackware has
none of it.
--
Chuck Polisher
On 10/4/23 13:33, Brian E. Lavender wrote:
> Here is an example. It's a CIFS mount, yet I am sure you just need to
> change the mount type.
>
> ```
> //myspace.foo.com/files/letters_TEST /mnt/letters cifs credentials=/srv/fooadmin/.smbcredentials,rw,uid=www-data,gid=fooadmin,noauto,x-systemd.automount,_netdev,dir_mode=0770 0 0
> ```
>
> On Mon, Oct 02, 2023 at 10:08:39PM -0700, Brian E. Lavender wrote:
>> I have an automount in my fstab on my server at work! It is an smb
>> mount, yet it uses Debian which is using systemd.
>>
>> Brian
>>
>> On Mon, Oct 02, 2023 at 06:25:00PM -0600, Linus Sphinx wrote:
>>> They seem to have changed the hierarchy of autofs config files or
>>> something and it just stopped working for me. Looking for what changed
>>> and ran into systemd.mount on stack exchange.
>>> Short form:
>>> write an entry in /etc/fstab like this:
>>> nas:/data/directory /home/me/nas nfs nfsvers=4,nofail,x-systemd.automount 0 0
>>> To activate this entry immediately, you would need two commands:
>>> # systemctl daemon-reload # trigger systemd-fstab-generator to
>>> re-make *.mount and *.automount units
>>> # systemctl start home-me-nas.automount #start the newly created
>>> automount unit or just reboot.
>>> $ man systemd.mount
>>> $ man systemd-fstab-generator
>>> Reveal much about units created, still playing with it. The above
>>> lines clipped from:
>>>
https://unix.stackexchange.com/questions/671486/rhel-8-3-autofs-not-mounting...
>>> _______________________________________________
>>> Lug-nuts mailing list -- lug-nuts@bigbrie.com
>>> To unsubscribe send an email to lug-nuts-leave@bigbrie.com
>> --
>> Brian Lavender
>>
http://www.brie.com/brian/
>>
>> "There are two ways of constructing a software design. One way is to
>> make it so simple that there are obviously no deficiencies. And the other
>> way is to make it so complicated that there are no obvious deficiencies."
>>
>> Professor C. A. R. Hoare
>> The 1980 Turing award lecture
>> _______________________________________________
>> Lug-nuts mailing list -- lug-nuts@bigbrie.com
>> To unsubscribe send an email to lug-nuts-leave@bigbrie.com