Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #186151

Re: USB external hard drive -- mounting

From Dominique Dumont <dod38fr@gmail.com>
Newsgroups linux.debian.user
Subject Re: USB external hard drive -- mounting
Date 2017-08-29 21:10 +0200
Message-ID <ujU3D-6AB-1@gated-at.bofh.it> (permalink)
References <ujzLB-2eP-35@gated-at.bofh.it> <ujMSv-1Zf-39@gated-at.bofh.it> <ujTKh-6eS-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

USB external hard drive -- mounting "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-08-28 23:30 +0200
  Re: USB external hard drive -- mounting Ben Caradoc-Davies <ben@transient.nz> - 2017-08-29 01:10 +0200
    Re: USB external hard drive -- mounting "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-08-29 02:20 +0200
      Re: USB external hard drive -- mounting Ben Caradoc-Davies <ben@transient.nz> - 2017-08-29 03:40 +0200
        Re: USB external hard drive -- mounting Frank <zuiderduin@gmx.com> - 2017-08-29 13:00 +0200
          Re: USB external hard drive -- mounting "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-08-29 20:10 +0200
            Re: USB external hard drive -- mounting Frank <zuiderduin@gmx.com> - 2017-08-29 21:40 +0200
    Re: USB external hard drive -- mounting Mario Castelán Castro <marioxcc.MT@yandex.com> - 2017-08-29 04:40 +0200
  Re: USB external hard drive -- mounting Dominique Dumont <dod38fr@gmail.com> - 2017-08-29 13:30 +0200
    Re: USB external hard drive -- mounting "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-08-29 20:50 +0200
      Re: USB external hard drive -- mounting Dominique Dumont <dod38fr@gmail.com> - 2017-08-29 21:10 +0200
        Re: USB external hard drive -- mounting "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-08-29 21:20 +0200
        Re: USB external hard drive -- mounting "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-08-30 00:00 +0200
    Re: USB external hard drive -- mounting Celejar <celejar@gmail.com> - 2017-09-03 04:00 +0200

csiph-web