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


Groups > linux.debian.user > #186101

Re: USB external hard drive -- mounting

From Ben Caradoc-Davies <ben@transient.nz>
Newsgroups linux.debian.user
Subject Re: USB external hard drive -- mounting
Date 2017-08-29 01:10 +0200
Message-ID <ujBkm-3fm-5@gated-at.bofh.it> (permalink)
References <ujzLB-2eP-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 29/08/17 09:25, 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?

I am not sure about the background automounting, but I get consistent 
mount points and mount settings with entries like these in /etc/fstab:

LABEL=Backup            /media/backup   ext4 
noatime,noauto,user,errors=remount-ro                       0   0
LABEL=Thumb             /media/thumb    vfat 
noatime,noauto,user,uid=1000,gid=1000,umask=007,utf8,flush  0   0

The noauto and hardcoded uid/gid might not work for you, but they could 
be a starting point. Perhaps noauto to stop automounting plus a udev 
rule? I have not tried this.

The above lines give me fixed mount points based on filesystem labels 
(LABEL), but UUID will also work. Device names are no good as they are 
by default dynamically assigned for USB storage devices.

Kind regards,

-- 
Ben Caradoc-Davies <ben@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

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