Re: using autofs on C-7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Jun 08, 2017 at 04:02:05PM -0700, Kenneth Porter wrote:

Kenneth:

thanks for the heads-up. I was stuck on looking for autofs tutorials,
having forgotten (if I ever knew) that systemd had subsumed that feature.

thanks again!

Fred
> On 6/8/2017 11:03 AM, Fred Smith wrote:
> >I'm trying to set up autofs on my C7 netbook so I can automount a cifs
> >share (actually two) from my NAS box, and because when I'm not at home
> >I don't want it attempting to mount it.
> 
> Automounting is now done through systemd. You just have to create
> two "unit files" to describe the mount. One holds the information
> for a static mount in fstab and the other is the automount entry
> that launches the first when its mount point is accessed.
> 
> http://blog.tomecek.net/post/automount-with-systemd/
> 
> So you'd need two files, mnt-syno\x2dfredex.mount and
> mnt-syno\x2dfredex.automount, both in /etc/systemd/system. You'll
> need an Options= clause in the .mount file for your CIFS mount
> options.
> 
> Note that the .mount file is not enabled, so it doesn't mount at
> boot time. Enable the .automount file to start at boot and it will
> start the .mount file on access.
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos

-- 
-------------------------------------------------------------------------------
 .----    Fred Smith   /              
( /__  ,__.   __   __ /  __   : /     
 /    /  /   /__) /  /  /__) .+'           Home: fredex@xxxxxxxxxxxxxxxxxxxxxx 
/    /  (__ (___ (__(_ (___ / :__                                 781-438-5471 
-------------------------------- Jude 1:24,25 ---------------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux