Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #195810
| From | dep <dep@drippingwithirony.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: setting up a drive automount in systemd? |
| Date | 2018-05-16 21:10 +0200 |
| Message-ID | <vQ9Ye-4XA-9@gated-at.bofh.it> (permalink) |
| References | <vQ7MJ-3wk-3@gated-at.bofh.it> <vQ9Ox-4Fb-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On May 16, 2018 2:35 PM, Joe <joe@jretrading.com> wrote: > Not what you want, but related, possibly it will help to make sense > > of other documentation. I have network drives set to automount on first > > use. Here is a typical /etc/fstab line: > > //<server>/Media /mnt/<server>/Media cifs > > noauto,x-systemd.automount,user,guest,noperm,dir_mode=0x777,file_mode=0x777,vers=1.0,rw > > Note that without the 'noauto' it will automount on boot, which is > > not what you normally want for network or removable drives, given that > > the boot will hang if the drive is not found. I believe 'nofail' > > instead would also prevent a boot hang, but I also don't want a dozen > > possibly delayed mount processes holding up boot, I'm prepared to wait > > until I need them. Note that most of the parameters are relevant to > > cifs/samba mounts. > > With no /etc/fstab entry, a removable drive when plugged in will by > > default automount on first use. I don't recall that any manual > > configuration was necessary for that to happen. That's what initially puzzled me -- there is *no* /etc/fstab file at all, leading me to consider that it's possible that everything has changed. If I were to make an /etc/fstab with just the line I need for the drive, this would work with systemd?
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
setting up a drive automount in systemd? dep <dep@drippingwithirony.com> - 2018-05-16 18:50 +0200
Re: setting up a drive automount in systemd? Joe <joe@jretrading.com> - 2018-05-16 21:00 +0200
Re: setting up a drive automount in systemd? dep <dep@drippingwithirony.com> - 2018-05-16 21:10 +0200
Re: setting up a drive automount in systemd? john doe <johndoe65534@mail.com> - 2018-05-16 21:10 +0200
Re: setting up a drive automount in systemd? dep <dep@drippingwithirony.com> - 2018-05-16 21:30 +0200
Re: setting up a drive automount in systemd? john doe <johndoe65534@mail.com> - 2018-05-16 21:50 +0200
Re: setting up a drive automount in systemd? Darac Marjal <mailinglist@darac.org.uk> - 2018-05-17 13:00 +0200
Re: setting up a drive automount in systemd? Mark Fletcher <mark27q1@gmail.com> - 2018-05-18 01:40 +0200
csiph-web