Jump to content


mkuriel

Fail to run diskpart on a device

Recommended Posts

I am failing to run diskpart on a device via SCCM TS, it is a standard SCCM TS - I am booting from pxe and trying to wipe the disk with no luck....

the Device is hp elitebook 830 g5 and I see the same issue with Lenovo m710q

 

here is the error that i am getting

<![LOG[==============================[ OSDDiskPart.exe ]==============================]LOG]!><time="11:59:19.319-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="main.cpp:1078">
<![LOG[Command line: "osddiskpart.exe"]LOG]!><time="11:59:19.319-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="main.cpp:1079">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\i386\1033\TSRES.DLL']LOG]!><time="11:59:19.319-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="util.cpp:972">
<![LOG[Reading partition size info for partition 0]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:461">
<![LOG[Remaining size before partition: 512105932800]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:465">
<![LOGLOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:483">
<![LOG[Set partition size: 367001600]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:541">
<![LOG[Remaining size after partition 0: 511738931200]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:618">
<![LOG[Set an environment variable for partitions 0-1 without drive letter]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="main.cpp:641">
<![LOG[Reading partition size info for partition 1]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:461">
<![LOG[Remaining size before partition: 511738931200]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:465">
<![LOGLOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:478">
<![LOG[99% size specified.]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:528">
<![LOG[Calculated partition size: 506621541888]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:530">
<![LOG[Remaining size after partition 1: 5117389312]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:618">
<![LOG[Set an environment variable for partitions 0-2 with drive letter]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="main.cpp:641">
<![LOG[Reading partition size info for partition 2]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:461">
<![LOG[Remaining size before partition: 5117389312]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:465">
<![LOGLOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:478">
<![LOG[100% size specified.]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:524">
<![LOG[Remaining size after partition 2: 0]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:618">
<![LOG[Set an environment variable for partitions 0-1;0-3 without drive letter]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="main.cpp:641">
<![LOG[Checking volume 'X:' for BitLocker]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="main.cpp:317">
<![LOG[S partition is not used, will use it.]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="diskutils.cpp:98">
<![LOG[Diskpart: list volume 
select disk 0
clean
create partition Primary size=350
assign letter=S
format quick fs=ntfs label="System Reserved"
active
create partition Primary size=483151
assign
create partition primary id=27
format quick fs=ntfs label="Recovery"
rescan
 list volume
]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="diskutils.cpp:2600">
<![LOG[Executing diskpart script: list volume 
select disk 0
clean
create partition Primary size=350
assign letter=S
format quick fs=ntfs label="System Reserved"
active
create partition Primary size=483151
assign
create partition primary id=27
format quick fs=ntfs label="Recovery"
rescan
 list volume
]LOG]!><time="11:59:19.350-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="diskutils.cpp:1968">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="11:59:19.366-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="CommandLine.cpp:229">
<![LOG[Set command line: "X:\WINDOWS\system32\diskpart.exe" /s "X:\WINDOWS\TEMP\DiskPartScript.txt"]LOG]!><time="11:59:19.366-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="CommandLine.cpp:723">
<![LOG[Executing command line: "X:\WINDOWS\system32\diskpart.exe" /s "X:\WINDOWS\TEMP\DiskPartScript.txt"]LOG]!><time="11:59:19.366-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="CommandLine.cpp:819">
<![LOG[Process completed with exit code 2147755013]LOG]!><time="11:59:19.413-180" date="07-10-2018" component="OSDDiskPart" context="" type="1" thread="1640" file="CommandLine.cpp:1115">
<![LOG[Diskpart.exe STDOUT: 
Microsoft DiskPart version 10.0.17134.1

Copyright (C) Microsoft Corporation.
On computer: MININT-8J6SRFR

There are no volumes.

Disk 0 is now the selected disk.

DiskPart succeeded in cleaning the disk.

Virtual Disk Service error:
The object is not found.

 ]LOG]!><time="11:59:19.413-180" date="07-10-2018" component="OSDDiskPart" context="" type="3" thread="1640" file="diskutils.cpp:1910">
<![LOG[Diskpart.exe STDERR:  ]LOG]!><time="11:59:19.413-180" date="07-10-2018" component="OSDDiskPart" context="" type="3" thread="1640" file="diskutils.cpp:1911">
<![LOG[Diskpart.exe failed (2147755013).  Script file, stdout, and stderr saved in TS log directory.]LOG]!><time="11:59:19.413-180" date="07-10-2018" component="OSDDiskPart" context="" type="3" thread="1640" file="diskutils.cpp:1939">
<![LOG[0, HRESULT=80042405 (main.cpp,1270)]LOG]!><time="11:59:19.413-180" date="07-10-2018" component="OSDDiskPart" context="" type="0" thread="1640" file="main.cpp:1270">
<![LOG[OSDDiskPart.exe failed: 0x80042405]LOG]!><time="11:59:19.413-180" date="07-10-2018" component="OSDDiskPart" context="" type="3" thread="1640" file="main.cpp:1330">
<![LOG[Process completed with exit code 2147755013]LOG]!><time="11:59:19.413-180" date="07-10-2018" component="TSManager" context="" type="1" thread="1432" file="CommandLine.cpp:1115">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="11:59:19.413-180" date="07-10-2018" component="TSManager" context="" type="1" thread="1432" file="instruction.cxx:814">

 

 

this is the Diskpart Output:

 

Microsoft DiskPart version 10.0.17134.1

Copyright (C) Microsoft Corporation.
On computer: MININT-8J6SRFR

There are no volumes.

Disk 0 is now the selected disk.

DiskPart succeeded in cleaning the disk.

Virtual Disk Service error:
The object is not found.

 

this is the script that SCCM tries to run on the device

list volume 
select disk 0
clean
create partition Primary size=350
assign letter=S
format quick fs=ntfs label="System Reserved"
active
create partition Primary size=483151
assign
create partition primary id=27
format quick fs=ntfs label="Recovery"
rescan
list volume

 

 

any idea why i am crashing ???

 

I am attaching the full logs also for reference.

 

Thank you in advance 

 

 

diskpart_err.log

diskpart_out.log

diskpart_script.log

smsts.log

Share this post


Link to post
Share on other sites


Hi
Try reformatting the USB drive. Open This PC, right click your USB drive and select Format. Select FAT32 as drive type and uncheck Quick Format option. Now try running the Media Creation Tool again and see if it worked out for you or not. Most probably it should because formatting your drive as FAT32 will give it a proper type and would any minor issues with the drive
If you need guide check this link 
https://rocketfiles.com/articles/error-code-0x80042405-0xa001a-on-media-creation-tool

Edited by _pinkamina_

Share this post


Link to post
Share on other sites
On 7/11/2018 at 2:05 AM, mkuriel said:

Virtual Disk Service error:
The object is not found.

It appears that the virtual disk is Disk 0 which is why the Virtual Disk Service is throwing the error.  Most likely, the physical disk is not detected.

1. Make sure you have the WinPE SATA drivers for that model installed

2. Make sure the physical disk is detected by diskpart

3. Make sure the disk you want to use is actually Disk 0 and not Disk 1 or something else (this happens with multi-drive systems where one is normal SATA and there is an NVMe drive (which shows up as Disk 1)).

Share this post


Link to post
Share on other sites

Hello,

Last time its appears to me same issue was missing drivers related to nvme drive.

I would suggest you to review if you have appropriate drive or controller drivers in your PE 😉

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...