Topic: Trouble with USB-Sticks  (Read 20672 times)

Trouble with USB-Sticks
« on: January 21, 2013, 03:48:59 PM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
Can anyone tell me, why Win7PESE shows so widely different reactions to different USB-Sticks?

- Stick A: Works flawless right away, even right after boot
- Stick B: Works flawless once a USB Stick was used before. Right after boot, it needs to be inserted twice before it works correctly.
- Stick C: Needs to be inserted exactly 3 times before it works correctly, no matter if another stick was used before or not.

All sticks are USB 2.0 and FAT formated.

:cheers:

Re: Trouble with USB-Sticks
« Reply #1 on: January 21, 2013, 03:54:30 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
I wonder how these usb sticks respond on Gena, this may give a clue....

Re: Trouble with USB-Sticks
« Reply #2 on: January 21, 2013, 04:21:57 PM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
OK, downloading Gena now.

:cheers:

Re: Trouble with USB-Sticks
« Reply #3 on: January 21, 2013, 09:22:57 PM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
As usual with PE1 projects, all USB-Sticks work perfectly right from the start.

:cheers:

Re: Trouble with USB-Sticks
« Reply #4 on: January 21, 2013, 11:05:44 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hotplug script was updated with latest MountStorPE.
May be tried with him.

Re: Trouble with USB-Sticks
« Reply #5 on: January 22, 2013, 02:04:05 AM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
Chris whatever you did, do the opposite 2 times and we're golden!

Unfortunately i didn't backup the Hotplug script before updating, so i don't know what was changed, but i need now to plug in all the Sticks one more time than before.

And like i said before, since the october release i already needed to plug in the sticks once more than before.

:cheers:

Re: Trouble with USB-Sticks
« Reply #6 on: January 22, 2013, 07:29:06 AM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
USB sticks are working fine in my Win7PE SE. I never used "Hotplug" script in Win7PE SE. Hot plug script is only needed for hot swapping SATA drives. Am i right ?

Edit:
post from other topic:
Do we need Hot swap for removable devices to work?. None of my builds are included hotswap but so far USB drives works fine.
« Last Edit: January 22, 2013, 08:47:29 AM by Lancelot »

Re: Trouble with USB-Sticks
« Reply #7 on: January 22, 2013, 08:23:23 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Here are the last 3 Hotplug scripts corresponding to the "major" changes:
- hotplug_v6.script   2012.06.12
- hotplug_v9.script   2012.10.25
- hotplug_v12.script  2013.01.21

v6 original Dera's Hotplug script with Hotswap! 6.0.0.0 Added
v9 Hotswap! 6.1.0.0, added MyUSBEjector 1.11 en, a small program to Hide windows safely remove icon.
   The windows part (files, services and registry) is added only following the choice made (Hotswap!,MyUSBEjector or Windows)
v12 Added Kare's MountStorPE 1.5.0.0 (v1.1.3.8 in verion 10) not in autostart by default, only shortcuts   http://theoven.org/index.php?topic=230.0

* Hotplug.v6.9.12.7z (621.14 kB - downloaded 190 times.)

I personnaly use this script with the default values (MyUSBEjector, MountStorPE with shortcut, no autostart), as anshad, I do not meet your worries.
Hotplug script is indeed only needed for hot swapping SATA drives, windows part should do a little more with ShellHWDetection, umbus and CompositeBus services + MountStorPE to assigns Drive letters.
Let us know.   
« Last Edit: January 22, 2013, 08:41:30 AM by ChrisR »

Re: Trouble with USB-Sticks
« Reply #8 on: January 22, 2013, 08:57:22 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
USB sticks are working fine in my Win7PE SE. I never used "Hotplug" script in Win7PE SE.
and you do not need to  :thumbsup:

Hot plug script is only needed for hot swapping SATA drives. Am i right ?
not only, check relevant utilities features which Chris already summerize, mspe also mount hidden volumes  :wink:
 besides as mentioned none need to use for regular usb tasks  :thumbsup:

MedEvil reports frequently confusing for an end (new) user,
 miss reporting somethings he had done elsewhere,
  which mostly results with fix elsewhere OR no response due to his not reporting (intentionally..) what he had done  :wink:
   (he has secrets for whatever reason  :lol: )
and sometimes, they can be accurate too..
 hard to tell from first post... and hard to find someone willing to chase between his secrets....

  So shortly, wait further posts to figure out what MedEvil is doing / done as long as MedEvil is the case, before coming to a conclusion  :wink:


@MedEvil,
nothing changed on hotplug of Win7PESE with previous update as default, which you will (may) practice..
Let's see if you can dig down more to see what effects your results.... !!!
maybe an option on hotplug you select, maybe something you had done elsewhere....

At least I know your usb devices is not one of them I was suspecting....
Yep Gena works nice as long as pe1x matters, good to see it works perfectly there too.
« Last Edit: January 22, 2013, 09:01:22 AM by Lancelot »

Re: Trouble with USB-Sticks
« Reply #9 on: January 22, 2013, 12:49:41 PM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
I don't understand, how the behavior of the sticks can change, when there's no real change in the Hotplug.script. :confused:
I assumed that someone had changed some registry settings or services.

But if Hotplug.script has nothing to do with USB-Sticks, as said, which script is responsible for hotplug of USB-Sticks?

:cheers:

Re: Trouble with USB-Sticks
« Reply #10 on: January 22, 2013, 01:07:55 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
I don't understand, how the behavior of the sticks can change, when there's no real change in the Hotplug.script. :confused:
I assumed that someone had changed some registry settings or services.

But if Hotplug.script has nothing to do with USB-Sticks, as said, which script is responsible for hotplug of USB-Sticks?

Since you suddenly popup saying all fixed with new , single hotplug plugin change ( only "natural" assumption for anyone , and new bies, following your words...)

Unfortunately i didn't backup the Hotplug script before updating, so i don't know what was changed, but i need now to plug in all the Sticks one more time than before.

along with whatever you have changed with....

Than you should be the one to say, which script of your organisation is responsible of behaviour change... ??

Work a bit MedEvil, with some tests etc., it can be valuable IF you can figure out what is going on there , better than continuing asking and asking ......  nobody have a psychic sitting besides. (at least I do not  :tongue: )

edit: old versions already provided by Chris... to be tested by you.... (along with whatever you change)

@anshad
You see, MedEvil do not dig himself but instead asks ;) ,
 a method (also exists in real life) ask many many around to figure out,
  bad behaviour for feedback and no way another can figure out what is going on with his pc,
   and someone (like you) who do not know MedEvil can easly assume usb have relation with hotplug plugin,
    (hehe, in real life it is similar with wrong gossips)
      which is not  :cool:
   ... now you better get to know MedEvil  :wink: :grin:
« Last Edit: January 22, 2013, 01:15:42 PM by Lancelot »

Re: Trouble with USB-Sticks
« Reply #11 on: January 22, 2013, 01:48:10 PM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
Dear Lancelot, if you attack me, please do so for something i actually said and not for something you've made up.

Quote
Since you suddenly popup saying all fixed with new , single hotplug plugin change
I never said that. Just the opposite!

 
Quote
Unfortunately i didn't backup the Hotplug script before updating, so i don't know what was changed, but i need now to plug in all the Sticks one more time than before.
"One more time" means it is getting worse, not it is getting better, like in "I only need to plug them in once.".

:cheers:

Re: Trouble with USB-Sticks
« Reply #12 on: January 22, 2013, 04:09:45 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Attack, not at all, I  ( hopefully :-) , naaahhh ) wish you understand with my tria
..... Obviously your reply  indicates opposite...
( no no, i know you are smart, you simply do like pretending not understanding)

About your 'one more time before' , my misunderstanding:
since this report so far come only by you (anshad and others are so far reporting happly),
Whom very well known with his mysterious unreported changes on builds, ( opposite to normal users asking feedback)
And whom without working on available/provided stuff, like all other good people do,

You expectation for a fix is a dream and wish,
Whatever if exists, will be fixed one day, but obviosly not by your help iy you like to continue this way.


I hope, next time, if you reply, you do not turn to sth like "attack" ( post games), but instead provide some good info so both newbies not misunderstand, but also admins may get a clue to figure out.

Only hope....

Re: Trouble with USB-Sticks
« Reply #13 on: January 22, 2013, 08:15:45 PM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
Version 9 didn't help much, but version 6 brought back the old, very old behaviour.

- Stick A: Works flawless right away, even right after boot
- Stick B: Works flawless right away, even right after boot
- Stick C: Needs to be inserted exactly 2 times before it works correctly, no matter if another stick was used before or not.

The thing i noticed about Stick C is, it doesn't even bring up the hotplug icon in the tray at first connect.
So it doesn't even register as a USB-Storage device at first connect. :confused:
Maybe this gives someone an idea what is going on.

According to USB-DevView there's no difference between those 3 USB-Sticks apart from their PID and VID.

----------------------------------------------------

At the moment i'm fighting to understand, why the different script version do make a difference. According to their content they shouldn't, imo.

 :cheers:

Re: Trouble with USB-Sticks
« Reply #14 on: January 22, 2013, 08:25:29 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Now much better  :thumbsup:

Check which application selected at startup between hotplug versions (also check app. Version difference)

Also test  usb-s with disabling hotplug plugin.?

This will dig more... :great:

Re: Trouble with USB-Sticks
« Reply #15 on: January 22, 2013, 08:42:19 PM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
Already tested without Hotplug.script and it was a desaster.
I could plug sticks in and out all day, without the hotplug icon ever showing the sticks, or Explorer updating the view to show the newly pluged in device.

The only way to use a stick was to plug it in and only after that start the explorer.
Disturbingly removing the Stick didn't remove it from explorer.

Anyway.
I've been now again over and over and over the different hotplug.script versions and the only thing V6 does differently than the other two is, that it copies hotswap.exe and makes some registry entries for it, even if choose not to use it.
That's it. No idea why this causes any effect. :confused:

Code: [Select]
ExtractFile,%ScriptFile%,%SourceArch%,HotSwap!.EXE,%target_sys%
RegHiveLoad,Tmp_Default,%RegDefault%
RegWrite,HKLM,0x4,Tmp_Default\Software\HotSwap!,AutoRun,1
RegWrite,HKLM,0x4,Tmp_Default\Software\HotSwap!,DisplayPDO,0
RegWrite,HKLM,0x4,Tmp_Default\Software\HotSwap!,SpinDown,0
RegWrite,HKLM,0x4,Tmp_Default\Software\HotSwap!,DFlags,268435459
RegHiveUnLoad,Tmp_Default

:cheers:
« Last Edit: January 22, 2013, 08:43:28 PM by MedEvil »

Re: Trouble with USB-Sticks
« Reply #16 on: January 22, 2013, 08:51:39 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
One more test  :wink: :wink:

Make test with mountstorpe startup without hotplug.exe

(with and without hotplug-windows option, as far as i can remember since i am on tablet......)

Re: Trouble with USB-Sticks
« Reply #17 on: January 22, 2013, 09:04:57 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Also,

Add your Stick A B C harware info, better with manufacturer link on post 1,
Who knows one may have same stick, or maybe useful info later...

Re: Trouble with USB-Sticks
« Reply #18 on: January 22, 2013, 10:20:03 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Here is another version (v13 beta), it may be interresting following your previous tests (Windows Hot Plug seems to bring something in addition for you).
Windows Hot plug feature is in a separate choice of the HotSwap tools (HotSwap!, MyUSBEjector, None).

* hotplug.7z (487.32 kB - downloaded 194 times.)

Happy testing
« Last Edit: January 22, 2013, 10:21:07 PM by ChrisR »

Re: Trouble with USB-Sticks
« Reply #19 on: January 23, 2013, 11:59:11 AM »

MedEvil

  • Jr. Chef
  • **
  • Date Registered: Sep 2012
  • Posts: 33
Forget about Stick C!
I discovered, with the help of steve6375, that it is a non standard stick.
For it to work at one go, as all the others do, plug and play would need to work, as it is actually two devices in one.

The real problem is:
- I did about a dozend reboots of a image build with Hotplug12.script and USB-Hotplig worked really bad and worst.

- Did also about 2 dozend reboots of an identical build except with Hotplug6.script and USB-Hotplig worked about 7 out of 10 cases perfect. The other times it had problems, though never as bad as with Hotplug12.script.

How can the same image give different USB-Hotplug performance from boot to boot? :confused:
Can there be a timing problem?

As of now, i have no idea, what could be the problem and how to check for it. :(

:cheers:

 

Powered by EzPortal