Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #35919 > unrolled thread
| Started by | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| First post | 2017-03-03 06:19 -0500 |
| Last post | 2017-03-05 01:26 -0500 |
| Articles | 17 — 5 participants |
Back to article view | Back to alt.comp.os.windows-10
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
| From | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| Date | 2017-03-03 06:19 -0500 |
| Subject | Is changing user like turning off the computer for USB drives? |
| Message-ID | <j1kibcpgufbmjpd9sbd92uklg1b52qmn31@4ax.com> |
Maybe because it's a USB double dock but I can never get the drives in the dock into Safely Remove state. So my question is, Is it enough to click on Change User and then disconnect the drives? Is that as good as turning off the computer? I'd never used Change User until tonight, because i have only one user. But I tried it tonight, and I expected I'd have to restart all the programs. Boy was I surprised when everything was still running. So I wondered, if I had unplugged the drives while no user was "using" it, would that have imperiled the data on the drive?
[toc] | [next] | [standalone]
| From | Paul <nospam@needed.invalid> |
|---|---|
| Date | 2017-03-03 06:35 -0500 |
| Message-ID | <o9bkaf$9ea$1@dont-email.me> |
| In reply to | #35919 |
micky wrote:
> Maybe because it's a USB double dock but I can never get the drives in
> the dock into Safely Remove state.
>
> So my question is, Is it enough to click on Change User and then
> disconnect the drives? Is that as good as turning off the computer?
>
> I'd never used Change User until tonight, because i have only one user.
> But I tried it tonight, and I expected I'd have to restart all the
> programs. Boy was I surprised when everything was still running. So I
> wondered, if I had unplugged the drives while no user was "using" it,
> would that have imperiled the data on the drive?
You don't have to do that.
If all other measures fail, it could be that
NTFS TXF transactional operations has been done
on the partition.
The crappy workaround we used for that, when this came
up, was going into Disk Management, right-click the
block next to that line in Disk Management, and selecting
"Offline" status for the disk. After that, Safely Remove
would work.
But then, the next time you plug the disk in, it is tracked
in the Registry. And the Registry still knows the disk is
Offline. And it's easy to forget you did that, and then
not figure out why the disk isn't working. As long as you
have a good memory, you'll be able to go back to
Disk Management, and set it to Online again. And use it.
It sucks to have to do this, but I ran into a problem
tracking it down, where the thing holding TXF, "didn't
have a name". I love holes in software designs like this.
*Everything* should have a name registered against it.
And I think I've seen that a few times in Task Manager
too, where one process will be in there chugging away,
and it has no name either.
Paul
[toc] | [prev] | [next] | [standalone]
| From | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| Date | 2017-03-03 07:25 -0500 |
| Message-ID | <10oibctembsq140c7turne82jeg3cfoqsk@4ax.com> |
| In reply to | #35920 |
In alt.comp.os.windows-10, on Fri, 03 Mar 2017 06:35:32 -0500, Paul <nospam@needed.invalid> wrote: >micky wrote: >> Maybe because it's a USB double dock but I can never get the drives in >> the dock into Safely Remove state. >> >> So my question is, Is it enough to click on Change User and then >> disconnect the drives? Is that as good as turning off the computer? >> >> I'd never used Change User until tonight, because i have only one user. >> But I tried it tonight, and I expected I'd have to restart all the >> programs. Boy was I surprised when everything was still running. So I >> wondered, if I had unplugged the drives while no user was "using" it, >> would that have imperiled the data on the drive? > >You don't have to do that. Okay, but for the record, does it disconnect drives like turning the PC off does? > >If all other measures fail, it could be that >NTFS TXF transactional operations has been done >on the partition. > >The crappy workaround we used for that, when this came >up, was going into Disk Management, right-click the >block next to that line in Disk Management, and selecting I'm in Disk Managerment now, but what is the "block next to that line", and what is "that line"? >"Offline" status for the disk. After that, Safely Remove >would work. > >But then, the next time you plug the disk in, it is tracked >in the Registry. And the Registry still knows the disk is >Offline. And it's easy to forget you did that, and then >not figure out why the disk isn't working. As long as you >have a good memory, you'll be able to go back to >Disk Management, and set it to Online again. And use it. Okay >It sucks to have to do this, but I ran into a problem >tracking it down, where the thing holding TXF, "didn't >have a name". I love holes in software designs like this. >*Everything* should have a name registered against it. > >And I think I've seen that a few times in Task Manager >too, where one process will be in there chugging away, >and it has no name either. > > Paul
[toc] | [prev] | [next] | [standalone]
| From | Paul <nospam@needed.invalid> |
|---|---|
| Date | 2017-03-03 08:16 -0500 |
| Message-ID | <o9bq7p$tsl$1@dont-email.me> |
| In reply to | #35923 |
micky wrote:
> In alt.comp.os.windows-10, on Fri, 03 Mar 2017 06:35:32 -0500, Paul
> <nospam@needed.invalid> wrote:
>
>> micky wrote:
>>> Maybe because it's a USB double dock but I can never get the drives in
>>> the dock into Safely Remove state.
>>>
>>> So my question is, Is it enough to click on Change User and then
>>> disconnect the drives? Is that as good as turning off the computer?
>>>
>>> I'd never used Change User until tonight, because i have only one user.
>>> But I tried it tonight, and I expected I'd have to restart all the
>>> programs. Boy was I surprised when everything was still running. So I
>>> wondered, if I had unplugged the drives while no user was "using" it,
>>> would that have imperiled the data on the drive?
>> You don't have to do that.
>
> Okay, but for the record, does it disconnect drives like turning the PC
> off does?
>> If all other measures fail, it could be that
>> NTFS TXF transactional operations has been done
>> on the partition.
>>
>> The crappy workaround we used for that, when this came
>> up, was going into Disk Management, right-click the
>> block next to that line in Disk Management, and selecting
>
> I'm in Disk Managerment now, but what is the "block next to that line",
> and what is "that line"?
>
>> "Offline" status for the disk. After that, Safely Remove
>> would work.
>>
>> But then, the next time you plug the disk in, it is tracked
>> in the Registry. And the Registry still knows the disk is
>> Offline. And it's easy to forget you did that, and then
>> not figure out why the disk isn't working. As long as you
>> have a good memory, you'll be able to go back to
>> Disk Management, and set it to Online again. And use it.
>
> Okay
>
>> It sucks to have to do this, but I ran into a problem
>> tracking it down, where the thing holding TXF, "didn't
>> have a name". I love holes in software designs like this.
>> *Everything* should have a name registered against it.
>>
>> And I think I've seen that a few times in Task Manager
>> too, where one process will be in there chugging away,
>> and it has no name either.
>>
>> Paul
>
Example:
https://www.eightforums.com/tutorials/53106-disk-set-offline-online.html
Paul
[toc] | [prev] | [next] | [standalone]
| From | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| Date | 2017-03-03 16:27 -0500 |
| Message-ID | <3rnjbc94lj7pvkres7gk9dt9pd8ct4hrl6@4ax.com> |
| In reply to | #35928 |
In alt.comp.os.windows-10, on Fri, 03 Mar 2017 08:16:30 -0500, Paul <nospam@needed.invalid> wrote: > >> >>> It sucks to have to do this, but I ran into a problem >>> tracking it down, where the thing holding TXF, "didn't >>> have a name". I love holes in software designs like this. >>> *Everything* should have a name registered against it. >>> >>> And I think I've seen that a few times in Task Manager >>> too, where one process will be in there chugging away, >>> and it has no name either. >>> >>> Paul >> > >Example: > >https://www.eightforums.com/tutorials/53106-disk-set-offline-online.html > > Paul Thanks. At first I saw that flash drives plugged into the box had Offline greyed out, but the USB dock drives had it. I'll test it in a while.
[toc] | [prev] | [next] | [standalone]
| From | "Buffalo" <phoney@physco.invalid.net> |
|---|---|
| Date | 2017-03-03 15:25 -0700 |
| Message-ID | <o9cqd6$jb9$1@dont-email.me> |
| In reply to | #35920 |
"Paul" wrote in message news:o9bkaf$9ea$1@dont-email.me... > >micky wrote: >> Maybe because it's a USB double dock but I can never get the drives in >> the dock into Safely Remove state. So my question is, Is it enough to >> click on Change User and then >> disconnect the drives? Is that as good as turning off the computer? I'd >> never used Change User until tonight, because i have only one user. >> But I tried it tonight, and I expected I'd have to restart all the >> programs. Boy was I surprised when everything was still running. So I >> wondered, if I had unplugged the drives while no user was "using" it, >> would that have imperiled the data on the drive? > >You don't have to do that. > >If all other measures fail, it could be that >NTFS TXF transactional operations has been done >on the partition. > >The crappy workaround we used for that, when this came >up, was going into Disk Management, right-click the >block next to that line in Disk Management, and selecting >"Offline" status for the disk. After that, Safely Remove >would work. > >But then, the next time you plug the disk in, it is tracked >in the Registry. And the Registry still knows the disk is >Offline. And it's easy to forget you did that, and then >not figure out why the disk isn't working. As long as you >have a good memory, you'll be able to go back to >Disk Management, and set it to Online again. And use it. > >It sucks to have to do this, but I ran into a problem >tracking it down, where the thing holding TXF, "didn't >have a name". I love holes in software designs like this. >*Everything* should have a name registered against it. > >And I think I've seen that a few times in Task Manager >too, where one process will be in there chugging away, >and it has no name either. > > Paul Can't you just go into File Explorer and rt click on that drive and select "Eject"? -- Buffalo
[toc] | [prev] | [next] | [standalone]
| From | Paul <nospam@needed.invalid> |
|---|---|
| Date | 2017-03-03 18:10 -0500 |
| Message-ID | <o9ct1u$vc4$1@dont-email.me> |
| In reply to | #35952 |
Buffalo wrote:
> "Paul" wrote in message news:o9bkaf$9ea$1@dont-email.me...
>>
>> micky wrote:
>>> Maybe because it's a USB double dock but I can never get the drives in
>>> the dock into Safely Remove state. So my question is, Is it enough
>>> to click on Change User and then
>>> disconnect the drives? Is that as good as turning off the computer?
>>> I'd never used Change User until tonight, because i have only one user.
>>> But I tried it tonight, and I expected I'd have to restart all the
>>> programs. Boy was I surprised when everything was still running. So I
>>> wondered, if I had unplugged the drives while no user was "using" it,
>>> would that have imperiled the data on the drive?
>>
>> You don't have to do that.
>>
>> If all other measures fail, it could be that
>> NTFS TXF transactional operations has been done
>> on the partition.
>>
>> The crappy workaround we used for that, when this came
>> up, was going into Disk Management, right-click the
>> block next to that line in Disk Management, and selecting
>> "Offline" status for the disk. After that, Safely Remove
>> would work.
>>
>> But then, the next time you plug the disk in, it is tracked
>> in the Registry. And the Registry still knows the disk is
>> Offline. And it's easy to forget you did that, and then
>> not figure out why the disk isn't working. As long as you
>> have a good memory, you'll be able to go back to
>> Disk Management, and set it to Online again. And use it.
>>
>> It sucks to have to do this, but I ran into a problem
>> tracking it down, where the thing holding TXF, "didn't
>> have a name". I love holes in software designs like this.
>> *Everything* should have a name registered against it.
>>
>> And I think I've seen that a few times in Task Manager
>> too, where one process will be in there chugging away,
>> and it has no name either.
>>
>> Paul
> Can't you just go into File Explorer and rt click on that drive and
> select "Eject"?
>
Not if something has a file open.
For "regular things", there is actually a third party tool
with a name like SafelyRemove that does the work for it. It
hunts down the handle that is keeping the drive open.
I think the OP who had the NTFS TXF problem, he tried
SafelyRemove and it wouldn't work for that problem. That's
because the "owner" of the handle, has no name.
Yeah, yanking the cable is very clever, but there is danger
if the file system is FAT32 and is not journaled. For NTFS
partitions, they're less likely to be corrupted, and will be
cleaned up by the system on the next invocation. FAT32 doesn't
have TXF, so cannot be hung up by it.
If yanking the cable is your favorite way, you'd want to
make sure the drive is "Optimized for quick removal", so that
no system write cache can be used by Windows. My system can
store as much as "50 seconds" worth of data in RAM, and if
you pull the cable at an arbitrary point in time, that's how
much data you lose. I've noticed that the flushing of these
caches isn't perfect, so even if the system has become
"a little quiet", there is still a danger pulling the cable.
But if you've disabled the write cache on that disk, then
there shouldn't be a problem. Just wait for the LED to stop,
then yank the cable.
I prefer to use a safely remove or eject function, because
on 3.5" USB drives, it can spin them down for me. When the LED
goes off, it's "mechanically safe".
Paul
[toc] | [prev] | [next] | [standalone]
| From | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| Date | 2017-03-04 12:14 -0500 |
| Message-ID | <6lrlbc54df7qcloqfr85uvm2755j0i3g31@4ax.com> |
| In reply to | #35959 |
In alt.comp.os.windows-10, on Fri, 03 Mar 2017 18:10:42 -0500, Paul <nospam@needed.invalid> wrote: >Buffalo wrote: >> "Paul" wrote in message news:o9bkaf$9ea$1@dont-email.me... >>> >>> micky wrote: >>>> Maybe because it's a USB double dock but I can never get the drives in >>>> the dock into Safely Remove state. So my question is, Is it enough >>>> to click on Change User and then >>>> disconnect the drives? Is that as good as turning off the computer? >>>> I'd never used Change User until tonight, because i have only one user. >>>> But I tried it tonight, and I expected I'd have to restart all the >>>> programs. Boy was I surprised when everything was still running. So I >>>> wondered, if I had unplugged the drives while no user was "using" it, >>>> would that have imperiled the data on the drive? >>> >>> You don't have to do that. >>> >>> If all other measures fail, it could be that >>> NTFS TXF transactional operations has been done >>> on the partition. >>> >>> The crappy workaround we used for that, when this came >>> up, was going into Disk Management, right-click the >>> block next to that line in Disk Management, and selecting >>> "Offline" status for the disk. After that, Safely Remove >>> would work. >>> >>> But then, the next time you plug the disk in, it is tracked >>> in the Registry. And the Registry still knows the disk is >>> Offline. And it's easy to forget you did that, and then >>> not figure out why the disk isn't working. As long as you >>> have a good memory, you'll be able to go back to >>> Disk Management, and set it to Online again. And use it. >>> >>> It sucks to have to do this, but I ran into a problem >>> tracking it down, where the thing holding TXF, "didn't >>> have a name". I love holes in software designs like this. >>> *Everything* should have a name registered against it. >>> >>> And I think I've seen that a few times in Task Manager >>> too, where one process will be in there chugging away, >>> and it has no name either. >>> >>> Paul >> Can't you just go into File Explorer and rt click on that drive and >> select "Eject"? >> > >Not if something has a file open. > >For "regular things", there is actually a third party tool >with a name like SafelyRemove that does the work for it. It There are two of those, with very similar names iirc, and I bought the one I found first, and so far it's been no help. It will -- I think it's only sometimes, I'm not positive right now -- look for every process that is "locking a file on the device" but I think it didn't always do that, and instead it gave a dire warning about what would happen if I forced a disconnect. Even when it does look, like right now, it lists a couple file managers (which are no longer pointing at the partition, but it appears must either be closed to break the lock, or forced to break it), plus Search Everything, plus AVG, and the Virtualizaton Handler CVH.exe. Even today, I don't know what the last one is and I"m afraid to force it to disconnect. In addition, about 2 months ago, before I got the software but after I'd tried other things I impatiently turned off a USB drive,. That was the time (which I never yet posted about) that I tried to boot from it when it wasn't ready, And because of one of those two things I guess, now the whole partition (and iirc a second partition on that drive) is called unallocated!! I don't see how either of those things could have done that much damage, but what do I know? And that is why now I want an iron-clad guarantee that I'll do no damage if I disconnect something. I should have asked: Is that true if I use the Offline option you first told me about. Will that disconnect with guaranteed no damage???? I can probably get that partition back with Easeus Data Recovery, but haven't had time. BTW, I came across a secodn flaw in Easus Partition Master. This time, I plugged in double dock with two drives and none of the partitions got letters: (IIRC they woudl have in XP) So I used Easus to assign letters and it took before I said Apply. As Apply finished, the letters disappeared. Happened 3 or 4 times Then I went to Mini and did the same thing and it went smoothly the first time. There was something similar, mabye enlarging a non-system partition (I think I posted about it) that easeus wouldn't do. It had me reboot, and I tried it twice, and the process ran on reboot but failed. Mini did it with no reboot. >hunts down the handle that is keeping the drive open. > >I think the OP who had the NTFS TXF problem, he tried FTR, that OP is not me. >SafelyRemove and it wouldn't work for that problem. That's >because the "owner" of the handle, has no name. > >Yeah, yanking the cable is very clever, but there is danger >if the file system is FAT32 and is not journaled. For NTFS >partitions, they're less likely to be corrupted, and will be >cleaned up by the system on the next invocation. Well turning off the power might be like yanking the cable. At any rate the partition with troubgle ablove it was NTFS and I don't know what did it but it became unallocated adn didnt' clean up on restart. Maybe this room is haunted. Another harddrive with 2 partitions became unallocated just 3 days ago and I hadn't done anything unusual to it. The drive had been sitting around for a year but it worked fine for a few hours before I left the room. I wasn't even in the room and when I came back I noticedthe partitions had disappeared.. The other drive in the double dock was fine, and is still fine. I then cloned the bad partition using the dock's clone button, and applied Easesus Data Recovery to the clone, and found 6 files^^ on the whole drive. But then I applied it to the original bad drive and so I've found 453,000 files and I' m only 24%**** done, after rurning for about 12 hours. ****However I won't find 3 x more files. It finds most of the files in the first 20 minutes and more slowly after that. It also iirc probably wont' take 3 x as much time to finish as I've spent so far. ^^Have you heard anything about the clone button on double docks? This is Xiaobi but there are others, probably with the same built-in software. I'll admit I didnt' do it right at first, but the lights didn't flash when I was doing it wrong and it took a few hours when I did it right, but it didnt' clone the drive since Recovery Wizard found only 6 files in the "clone" and 450,000 files in the original. > FAT32 doesn't >have TXF, so cannot be hung up by it. > >If yanking the cable is your favorite way, you'd want to >make sure the drive is "Optimized for quick removal", so that >no system write cache can be used by Windows. My system can >store as much as "50 seconds" worth of data in RAM, and if I've always waited an hour or more since the last operation, but when I look in Resource Monitor, there are still reads and writes by system programs or AVG. I'll give you details if will tell me how to stop those. >you pull the cable at an arbitrary point in time, that's how >much data you lose. I've noticed that the flushing of these >caches isn't perfect, so even if the system has become >"a little quiet", there is still a danger pulling the cable. >But if you've disabled the write cache on that disk, then >there shouldn't be a problem. Just wait for the LED to stop, >then yank the cable. > >I prefer to use a safely remove or eject function, because >on 3.5" USB drives, it can spin them down for me. When the LED >goes off, it's "mechanically safe". > > Paul
[toc] | [prev] | [next] | [standalone]
| From | Paul <nospam@needed.invalid> |
|---|---|
| Date | 2017-03-04 18:12 -0500 |
| Message-ID | <o9fhh7$9ce$1@dont-email.me> |
| In reply to | #36003 |
micky wrote:
>>
>> I think the OP who had the NTFS TXF problem, he tried
>
> FTR, that OP is not me.
>
>> SafelyRemove and it wouldn't work for that problem. That's
>> because the "owner" of the handle, has no name.
I recommend the Offline method, specifically if you suspect
TXF is the root of the problem, on a NTFS setup.
I don't really know, if conventional Handles are involved,
what happens if you go Offline. Will it deny the attempt ?
You would think not, from the observation it neatly snips
the "unnamed" handle caused by usage of TXF. So if didn't
have a problem smacking that one.
I would probably use a copy of Handle (sysinternals.com) or
Process Explorer (handle capability, sysinternals.com) to
identify the processes having files opened first. I would
only buy a copy of SafelyRemove, as a money-versus-time
tradeoff. I would clean up the situation as best I could,
before using the Offline thing. In other words, clean up
the regular handles first, by exiting the involved software,
then and only then, if it still refuses a request to eject
or safely remove, hammer it with offline. It's either that
or do a shutdown (which is, of course, as "safe as
Windows can make it").
In a quick search, I could not find a technical description
of the Offline sequence. And can only offer "caution"
at this point.
Paul
[toc] | [prev] | [next] | [standalone]
| From | burfordTjustice <burfordTjustice@tues.uk> |
|---|---|
| Date | 2017-03-03 07:32 -0500 |
| Message-ID | <o9bnlb$sag$12@dont-email.me> |
| In reply to | #35919 |
On Fri, 03 Mar 2017 06:19:45 -0500 micky <NONONOmisc07@bigfoot.com> wrote: > Maybe because it's a USB double dock but I can never get the drives in > the dock into Safely Remove state. > > So my question is, Is it enough to click on Change User and then > disconnect the drives? Is that as good as turning off the computer? > > I'd never used Change User until tonight, because i have only one > user. But I tried it tonight, and I expected I'd have to restart all > the programs. Boy was I surprised when everything was still > running. So I wondered, if I had unplugged the drives while no user > was "using" it, would that have imperiled the data on the drive? Just unplug the drive and move on...skip all that other crap.
[toc] | [prev] | [next] | [standalone]
| From | VanguardLH <V@nguard.LH> |
|---|---|
| Date | 2017-03-03 16:37 -0600 |
| Message-ID | <ehu9hqFqr21U1@mid.individual.net> |
| In reply to | #35919 |
micky wrote: > Maybe because it's a USB double dock but I can never get the drives in > the dock into Safely Remove state. > > So my question is, Is it enough to click on Change User and then > disconnect the drives? Is that as good as turning off the computer? > > I'd never used Change User until tonight, because i have only one user. > But I tried it tonight, and I expected I'd have to restart all the > programs. Boy was I surprised when everything was still running. So I > wondered, if I had unplugged the drives while no user was "using" it, > would that have imperiled the data on the drive? Are you plugging a USB2 device (double dock) into a USB3 port (on computer)? Some old USB2 devices don't provide the correct device type in their presentation data passed during handshaking that gets recorded in the registry as enumeration data. They specified the wrong device type. When I use Nirsoft's USBDeview, my USB HDD shows up as a "Mass storage" device under the Device Type column. It is enumerated in the registry under: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\Disk&Ven_WD&Prod_My_Passport_259D&Rev_1005\57584E314532363048544858&0 where the DeviceDesc data item has a value showing it is a "Disk drive" and is identified with the disk.inf definition file (as a generic disk drive) and the Class data item has a value of DiskDrive. When I go into Device Manager (devmgmt.msc), right-click on the USB drive under the "Disk drives" category node, select Properties, and look under the Policies tab, that drive is set to NOT cache writes to it (set for quick removal). Writes to the drive has them committed immediately, not pending in a buffer aka cache. When I use Nirsoft's USBDeview to look at the properties of this USB HDD, Capabilities include SupriseRemovalOK. Read these: https://www.cnet.com/how-to/quickly-remove-usb-devices-without-using-safe-removal/ https://www.howtogeek.com/118546/htg-explains-do-you-really-need-to-safely-remove-usb-sticks/ http://www.pcworld.com/article/254868/safely_remove_usb_drives_just_by_unplugging_them.html http://www.thewindowsclub.com/make-usb-external-media-perform-faster-windows According to the last article, Quick Removal is the default policy for USB drives -- unless you use NTFS (which incorporates a change journal for data recovery) -- so you don't have to waste time and mouse clicks to safely remove them before yanking them. Although the USB drive may be listed in the Safely Remove app, that doesn't mean you have to use it. Depends on the write caching policy configured for the device. I've tried using the Better Performance policy (use write caching) but never found that it produces any significant speedup in using the USB drive. Maybe it helps with r-e-a-l-l-y slow USB storage media. If there is a read to the pending write data then the cache has to get pushed anyway. I think what Paul mentioned was about having open file handles (locks) on files still inuse when trying to eject or safely remove the drive. That's not the same as pending writes in an OS buffer. Perhaps the Safely Remove icon is hidden in the taskbar tray. Did you 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. How are YOU trying to get the drives in the safe remove state? Are you right-clicking on the drive shown in Windows Explorer and using Eject? Is the USB drive not listed in the Safely Remove Hardware wizard? Run: %windir%\System32\control.exe hotplug.dll or C:\Windows\System32\rundll32.exe shell32.dll,Control_RunDLL hotplug.dll if it is not already available as a [hidden] tray icon. Even quick removal policied USB drives should show up in that list. As to your question, Change User is Windows attempt at multi-user support. It leaves loaded in memory everything that was running in your Windows account while loading the userprofile for another Windows account which will load more stuff into memory (so you will run out of memory faster). The first account (you switch away from) is suspended (not unloaded) while you load the second account. Some programs don't support multi-user mode and will error, misbehave, or worse if you try to run them concurrently in multiple Windows accounts. What you are asking about is Fast User Switching (FUS) that was introduced back in Windows XP. https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fast_user_switching.mspx https://www.howtogeek.com/howto/windows/disable-fast-user-switching-on-windows-xp/ http://www.addictivetips.com/windows-tips/how-to-enable-disable-fast-user-switching-in-windows-xp-and-windows-vista/ https://www.bleepingcomputer.com/tutorials/disable-fast-user-switching-in-windows/ All policies are registry entries (and how you can alter those pushed when connecting within a domain as long as your Windows account has local admin privs to undo global policies that the IT folks agree is okay for you to circumvent). The Home editions of Windows do not come with a policy editor. The last article shows the registry entry you create to enable/disable FUS. This is a global setting (under the HKLM hive) so enabling/disabling it means effecting the change for all users. I don't use FUS so I don't have to bother disabling it. If multiple users had separate Windows accounts on the same host, I might disable it to prevent them from reporting problems, like lack of system memory, due to using FUS.
[toc] | [prev] | [next] | [standalone]
| From | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| Date | 2017-03-04 12:54 -0500 |
| Message-ID | <tgtlbcd1ijmmmjrom9rcs6u4fh51nptqke@4ax.com> |
| In reply to | #35954 |
In alt.comp.os.windows-10, on Fri, 3 Mar 2017 16:37:46 -0600, VanguardLH <V@nguard.LH> wrote: >micky wrote: > >> Maybe because it's a USB double dock but I can never get the drives in >> the dock into Safely Remove state. >> >> So my question is, Is it enough to click on Change User and then >> disconnect the drives? Is that as good as turning off the computer? >> >> I'd never used Change User until tonight, because i have only one user. >> But I tried it tonight, and I expected I'd have to restart all the >> programs. Boy was I surprised when everything was still running. So I >> wondered, if I had unplugged the drives while no user was "using" it, >> would that have imperiled the data on the drive? > >Are you plugging a USB2 device (double dock) into a USB3 port (on No, but I was plugging a USB3 dock into a USB2 port. https://www.amazon.com/Docking-Station-Xiaobi-Offline-Function/dp/B00WFS3WKU/ref=sr_1_sc_1 >computer)? Some old USB2 devices don't provide the correct device type >in their presentation data passed during handshaking that gets recorded >in the registry as enumeration data. They specified the wrong device >type. > >When I use Nirsoft's USBDeview, my USB HDD shows up as a "Mass storage" I'll go get that and see what it says. Wow, a lot of information, 27 rows and 35 columns. (19 of those rows are for things not connected, like my bluetooth receiver which is unplugged now.) All but 4 devices is listed as Safe to Unplug and none of those 4 are listed as connected, but surely that's not true*** because I am running Data Recovery Wizard on one of the Mass Storage items, and its light is blinking. It must mean that if it were not blinking it woudl be safe to remove it???? ***Farther down you bring up Surprise Removal Okay. Hmm. Every USB HDD is listed that way, so again, he must not mean that when the light is flashing. Resource Monitor would say which partition is being written/read but this one is unallocated, but I only have one partition that is unallocated, so I know which drive it is. My previous double dock had one light for both drives. This one has a light for each. >device under the Device Type column. It is enumerated in the registry >under: > >HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\Disk&Ven_WD&Prod_My_Passport_259D&Rev_1005\57584E314532363048544858&0 I couldn't find the connection to my registry, but unless it would help me, I'm not asking you to explain it. >where the DeviceDesc data item has a value showing it is a "Disk drive" >and is identified with the disk.inf definition file (as a generic disk >drive) and the Class data item has a value of DiskDrive. > >When I go into Device Manager (devmgmt.msc), right-click on the USB >drive under the "Disk drives" category node, select Properties, and look >under the Policies tab, that drive is set to NOT cache writes to it (set If I set it for quick removal, no write caching, now, will that still be true when I unplug it and plug it in again days later after putting other drives in that dock in between? But as I say to Paul, another problem is all the system and AVG reads and writes which never seem to stop -- welll they've stopped now, of course, because I said they never stop, -- even though I don't have indexing on,, Well amazingly, nothing is running at the moment except what I want to run (Right now, the only Read is by DRWui, but it's a meg per second, (0 reads) .... never mind. That's Data Recovery Wizard and I'm trying to recover the disappeared partition. So that's understandable. BTW, it doesn't have a drive letter and is labeled \device \harddisk7\DR11. ) BTW the easy way to find these usb drives is to go to Resource Monitor and under Disk, sort the File column in reverse order, so C: drive files are last and everything else is first. I don't suppose making a partition "set for quick removal" will make everything plugged into that dock set for quiick removal? That would be too much to hope for. Enought comments by me already. I'll post now and read the rest in a few minutes. >for quick removal). Writes to the drive has them committed immediately, >not pending in a buffer aka cache. When I use Nirsoft's USBDeview to >look at the properties of this USB HDD, Capabilities include >SupriseRemovalOK. Read these: > >https://www.cnet.com/how-to/quickly-remove-usb-devices-without-using-safe-removal/ >https://www.howtogeek.com/118546/htg-explains-do-you-really-need-to-safely-remove-usb-sticks/ >http://www.pcworld.com/article/254868/safely_remove_usb_drives_just_by_unplugging_them.html >http://www.thewindowsclub.com/make-usb-external-media-perform-faster-windows > >According to the last article, Quick Removal is the default policy for >USB drives -- unless you use NTFS (which incorporates a change journal >for data recovery) -- so you don't have to waste time and mouse clicks >to safely remove them before yanking them. Although the USB drive may >be listed in the Safely Remove app, that doesn't mean you have to use >it. Depends on the write caching policy configured for the device. >I've tried using the Better Performance policy (use write caching) but >never found that it produces any significant speedup in using the USB >drive. Maybe it helps with r-e-a-l-l-y slow USB storage media. If >there is a read to the pending write data then the cache has to get >pushed anyway. > >I think what Paul mentioned was about having open file handles (locks) >on files still inuse when trying to eject or safely remove the drive. >That's not the same as pending writes in an OS buffer. > >Perhaps the Safely Remove icon is hidden in the taskbar tray. Did you >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. > >How are YOU trying to get the drives in the safe remove state? Are you >right-clicking on the drive shown in Windows Explorer and using Eject? > >Is the USB drive not listed in the Safely Remove Hardware wizard? Run: > >%windir%\System32\control.exe hotplug.dll >or >C:\Windows\System32\rundll32.exe shell32.dll,Control_RunDLL hotplug.dll > >if it is not already available as a [hidden] tray icon. Even quick >removal policied USB drives should show up in that list. > >As to your question, Change User is Windows attempt at multi-user >support. It leaves loaded in memory everything that was running in your >Windows account while loading the userprofile for another Windows >account which will load more stuff into memory (so you will run out of >memory faster). The first account (you switch away from) is suspended >(not unloaded) while you load the second account. Some programs don't >support multi-user mode and will error, misbehave, or worse if you try >to run them concurrently in multiple Windows accounts. What you are >asking about is Fast User Switching (FUS) that was introduced back in >Windows XP. > >https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fast_user_switching.mspx >https://www.howtogeek.com/howto/windows/disable-fast-user-switching-on-windows-xp/ >http://www.addictivetips.com/windows-tips/how-to-enable-disable-fast-user-switching-in-windows-xp-and-windows-vista/ >https://www.bleepingcomputer.com/tutorials/disable-fast-user-switching-in-windows/ > >All policies are registry entries (and how you can alter those pushed >when connecting within a domain as long as your Windows account has >local admin privs to undo global policies that the IT folks agree is >okay for you to circumvent). The Home editions of Windows do not come >with a policy editor. The last article shows the registry entry you >create to enable/disable FUS. This is a global setting (under the HKLM >hive) so enabling/disabling it means effecting the change for all users. >I don't use FUS so I don't have to bother disabling it. If multiple >users had separate Windows accounts on the same host, I might disable it >to prevent them from reporting problems, like lack of system memory, due >to using FUS.
[toc] | [prev] | [next] | [standalone]
| From | VanguardLH <V@nguard.LH> |
|---|---|
| Date | 2017-03-04 18:08 -0600 |
| Message-ID | <ei138pFd6laU1@mid.individual.net> |
| In reply to | #36005 |
Rather than use 3rd party tools to manage USB devices (you mention in
another subthread), can you use the Safely Remove Hardware wizard (that
I mentioned) that comes in Windows to see the device and use that wizard
to eject the USB drive?
- Is there a tray icon for the Safely Remove Hardware wizard in the
system notification area (aka systray) are of the Windows taskbar
(even if a hidden icon requiring you to use the chevron to see those)?
o If so, left-click on the icon. Is your USB drive listed there?
* If so, can you right-click on it and perform an eject?
- Run %windir%\System32\control.exe hotplug.dll.
o Is your USB drive listed there?
* If so, can you click on it (to select) and perform an stop on it?
- When you see the USB drive shown in Windows Explorer, can you
right-click on it and select Eject in the context menu? Doesn't for
me but then my USB HDD is configured for Quick Disconnect mode.
- In Control Panel -> Devices and Printers applet, right-click on your
USB HDD. Is there an Eject option? Try that.
To me, it sounds like the drive dock isn't fully USB2 compliant;
however, I'm not sure why you would be trying to get the dock into a
stopped state. You would want the drives loaded within it to a stopped
state (if even needed; i.e., not configured for Quick Disconnect). Can
you actually see the drives when they are inserted into the dock? Do
the drives each show up as themselves as USB devices? Or is the USB
dock as far as you can see? After all, the dock is just an external
case (with no top) with a USB interface. When you connect a USB HDD,
you only see the one USB device, not the USB circuit board and the USB
drive within the enclosure.
If the disk access lights are blinking on the dock, the drives are not
in a stopped state.
From what I see of Amazon's pics of the device, the USB3 ports on the
front are probably just a USB hub (perhaps powered since the dock has
its own A/C power adapter). Those aren't involved with whatever drives
you are sliding into the dock's slots. There is only a single USB3 port
on the back (connected to the PC) so you have one USB line for up to 2
drives in its slots and whatever USB devices you connect to its front
ports. So I'm guessing the drives are also on a USB hub inside the
dock. I found a manual at http://www.xiaobi.com.tw/en/s_hubonebay.htm
for their 1-drive dock.
If the drives or the dock shows up so you can check their policy and
they are set to Quick Removal, just wait until the lights aren't
blinking to flip the dock's power switch. When the lights aren't
blinking, and because the drives are configured for Quick Removal, just
power off. They won't know how the drives are configured so they have a
"USB Safe Removal" section. That is not available to you (the above
procedures don't work)?
[toc] | [prev] | [next] | [standalone]
| From | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| Date | 2017-03-04 13:17 -0500 |
| Message-ID | <dsvlbcdgujq2577vhio27u629rhr9maode@4ax.com> |
| In reply to | #35954 |
In alt.comp.os.windows-10, on Fri, 3 Mar 2017 16:37:46 -0600, VanguardLH <V@nguard.LH> wrote: Second half of your post. I commented on the first part earlier. > > >https://www.cnet.com/how-to/quickly-remove-usb-devices-without-using-safe-removal/ >https://www.howtogeek.com/118546/htg-explains-do-you-really-need-to-safely-remove-usb-sticks/ >http://www.pcworld.com/article/254868/safely_remove_usb_drives_just_by_unplugging_them.html >http://www.thewindowsclub.com/make-usb-external-media-perform-faster-windows No time to read these now, but I will. >According to the last article, Quick Removal is the default policy for >USB drives -- unless you use NTFS (which incorporates a change journal Well I think they all use NTFS. What else should I use? >for data recovery) -- so you don't have to waste time and mouse clicks >to safely remove them before yanking them. But I use NTFS. > Although the USB drive may >be listed in the Safely Remove app, that doesn't mean you have to use >it. Depends on the write caching policy configured for the device. >I've tried using the Better Performance policy (use write caching) but >never found that it produces any significant speedup in using the USB >drive. Maybe it helps with r-e-a-l-l-y slow USB storage media. If Yeah, maybe it's left over from the old days. >there is a read to the pending write data then the cache has to get >pushed anyway. > >I think what Paul mentioned was about having open file handles (locks) >on files still inuse when trying to eject or safely remove the drive. >That's not the same as pending writes in an OS buffer. I get it. >Perhaps the Safely Remove icon is hidden in the taskbar tray. Did you >check the hidden icons (the ones you have to click the chevron in the It was hidden when first installed, but I unhid it a while ago. The problem was it didn't work, that is, it gave this ominous warning that intimidated me. I'm sorry I can't quote the warning now. I'm afraid trying to get it will disconnect a drive when I don't want to. I will write it down word for word next time and post it.. >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. > >How are YOU trying to get the drives in the safe remove state? Are you >right-clicking on the drive shown in Windows Explorer and using Eject? I've never tried that***. Is that safe, that means it won't eject if it shouldn't. ***Maybe it's the same as the icon in the systray before that was replaced by Safely Remove 3rd party software?? If so, I'm sure it won't let me. >Is the USB drive not listed in the Safely Remove Hardware wizard? Run: > >%windir%\System32\control.exe hotplug.dll Oh, I like that. Thanks. That's the list I used to get before installing Safely Remove, and with Display Device Components, it's easier to read. This does show the 4 cardreaders and the camera that 3rd Party Safely Remove doesn't show, unless you click on that, and clicking on that, I see that Safely Remove is NOT by default showing the HDD with the disappeared partition. I guess I knew it wasn't, since all the listed partitions had letters, but it hadn't sunk in before. >or >C:\Windows\System32\rundll32.exe shell32.dll,Control_RunDLL hotplug.dll This is the same thing. of course. >if it is not already available as a [hidden] tray icon. Even quick >removal policied USB drives should show up in that list. > >As to your question, Change User is Windows attempt at multi-user >support. It leaves loaded in memory everything that was running in your >Windows account while loading the userprofile for another Windows >account which will load more stuff into memory (so you will run out of >memory faster). The first account (you switch away from) is suspended >(not unloaded) while you load the second account. Very good to know. I hope it didn't load a second copy of my profile since I only have one user, but I'm not going to use it again. > Some programs don't >support multi-user mode and will error, misbehave, or worse if you try >to run them concurrently in multiple Windows accounts. What you are Well I won't do this again then. I only did it to propertly disconnect drives I wanted to disconnect, but not have to restart windows, and it didn't disconnect anything. Next time I'll restart windows. >asking about is Fast User Switching (FUS) that was introduced back in >Windows XP. > >https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fast_user_switching.mspx >https://www.howtogeek.com/howto/windows/disable-fast-user-switching-on-windows-xp/ >http://www.addictivetips.com/windows-tips/how-to-enable-disable-fast-user-switching-in-windows-xp-and-windows-vista/ >https://www.bleepingcomputer.com/tutorials/disable-fast-user-switching-in-windows/ I'll read these tonight. >All policies are registry entries (and how you can alter those pushed >when connecting within a domain as long as your Windows account has >local admin privs to undo global policies that the IT folks agree is >okay for you to circumvent). The Home editions of Windows do not come >with a policy editor. The last article shows the registry entry you >create to enable/disable FUS. This is a global setting (under the HKLM >hive) so enabling/disabling it means effecting the change for all users. >I don't use FUS so I don't have to bother disabling it. If multiple >users had separate Windows accounts on the same host, I might disable it >to prevent them from reporting problems, like lack of system memory, due >to using FUS. Makes sense.
[toc] | [prev] | [next] | [standalone]
| From | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| Date | 2017-03-04 13:50 -0500 |
| Message-ID | <t82mbc51blo3f34pvij0pufkdd8psnlg30@4ax.com> |
| In reply to | #35954 |
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.
[toc] | [prev] | [next] | [standalone]
| From | VanguardLH <V@nguard.LH> |
|---|---|
| Date | 2017-03-04 17:36 -0600 |
| Message-ID | <ei11b6Fcs8eU1@mid.individual.net> |
| In reply to | #36009 |
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.
[toc] | [prev] | [next] | [standalone]
| From | micky <NONONOmisc07@bigfoot.com> |
|---|---|
| Date | 2017-03-05 01:26 -0500 |
| Message-ID | <pfbnbc1q0dtvkbstl1ckr98shr6t947sab@4ax.com> |
| In reply to | #36015 |
In alt.comp.os.windows-10, on Sat, 4 Mar 2017 17:36:06 -0600, VanguardLH <V@nguard.LH> wrote: >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) Yeah, this is the second one. I see the name is nothing like the first one's but the webpage shows a picture of the little window it displays and that looks almo same images, same fonts, same colors, same arrangement of things, same words underlined,same two symbols in the upper right corner, same 2 symbols in the bottom left corner, same count of "devices not shown" in the bottom right corner in the same color and font. There's a little double up-arrow in Zentimo that isn't in mine > >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. I should have read this line first. That accounts for it. I think the first one is sold from Russa. > 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. email this to myself. For the link above, but I'm getting tired and I'll read the rest of this from the email. If I have something wise to reply with, I'll come back here. >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.
[toc] | [prev] | [standalone]
Back to top | Article view | alt.comp.os.windows-10
csiph-web