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


Groups > alt.comp.os.windows-10 > #36015

Re: Is changing user like turning off the computer for USB drives?

From VanguardLH <V@nguard.LH>
Newsgroups alt.comp.os.windows-10
Subject Re: Is changing user like turning off the computer for USB drives?
Date 2017-03-04 17:36 -0600
Organization Usenet Elder
Message-ID <ei11b6Fcs8eU1@mid.individual.net> (permalink)
References <j1kibcpgufbmjpd9sbd92uklg1b52qmn31@4ax.com> <ehu9hqFqr21U1@mid.individual.net> <t82mbc51blo3f34pvij0pufkdd8psnlg30@4ax.com>

Show all headers | View raw


micky wrote:

> In alt.comp.os.windows-10, on Fri, 3 Mar 2017 16:37:46 -0600, VanguardLH
> <V@nguard.LH> wrote:
> 
>>
>>Perhaps the Safely Remove icon is hidden in the taskbar tray.  Did you
> 
> Just to be clear, in this post I'm talking about the 3rd party "USB
> Safely Remove".  There's a 2nd one with a similar name but I found this
> one first. 
> 
> This is this message I've referred to: 
> 
> "Attention, the device will be disabled!
> 
> The device WDC-WD15.... USB Device  is going to be disable because its
> driver doesn't support the authentic  "safe removal" feature**. 
> 
> If this is a SATA, eSATA, USB, Firewire, or PCMCIA "disabling" will
> fully prepare it to safe removal (hot swap) Any other type of device,
> e.g. ATA, cannot be hot-swapped because they do not support this abiltiy
> phyically!  Please make sure the device is connected to the computer
> through one of the listed above interfaces before you continue
> 
> Are you sure you want to disable the device"
> 
> Does going ahead seem acceptable to you?   
> 
> I'll admit it's not as ominous as I was thinking,  I guess I was stymied
> by the first sentence, and that there was a warning at all.   I googled
> 'the authentic safe removal feature" and didn't find anything, and I was
> going to do more searching later. 
> 
> **These drives are no more than 4 years old, 500G to 2T
> 
>>check the hidden icons (the ones you have to click the chevron in the
>>tray area to see)?  When I go to the Control Panel -> Notification Area
>>Icons applet, the entry is listed as "Windows Explorer" with greyed text
>>saying "Safely Remove Hardware and Eject Media".  I configured that icon
>>to "only show notifications" which means it is hidden.  I don't want it
>>occupying a slot in the tray.

So it isn't the Safely Remove applet included in Windows but someone
else's USB manager that you are using.  Sorry, I don't use those.

USB Safely Remove (http://safelyremove.com/, $20)
Zentimo xStorage Manager (http://zentimo.com/, $30)

I've not used either one but was close to getting one of them, likely
the latter one which is more robust hence more expensive.  However,
Zentimo is just a bigger brother of USB Safely Remove.  Both are owned
by Crystal Rich.  Whatever reason for which I needed them had passed
(probably wanted to fix the drive lettering assignments for USB devices)
or the free UWE-Sieber tools were sufficient although not as pretty.

Another tool: https://technet.microsoft.com/en-us/sysinternals/bb897438
The sync tool from SysInternals will force a flush of the cache (pending
writes) before removing a USB drive.

There is some confusion with users between what is the stopped status
of a USB device and actually disconnecting that device.  Stopped status
is a logic state, not a physical state.  Notice the Safely Remove
Hardware wizard in Windows eject a USB device.  I believe that changes
its status to disconnected (so you cannot just restart it).  So you can
stop a USB device, eject it, or physically disconnect it (and when
auto-detect triggers on a [re]connect).

http://www.uwe-sieber.de/drivetools_e.html
Read the "Background information" section for his RestartSrDev tool.

With a USB drive in disconnected status, you cannot write to it (so, for
example, ransomware cannot get at it).  You can reconnect a USB device
to change from its disconnect status.  So you can use his RemoveDrive
tool to disconnect a USB device, leave it physically attached, and later
use his RestartSrDev tool to reconnect that device.  Makes a handy way
to disable the USB device when you want to protect without having to
yank the USB cable or power off an externally powered USB device but
easily reconnect the USB device when you want to use it again.  I have a
batch file to disconnect or reconnect a USB HDD so it is available when
I have SyncBack Free sync files on the PC to the USB HDD but otherwise
unavailable at other times.

The trick was to find a reliable means of identifying which USB drive
that I wanted the UWE-Sieber tools to act upon.  After some trials,
using the device ID in the USB enumeration of the drive worked reliably.
The tools say they will work with other identifier strings but I found
they did not work or were unreliable.  I use a batch file (.bat) to run
the tools with a command-line argument of remove or restart to specify
which tool to use (so I don't need a .bat file for each tool).

The batch file is for my WD MyPassport 1TB USB HDD so that's why I named
the .bat file with its name since the devID string identifies that
particular USB HDD.

File WD_MyPassport.bat

echo off
cls

rem - Set paths to USB tools (double-quoted in case contains space
char).
set sbremove="c:\programs\uwe-sieber\removedrive\x64\removedrive.exe"
set sbrestart="c:\programs\uwe-sieber\restartsrdev\x64\restartsrdev.exe"

rem - Check USB software is available.
if not exist %sbremove%  goto NoProg
if not exist %sbrestart% goto NoProg
goto OkProg
:NoProg
echo ERROR: The following UWE-Sieber USB tools were not found:
echo        removedrive.exe
echo        restartsrdev.exe
goto EndBatch

rem - Identify WD My Passport USB hard disk.
rem - Wildcards are allowed.
rem - Double-quoted in case string contains an ampersand or space
character, and help tool's parser.
set devInstanceID="USB\VID_1058&PID_259D\57584E314532363048544858"
set friendlyName="*My Passport 259D*"
rem - Use Device Instance ID (registry enumeration) or Friendly Name
(not available for removed device).
set devID=%devInstanceID%

rem - Replaceable parameter says which action to perform.
if "%1" == "remove" goto Remove
if "%1" == "restart" goto Restart
echo ERROR: Expected argument not found: remove or restart.  Exiting ...
goto EndBatch

:Remove
rem - Check remove tool is available.
if exist %sbremove% goto GoRemov
echo ERROR: %sbremove% not found.  Exiting ...
goto EndBatch
:GoRemov
rem - Safely remove USB HDD.
echo Removing USB device: %devID%
%sbremove% %devID%
if %errorlevel% LSS 1 goto EndBatch
echo ERROR: Unable to remove device.
echo.
echo ... press any key to continue (end script) ...
pause > nul
goto EndBatch

:Restart
rem - Check remove tool is available.
if exist %sbrestart% goto GoRstrt
echo ERROR: %sbrestart% not found.  Exiting ...
goto EndBatch
:GoRstrt
rem - Restart previously safely removed USB HDD.
echo Restarting USB device: %devID%
%sbrestart% %devID%
if %errorlevel% LSS 1 goto EndBatch
echo ERROR: Unable to restart device.
echo.
echo ... press any key to continue (end script) ...
pause > nul
goto EndBatch

:EndBatch
rem - Clear/delete variables.
set devInstanceID=
set friendlyName=
set devID=
set sbremove=
set sbrestart=
rem - Announce end of batch script.
echo - DONE -
echo.

Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is changing user like turning off the computer for USB drives? micky <NONONOmisc07@bigfoot.com> - 2017-03-03 06:19 -0500
  Re: Is changing user like turning off the computer for USB drives? Paul <nospam@needed.invalid> - 2017-03-03 06:35 -0500
    Re: Is changing user like turning off the computer for USB drives? micky <NONONOmisc07@bigfoot.com> - 2017-03-03 07:25 -0500
      Re: Is changing user like turning off the computer for USB drives? Paul <nospam@needed.invalid> - 2017-03-03 08:16 -0500
        Re: Is changing user like turning off the computer for USB drives? micky <NONONOmisc07@bigfoot.com> - 2017-03-03 16:27 -0500
    Re: Is changing user like turning off the computer for USB drives? "Buffalo" <phoney@physco.invalid.net> - 2017-03-03 15:25 -0700
      Re: Is changing user like turning off the computer for USB drives? Paul <nospam@needed.invalid> - 2017-03-03 18:10 -0500
        Re: Is changing user like turning off the computer for USB drives? micky <NONONOmisc07@bigfoot.com> - 2017-03-04 12:14 -0500
          Re: Is changing user like turning off the computer for USB drives? Paul <nospam@needed.invalid> - 2017-03-04 18:12 -0500
  Re: Is changing user like turning off the computer for USB drives? burfordTjustice <burfordTjustice@tues.uk> - 2017-03-03 07:32 -0500
  Re: Is changing user like turning off the computer for USB drives? VanguardLH <V@nguard.LH> - 2017-03-03 16:37 -0600
    Re: Is changing user like turning off the computer for USB drives? micky <NONONOmisc07@bigfoot.com> - 2017-03-04 12:54 -0500
      Re: Is changing user like turning off the computer for USB drives? VanguardLH <V@nguard.LH> - 2017-03-04 18:08 -0600
    Re: Is changing user like turning off the computer for USB drives? micky <NONONOmisc07@bigfoot.com> - 2017-03-04 13:17 -0500
    Re: Is changing user like turning off the computer for USB drives? micky <NONONOmisc07@bigfoot.com> - 2017-03-04 13:50 -0500
      Re: Is changing user like turning off the computer for USB drives? VanguardLH <V@nguard.LH> - 2017-03-04 17:36 -0600
        Re: Is changing user like turning off the computer for USB drives? micky <NONONOmisc07@bigfoot.com> - 2017-03-05 01:26 -0500

csiph-web