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


Groups > linux.debian.user > #186150

Re: USB external hard drive -- mounting

From "James H. H. Lampert" <jamesl@touchtonecorp.com>
Newsgroups linux.debian.user
Subject Re: USB external hard drive -- mounting
Date 2017-08-29 20:50 +0200
Message-ID <ujTKh-6eS-7@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 8/29/17, 4:17 AM, Dominique Dumont wrote:
> I wrote this blog a while ago for this kind of problem:
> https://ddumont.wordpress.com/2016/04/24/automount-usb-devices-with-systemd/

That worked. It mounts on IPL, is available from an ssh session before 
anybody has signed on to Gnome, it mounts (after being unmounted) when 
unplugged and plugged back in, it mounts with a Gnome desktop icon, and 
it mounts as read/write, despite being NTFS. The fstab entries I came up 
with on the first try are:
> 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?

and also, contrary to the blog post, it doesn't, once unmounted, remount 
when one attempts to access it. None of these issues are of 
earth-shattering importance here, but I'm a bit curious about them.

--
JHHL

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