Topic: CDDrive_X_Y.script not working on some hardware...  (Read 4865 times)

CDDrive_X_Y.script not working on some hardware...
« on: August 30, 2013, 07:09:55 PM »

JohnB175

  • Jr. Chef
  • **
  • Date Registered: Aug 2013
  • Posts: 25
I've been trying to figure this problem out with 2aCD over at reboot.pro.  Despite out efforts we cannot get the flash drive to change it's drive letter to Y when it boots on some hardware.  In my test machine which has no hard drive it always shows the flash drive as drive C:.  You can read all that we have tried here (reboot.pro/topic/15694-acronis-backup-recovery-11-in-win7pe/page-4).  It starts at post #84.  It won't let me post links so just copy/past.  2aCD recommended to post here and maybe ChrisR could help to figure this out.

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #1 on: August 31, 2013, 12:26:21 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hi JohnB175,

I'm back from vacation + other things yesterday morning
I need a little time to keep me informed and it's almost back to school for children, sorry in advance if I do not have time to answer.

I quickly read your exchange with 2aCD who knows very well the project.
Maybe a little idea, not sure, I've never tried without hard disk. I added a test to check that at least one drive is assigned by Windows.
Can you try and then share your MountPEmedia.log. Try also with format in Fat32 after a trial in ntfs.

:cheers:

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #2 on: August 31, 2013, 01:21:59 AM »

JohnB175

  • Jr. Chef
  • **
  • Date Registered: Aug 2013
  • Posts: 25
I'm not going to be back in my office until Tuesday of next week so will not have access to that test machine until then.  I did try on my test machine with a hard drive plugged in with the original script and it would not change the drive mappings.  It simply made my flash drive E or whatever was the first letter available.  2aCD did generate a working script for me this afternoon (08-30-2013).  It's v.17 test3.  You can find it here (reboot.pro/index.php?app=core&module=attach&section=attach&attach_id=14515_).  Maybe you could take a look at what he did in that test3 script.  Do you still want me to test with the script you have posted above next week?

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #3 on: August 31, 2013, 09:51:35 AM »

2aCD

  • Code Baker
  • Jr. Chef
  • **
  • Location: Dresden, Germany
  • Date Registered: May 2013
  • Posts: 80
Hi ChrisR,
welcome at home. I hope you had a nice and relaxing vacation  :flying::swimmer:

I had a long convesation with JohnB175 with many test and examinations. He is very patient.
I think the Drivmapping of USB flash disk needs some more time on some hardware.
 If the flash disk has no drive letter, doesn't find MountPEMedia the CdUsb.Y  file.
 The MountPEMedia.log say:

Quote
=====>   Passage : 1
DRIVEGETDRIVE(ALL)

All drives are ready without finding CdUSB.Y or IsoName ! Exit.

If JohnB175 start manualy mountpeMedia after shell is loading, it find the  CdUSB.Y.
So I have extract the source with your switch and modify following lines:

Code: [Select]
Global $Wait = 1000, $NbWait = 30, $DWait = 10

If $AllDriveReady = 'Yes' Then
  $DWait = $DWait - 1
  If $DWait = 0 Then
If $SearchFlagFile = 'Yes' Then
FileWriteLine($HLogFile, @CRLF & 'All drives are ready without finding ' & $FlagFileName & ' or IsoName ! Exit.')
Else
FileWriteLine($HLogFile, @CRLF & 'All drives are ready without finding IsoName ! Exit.')
EndIf
FileClose($HLogFile)
_EndInError()
Exit(1)
  EndIf
  $NbWait = $NbWait + 1
EndIf

If no drives found, run again (to prevent decrement $NBWait I incerement this for this passes)

In the new log from JohnB175 you can see, On this machine MpountPEMedia needs two passes without mapped drive.

Quote
=====>   Passage : 1
DRIVEGETDRIVE(ALL)

=====>   Passage : 2
DRIVEGETDRIVE(ALL)

=====>   Passage : 3
DRIVEGETDRIVE(ALL)
Drive D: - NOTREADY -

=====>   Passage : 4
DRIVEGETDRIVE(ALL)
Drive D: - NOTREADY -

=====>   Passage : 5
DRIVEGETDRIVE(ALL)
Drive D: - NOTREADY -

=====>   Passage : 6
DRIVEGETDRIVE(ALL)
Drive C: - READY -

Found CdUSB.Y, Remount drive C: in Y:
Program remount return with exit code (0=Success) : 0

This is irrespective if imdisk is used or other host drives mapped.
The mapping of Flash needs more time.
I have mark the script as test, not as finaly.

Two other little thinks I have send you per mail.

Have a nice weekend.
2aCD



« Last Edit: August 31, 2013, 09:53:24 AM by 2aCD »

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #4 on: August 31, 2013, 09:22:46 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hi 2aCD,

I read more carefully your interesting discussions with JohnB175 on Acronis thread  :thumbsup:

Two other little thinks I have send you per mail.
Your Multi-WIM script has been updated on the server with the bootmgr patch also compatible with WB80 now.
I also corrected the small Typo in MMC component
Thanks  :great:

I had a long convesation with JohnB175 with many test and examinations. He is very patient.
I think the Drivmapping of USB flash disk needs some more time on some hardware.
Thanks JohnB175 for this case not currently expected   :embarrassed: :thumbsup:
Indeed, If no drive is assigned at the beginning and it needs some extra seconds, it goes out currently.


My previous change on CDDrive_X_Y (above) should work also, by testing that at Least 1 Drive is mapped ($AtLeast1Drive variable added).
The code is a little different than 2aCD (above) but it should give the same result, normally.

Code: [Select]
For $I = 1 To $NbWait
$AtLeast1Drive = 'No'
$AllDriveReady = 'Yes'
FileWriteLine($HLogFile, '=====>   Passage : ' & $I)
FileWriteLine($HLogFile, 'DRIVEGETDRIVE(ALL)')
$Letter = DriveGetDrive('ALL')
If Not @error Then
For $L = 1 To $Letter[0]
If StringRegExp($Letter[$L], '(?i)^(A|B|X):$') Then ContinueLoop
$AtLeast1Drive = 'Yes'
..................
If $AllDriveReady & $AtLeast1Drive = 'YesYes' Then
If $SearchFlagFile = 'Yes' Then
FileWriteLine($HLogFile, @CRLF & 'All drives are ready without finding ' & $FlagFileName & ' or IsoName ! Exit.')
Else
FileWriteLine($HLogFile, @CRLF & 'All drives are ready without finding IsoName ! Exit.')
EndIf
FileClose($HLogFile)
_EndInError()
Exit(1)
EndIf

In the same way, If no drives found, it runs again in the maximum of 30 seconds in the main loop.
No opinion on the best of both code !

good weekend to you both  :smile:

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #5 on: September 01, 2013, 08:58:18 AM »

2aCD

  • Code Baker
  • Jr. Chef
  • **
  • Location: Dresden, Germany
  • Date Registered: May 2013
  • Posts: 80
Hi ChrisR,
I also think that do the same.
At me it is an additional timeout Parameter of 10 sec. drives to be found, but therefore this is not needed.

But JohnB175 should test the final version again.

See you
2aCD

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #6 on: September 01, 2013, 01:26:45 PM »

JohnB175

  • Jr. Chef
  • **
  • Date Registered: Aug 2013
  • Posts: 25
Where would I download your updated script out ChrisR?

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #7 on: September 01, 2013, 10:30:34 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hi JohnB175,

Can you try with this one (at the bottom of this post) with your test machine, it should work also (I hope ;). 
If there is a problem keeps 2aCD test3 version :thumbsup:.

After looking again, I finally changed a bit the code.
Continue the loop (the search) in ALL case if no drive mapped or if flag/ISO file not found within the maximum time allotted, 30 seconds max.

@2aCD
I pulled out the test (If $AllDriveReady = 'Yes' Then) of the main loop. The switch remains available  :wink:

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #8 on: September 02, 2013, 03:32:47 PM »

JohnB175

  • Jr. Chef
  • **
  • Date Registered: Aug 2013
  • Posts: 25
Ok, I will test this out first thing tomorrow morning when I get to the office and have access to the test machine.  I'll report back and let you know.

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #9 on: September 03, 2013, 01:24:03 PM »

JohnB175

  • Jr. Chef
  • **
  • Date Registered: Aug 2013
  • Posts: 25
Looks like your updated version worked on the problem machine ChrisR.  Should I continue to use your version or the test3 version from 2aCD?  Is your version going to be the final version?  Both seem to work.

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #10 on: September 03, 2013, 02:35:47 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Good  :great:

I put the last script, that you just tested on the w7/w8pese server.
I started with the idea of 2aCD. It is a little bit easier, by using a single counter but it remains on the same principle  :thumbsup:

I never had this problem before, thank you both and for all your tests.
:cheers:

Re: CDDrive_X_Y.script not working on some hardware...
« Reply #11 on: September 03, 2013, 03:29:12 PM »

JohnB175

  • Jr. Chef
  • **
  • Date Registered: Aug 2013
  • Posts: 25
Awesome.  Thanks for the help from both 2aCD and you.  I'm glad to pitch in any way I can.  If I see any other issues, I will let ya'll know.

 

Powered by EzPortal