View Issue Details

IDProjectCategoryView StatusLast Update
0000174WoR ImagerRaspberry Pi 4 (ARM64)public2022-02-16 18:50
ReporterPA3ADN Assigned ToMario  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version2.2.2 
Summary0000174: WoR stuck on Creating the partitions
Description

As mentioned before (https://www.worproject.ml/bugtracker/view.php?id=171) but closed for the wrong reason as firewall cant be the cause as i don't have one !

I have exactly the same problem "WoR stuck on Creating the partitions" when i start building the installation on a SSD Card from Western Digital 1TB (WD Blue)
I waited 1 1/2 hour but it didn't continue...

A month or more ago i installed it on a 500 GB SSD Card from Western Digital (WD Blue) without a problem. (The one i am on now!).

Note. Install with WoR-flasher gives no problem with the 1TB SSD connected on the Raspberry Pi.

Additional Information

https://www.worproject.ml/bugtracker/view.php?id=171

TagsNo tags attached.

Activities

Mario

Mario

2021-12-10 20:57

administrator   ~0000307

Last edited: 2021-12-10 20:57

As mentioned before (https://www.worproject.ml/bugtracker/view.php?id=171) but closed for the wrong reason as firewall cant be the cause as i don't have one !'

I said "anti-virus", not "firewall".

Can you try running those diskpart commands manually and see if it hangs?

PA3ADN

PA3ADN

2021-12-11 09:18

reporter   ~0000308

Yes i could if i know which diskpart commands it is executing ? :)

PA3ADN

PA3ADN

2021-12-11 09:26

reporter   ~0000309

Ooh and i neither have anti-virus software running on that PC, mainly use the win10 environment for WoR otherwise its on WIn8 because about 2 years ago win10 could not run the older Adobe software anymore !

Mario

Mario

2021-12-11 13:19

administrator   ~0000310

Last edited: 2021-12-11 13:21

Yes i could if i know which diskpart commands it is executing ? :)

You can find them in the logs (starting from the clean command).
They look like this:

2021-10-11 18:50:22.5814 [debug] Creating diskpart script with the following commands: select disk 2 , clean , exit

Ooh and i neither have anti-virus software running on that PC, mainly use the win10 environment for WoR

Windows 10 has Defender installed. It shouldn't cause such issues, but you could try disabling it just in case.

PA3ADN

PA3ADN

2021-12-11 17:27

reporter   ~0000311

Windows Defender was off :)

Before i try some things this is the wnd part of the log:

------ start log
2021-12-07 20:15:17.8343 [debug] Creating diskpart script with the following commands: select disk 4 , select partition 1 , delete partition override , exit
2021-12-07 20:15:17.8343 [debug] Launch diskpart.exe with the following arguments: /s "C:\WoR_Release_2.2.2\temp\diskpart.script"
2021-12-07 20:15:19.3761 [debug] diskpart.exe process output:
2021-12-07 20:15:19.3761 [debug] Standard output:

Microsoft DiskPart version 10.0.19041.964

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-RE4KS0B

Disk 4 is now the selected disk.

Partition 1 is now the selected partition.

DiskPart successfully deleted the selected partition.

Leaving DiskPart...

2021-12-07 20:15:19.3761 [debug] Exit code: 0
2021-12-07 20:15:19.3917 [debug] Creating diskpart script with the following commands: select disk 4 , create partition primary size=128 , format fs=fat32 quick label=BOOT , assign letter=U , create partition msr size=16 , create partition primary , format fs=ntfs quick label=Windows , assign letter=T , exit
2021-12-07 20:15:19.3917 [debug] Launch diskpart.exe with the following arguments: /s "C:\WoR_Release_2.2.2\temp\diskpart.script"
2021-12-07 22:04:55.8172 [info] Unmounting the ISO image...
2021-12-07 22:04:56.4358 [info] The ISO image has been unmounted!
2021-12-07 22:04:56.4514 [info] Restoring autorun...
2021-12-07 22:04:56.4670 [debug] Setting the NoDriveTypeAutoRun policy to: null
2021-12-07 22:04:56.4670 [debug] Policy set successfully!
2021-12-07 22:04:56.4827 [info] Autorun restored!
2021-12-07 22:04:56.4827 [info] Deleting the temporary folder...
2021-12-07 22:04:56.5053 [error] System.IO.IOException: The process cannot access the file 'diskpart.script' because it is being used by another process.
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at WoR.Windows.MainWindow.<>c.<DirectoryCleanUp>b__36_0()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WoR.Windows.MainWindow.<DirectoryCleanUp>d36.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WoR.Windows.MainWindow.<PerformShutdown>d
37.MoveNext()
-------- end log

But i noticed it saying a few lines above " 2021-12-07 22:04:56.5053 [error] The process cannot access the file 'diskpart.script' because it is being used by another process."

PA3ADN

PA3ADN

2021-12-11 18:32

reporter   ~0000312

Okay noticed now that the file in use error comes after i close the window !
Last instruction is at 20:15:19 [debug] Launch diskpart.exe with the following arguments: /s "C:\WoR_Release_2.2.2\temp\diskpart.script"

Then at 22:04:55 i closed the window !

Just re-run WoR v2.2.2 and last is : debug] Launch diskpart.exe with the following arguments: /s "C:\WoR_Release_2.2.2\temp\diskpart.script"
Then when i close the window it comes with the other lines and the in use error, probably because the /s is not finished ?

Mario

Mario

2021-12-11 19:34

administrator   ~0000313

Yeah, you can ignore that error.

PA3ADN

PA3ADN

2021-12-12 01:49

reporter   ~0000314

select disk 5
create partition primary size=128
format fs=fat32 quick label=BOOT
assign letter=Q
create partition msr size=16
create partition primary
format fs=ntfs quick label=Windows
assign letter=P
exit

DISKPART> select disk 5
Disk 5 is now the selected disk.
DISKPART> create partition msr size=16
DiskPart succeeded in creating the specified partition.
DISKPART> create partition primary
DiskPart succeeded in creating the specified partition.
DISKPART> format fs=ntfs quick label=WindowsA
0 percent completed

... i thought it was stuck here though after a few minutes ...

100 percent completed
DiskPart successfully formatted the volume.
DISKPART> assign letter=P
DiskPart successfully assigned the drive letter or mount point.
DISKPART>

So all steps performed well when i typed them ! drive P:WindowsA created.
Though when i run it from the program:
it looks it is stuck after/during the format of WINDOWS as the letter get NOT assigned something which was completed in the seperate typed steps !
The 3 partitions are created but no letter assigned to Windows partition.

Mario

Mario

2021-12-12 20:48

administrator   ~0000315

Last edited: 2021-12-12 20:50

Try running all the commands:

select disk X
clean
convert gpt

...and then the format ones.

In the log you've posted, the imager attempted to partition disk 4, but in diskpart you've specified disk 5. Is it the same drive?

PA3ADN

PA3ADN

2021-12-13 18:39

reporter   ~0000316

Yes disk 4 is the same as the disk 5 the 1TB Western Digital WD Blue.
It became disk 5 as i had tried also an install on 256 GB SanDisk USB stick, which went okay... the USB stick therefor became disk 4.

PA3ADN

PA3ADN

2021-12-13 21:21

reporter   ~0000317

Microsoft DiskPart version 10.0.19041.964

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-RE4KS0B

DISKPART> select disk 5

Disk 5 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART> convert gpt

DiskPart successfully converted the selected disk to GPT format.

DISKPART> select disk 5

Disk 5 is now the selected disk.

DISKPART> create partition primary size=128

DiskPart succeeded in creating the specified partition.

DISKPART> format fs=fat32 quick label=BOOT

100 percent completed

DiskPart successfully formatted the volume.

DISKPART> assign letter=Q

DiskPart successfully assigned the drive letter or mount point.

DISKPART> create partition msr size=16

DiskPart succeeded in creating the specified partition.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> format fs=ntfs quick label=Windows

100 percent completed

DiskPart successfully formatted the volume.

DISKPART> assign letter=P

DiskPart successfully assigned the drive letter or mount point.

DISKPART>

The "DISKPART> convert gpt" line creates an extra 1st partition , so at the end are 4 partitions created. But it does step for step all the instructions correct ! The format of the Windows partitioon (1TB) takes about 2 1/2 minute .

drives 4 and 5.jpg (43,441 bytes)   
drives 4 and 5.jpg (43,441 bytes)   
Mario

Mario

2021-12-14 14:45

administrator   ~0000318

So the imager works fine on your SanDisk drive but not on the WD one?

PA3ADN

PA3ADN

2021-12-14 15:18

reporter   ~0000319

Yes indeed , on the SanDisk it finished okay but on the Western Digital it halts at "Creating the partitions".
But as the commands work well manually it looks to me like it times-out on the 2 1/2 minute that it takes to format the drive partition.
As the assigning of the letter never occurs.
Or is there a way to restart the program after the partitions are created manually ?

Mario

Mario

2021-12-14 15:59

administrator   ~0000320

Last edited: 2021-12-14 16:00

Can you also try putting the commands in a .txt file and then running diskpart /s PathToYourTxtFile from an elevated command prompt?
After convert gpt add:

select partition 1 
delete partition override 

(To delete that additional partition).

Or is there a way to restart the program after the partitions are created manually ?

No.

PA3ADN

PA3ADN

2021-12-14 17:07

reporter   ~0000321

Okay did the following

  • 1st run as asked : ERROR selecting partition
  • 2nd manually: No error (3 partitions)
  • 3rd run as 2 files first part and then from select partition 2nd part: No error (3 partitions)
  • 4th run added before select partition 1 again select disk 5: No error (3 partitions)

==== Results ====

C:\wor-test>diskpart /s "wor-drivetest.txt"

Microsoft DiskPart version 10.0.19041.964

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-RE4KS0B

Disk 5 is now the selected disk.

DiskPart succeeded in cleaning the disk.

DiskPart successfully converted the selected disk to GPT format.

The specified partition is not valid.
Please select a valid partition.

There is no partition selected.

====== MANUAL

C:\wor-test>diskpart

Microsoft DiskPart version 10.0.19041.964

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-RE4KS0B

DISKPART> select disk 5

Disk 5 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART> convert gpt

DiskPart successfully converted the selected disk to GPT format.

DISKPART> select partition 1

Partition 1 is now the selected partition.

DISKPART> delete partition override

DiskPart successfully deleted the selected partition.

DISKPART> exit

Leaving DiskPart...

C:\wor-test>

===== broken into running 2 files

C:\wor-test>diskpart /s "wor-drivetest1.txt"

Microsoft DiskPart version 10.0.19041.964

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-RE4KS0B

Disk 5 is now the selected disk.

DiskPart succeeded in cleaning the disk.

DiskPart successfully converted the selected disk to GPT format.

Leaving DiskPart...

C:\wor-test>diskpart /s "wor-drivetest2.txt"

Microsoft DiskPart version 10.0.19041.964

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-RE4KS0B

Disk 5 is now the selected disk.

Partition 1 is now the selected partition.

DiskPart successfully deleted the selected partition.

DiskPart succeeded in creating the specified partition.

100 percent completed

DiskPart successfully formatted the volume.

DiskPart successfully assigned the drive letter or mount point.

DiskPart succeeded in creating the specified partition.

DiskPart succeeded in creating the specified partition.

100 percent completed

DiskPart successfully formatted the volume.

DiskPart successfully assigned the drive letter or mount point.

Leaving DiskPart...

C:\wor-test>

===== added 2nd line select drive 5 before selecting partition

C:\wor-test>diskpart /s "wor-drivetest3.txt"

Microsoft DiskPart version 10.0.19041.964

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-RE4KS0B

Disk 5 is now the selected disk.

DiskPart succeeded in cleaning the disk.

DiskPart successfully converted the selected disk to GPT format.

Disk 5 is now the selected disk.

Partition 1 is now the selected partition.

DiskPart successfully deleted the selected partition.

DiskPart succeeded in creating the specified partition.

100 percent completed

DiskPart successfully formatted the volume.

DiskPart successfully assigned the drive letter or mount point.

DiskPart succeeded in creating the specified partition.

DiskPart succeeded in creating the specified partition.

100 percent completed

DiskPart successfully formatted the volume.

DiskPart successfully assigned the drive letter or mount point.

Leaving DiskPart...

C:\wor-test>

========= FILES

=== wor-drivetest.txt

select disk 5
clean
convert gpt
select partition 1
delete partition override
create partition primary size=128
format fs=fat32 quick label=BOOT
assign letter=Q
create partition msr size=16
create partition primary
format fs=ntfs quick label=Windows
assign letter=P
exit

=== wor-drivetest1.txt

select disk 5
clean
convert gpt
exit

=== wor-drivetest2.txt

select disk 5
select partition 1
delete partition override
create partition primary size=128
format fs=fat32 quick label=BOOT
assign letter=Q
create partition msr size=16
create partition primary
format fs=ntfs quick label=Windows
assign letter=P
exit

=== wor-drivetest3.txt

select disk 5
clean
convert gpt
select disk 5
select partition 1
delete partition override
create partition primary size=128
format fs=fat32 quick label=BOOT
assign letter=Q
create partition msr size=16
create partition primary
format fs=ntfs quick label=Windows
assign letter=P
exit

PA3ADN

PA3ADN

2022-01-17 22:00

reporter   ~0000326

ooh i saw a version 2.2.3 so gave it go right away... but still the same !!
Its on hold after "Creating the partions".
Partitions are still created all 3 perfectly !

ryny24

ryny24

2022-01-24 17:01

reporter   ~0000327

Please let me know if you resolve this. I'm having the same issue. Worked great on my MicroSD, but fails creating partitions on my JOIOT 250GB Portable External SSD (appears as JMicron Tech SCSI disk)

PA3ADN

PA3ADN

2022-01-24 19:42

reporter   ~0000328

Ooh correction it now works with imager version 2.2.3 !
I thought let me try it on the recently connected USB3.0 ports and huge was my surprise that it went on installing Windows !!!

ryny24

ryny24

2022-01-24 22:17

reporter   ~0000329

Well then. I'm already on 2.2.3. I don't think I have a USB 3.0 port though. Shouldn't it just go slower?

PA3ADN

PA3ADN

2022-01-25 14:35

reporter   ~0000330

No it should go faster :)
On the USB2.0 it takes about 2 1/2 min. where on USB3.0 it took just over a minute !
But that is with an 1 TB Western Digital Blue SSD drive.

Mario

Mario

2022-01-26 15:48

administrator   ~0000331

There was no change in 2.2.3 to potentially fix / workaround this issue. So if it works fine now, it was likely a hardware or software issue on your side.

Issue History

Date Modified Username Field Change
2021-12-08 23:37 PA3ADN New Issue
2021-12-10 20:57 Mario Note Added: 0000307
2021-12-10 20:57 Mario Note Edited: 0000307
2021-12-11 09:18 PA3ADN Note Added: 0000308
2021-12-11 09:26 PA3ADN Note Added: 0000309
2021-12-11 13:19 Mario Note Added: 0000310
2021-12-11 13:21 Mario Note Edited: 0000310
2021-12-11 17:27 PA3ADN Note Added: 0000311
2021-12-11 18:32 PA3ADN Note Added: 0000312
2021-12-11 19:34 Mario Note Added: 0000313
2021-12-12 01:49 PA3ADN Note Added: 0000314
2021-12-12 20:48 Mario Note Added: 0000315
2021-12-12 20:50 Mario Note Edited: 0000315
2021-12-12 20:50 Mario Note Edited: 0000315
2021-12-13 18:39 PA3ADN Note Added: 0000316
2021-12-13 21:21 PA3ADN Note Added: 0000317
2021-12-13 21:21 PA3ADN File Added: drives 4 and 5.jpg
2021-12-14 14:45 Mario Note Added: 0000318
2021-12-14 15:18 PA3ADN Note Added: 0000319
2021-12-14 15:59 Mario Note Added: 0000320
2021-12-14 15:59 Mario Note Edited: 0000320
2021-12-14 15:59 Mario Note Edited: 0000320
2021-12-14 16:00 Mario Note Edited: 0000320
2021-12-14 16:00 Mario Note Edited: 0000320
2021-12-14 17:07 PA3ADN Note Added: 0000321
2022-01-17 22:00 PA3ADN Note Added: 0000326
2022-01-24 17:01 ryny24 Note Added: 0000327
2022-01-24 19:42 PA3ADN Note Added: 0000328
2022-01-24 22:17 ryny24 Note Added: 0000329
2022-01-25 14:35 PA3ADN Note Added: 0000330
2022-01-26 15:48 Mario Note Added: 0000331
2022-02-16 18:50 Mario Assigned To => Mario
2022-02-16 18:50 Mario Status new => closed
2022-02-16 18:50 Mario Resolution open => unable to reproduce