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


Groups > linux.debian.user > #186162

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-30 00:00 +0200
Message-ID <ujWIc-84B-55@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> <ujU3D-6AB-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Ok. As it stands now, I have only the "case 1" fstab entry in place, and 
after this line of the backup script:
> cd /media/ExternalHD/Backups
I've added these lines:
> if [ "$?" = "1" ]; then
>   mount /media/ExternalHD
>   cd /media/ExternalHD/Backups
> fi

which (at least in theory) should mount the external drive if it's 
connected but not mounted.

(And if it doesn't mount, then the backup gets built in the home 
directory instead, which is no big deal, since it's backing up something 
from a separate physical box.)

Tonight, I'll leave ExternalHD connected but unmounted, and tomorrow 
morning, I'll see what will have happened.

Thanks.

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