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


Groups > linux.debian.user > #186340

Re: USB external hard drive -- mounting

From Celejar <celejar@gmail.com>
Newsgroups linux.debian.user
Subject Re: USB external hard drive -- mounting
Date 2017-09-03 04:00 +0200
Message-ID <ulsmC-230-9@gated-at.bofh.it> (permalink)
References <ujzLB-2eP-35@gated-at.bofh.it> <ujMSv-1Zf-39@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 29 Aug 2017 13:17:31 +0200
Dominique Dumont <dod38fr@gmail.com> wrote:

> On Monday, 28 August 2017 14:25:15 CEST James H. H. Lampert wrote:
> > Can anybody advise me on how to set this thing up so that if it's
> > plugged in, it will mount, to a consistent mountpoint, whether anybody's
> > signed on to Gnome or not? And when it's inevitably replaced, its
> > replacement will continue to do so?
> 
> I wrote this blog a while ago for this kind of problem:
> https://ddumont.wordpress.com/2016/04/24/automount-usb-devices-with-systemd/

Thanks for this. Following your post, I added a line like this to
fstab:

/dev/mapper/mydrive	/media/mydrive	ext4	defaults,user,nofail	0       0

It seems to work fine for automounting, but the problem is that it
adds 90 seconds to the boot when the external drive is not present. The
'nofail' option allows the boot to eventually continue, but it only
does so after a 90 second timeout is reached.

The Arch wiki suggests adding "x-systemd.device-timeout=1" to solve
this, but it seems like a bit of a kludge, and it will still add 1
second for each external drive that has an entry in fstab - not an
ideal solution.

https://wiki.archlinux.org/index.php/fstab#External_devices

Celejar

Back to linux.debian.user | Previous | Next — Previous 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