On Tuesday, 29 August 2017 11:46:34 CEST James H. H. Lampert wrote:
> > LABEL=ExternalHD /media/ExternalHD auto defaults,noatime,auto,nofail 0 2
> > LABEL=ExternalHD /media/ExternalHD auto
> > defaults,x-systemd.automount,x-systemd.device-timeout=5,noatime,noauto 0
> > 2
> One odd thing, with those two lines in fstab, and a manually-inserted 
> mount point of "ExternalHD" in /media, I get this message (I had to 
> restart the box about 3 or 4 times in order to write it down verbatim) 
> during the IPL process, before the screen blanks and (eventually) the 
> 
> Gnome sign-on screen comes up:
> > Failed to create mount unit file /run/systemd/generator/
> > media-ExternalHD.mount as it already exists. Duplicate entry in
> > /etc/fstab?

Depending on the bahavior you want, you should choose one of the 2 lines, but 
not both. I believe the latter triggers the "Duplicate entry" warning .

So if you want your device to be mounted when inserted, choose the line with 
defaults,noatime,auto,nofail

If you want the device mounted when the mounted directory is accessed, choose 
the line with x-systemd.automount

HTH

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org

Reply via email to