Page 1 of 1

reattach ejected USB drive

Posted: Sun Nov 10, 2019 10:20 pm
by tgsbn
I'm using the "Eject after job completion" option with HBS 3.
Time and again I find myself trotting to the NAS, unplugging and replugging the external USB disk after a backup run because I still need it connected but the job has already ejected it.
Is there a way to reattach a USB drive that has been ejected but is still physically connected, without physically disconnecting and reconnecting it?

Re: reattach ejected USB drive

Posted: Mon Nov 11, 2019 6:06 am
by P3R
tgsbn wrote: Sun Nov 10, 2019 10:20 pm Is there a way to reattach a USB drive that has been ejected but is still physically connected, without physically disconnecting and reconnecting it?
Not that I know of but if you don't want it ejected you could stop using that option in the job.

Re: reattach ejected USB drive

Posted: Mon Nov 11, 2019 6:45 am
by tgsbn
P3R wrote: Mon Nov 11, 2019 6:06 am Not that I know of but if you don't want it ejected you could stop using that option in the job.
Sure, but in most cases I do want it ejected.
The cases where I don't are just frequent enough to be annoying.

Another possibility would be to disable that option temporarily in those cases before starting the backup.
Alas, this is prevented by HBS's peculiarity of hiding that option when the corresponding disk is not connected.
(Which is an extremely stupid design decision for many more reasons than just this one.)

Re: reattach ejected USB drive

Posted: Mon Nov 11, 2019 7:06 am
by P3R
If you have two jobs with that option as the only difference it would be very simple to select the behaviour you want. I'm not sure if HBS will allow two jobs with the same source and destination but it's worth a try I think.

Re: reattach ejected USB drive

Posted: Mon Nov 11, 2019 7:14 am
by tgsbn
Creating the second job fails because the destination folder already exists.

Re: reattach ejected USB drive

Posted: Mon Nov 11, 2019 7:26 am
by P3R
Yes of course with a backup that's expected (it may work with a sync job but that doesn't help you). i'm sorry, no more ideas.

Re: reattach ejected USB drive

Posted: Wed Apr 01, 2020 4:04 am
by VolkLe
With HSB2 I had this working perfectly. Always before the back-up / sync I did a schedule restart of the NAS (Power settings) and it recognized the USB drive.
Then when it ended it got ejected.
In HSB3 I can't click the "eject" option.

Re: reattach ejected USB drive

Posted: Wed Apr 01, 2020 4:16 am
by P3R
VolkLe wrote: Wed Apr 01, 2020 4:04 am In HSB3 I can't click the "eject" option.
I'm guessing now but you probably need to map the disk in the job configuration to later be able to select to eject it. Do you map the external disk, not just select it?

Re: reattach ejected USB drive

Posted: Wed Apr 01, 2020 4:37 am
by VolkLe
P3R wrote: Wed Apr 01, 2020 4:16 am
VolkLe wrote: Wed Apr 01, 2020 4:04 am In HSB3 I can't click the "eject" option.
I'm guessing now but you probably need to map the disk in the job configuration to later be able to select to eject it. Do you map the external disk, not just select it?
"Eject" does not work for sync or back-up with a schedule. Odd but when using different criteria, it is an active option. Solved it now, to be tested however with my requirements.

Re: reattach ejected USB drive

Posted: Sun Oct 18, 2020 3:30 am
by tgsbn
Just to wrap up my original question: yes, there is a way.
Logging in to the NAS via ssh and entering the commands:

Code: Select all

echo 0 > /sys/bus/usb/devices/2-1/authorized
echo 1 > /sys/bus/usb/devices/2-1/authorized
makes the "ejected" USB drive reappear just as if it had been unplugged and replugged, including the start of an Auto-Backup job that has been defined for that disk, if any.

Incidentally, this means that an "ejected" USB backup disk is not safe from crypto trojans.
So always disconnect your backup disk physically after running a backup!