Jump to content

Recommended Posts

Posted

We have some MDT image failures and the fix is always to use diskpart (even though I am formatting disks in the task sequences)

 

I have tried putting a diskpart the command in the Pre Install bit of Task Sequence

 

 

ts.jpg

 

command line:

diskpart.exe /s clean_disk.txt

 

 

clean_disk.txt contains:

select disk 0

clean

exit

 

 

It runs through, cleaning the disk with no errors but near the end of imaging it creates driver errors and stops with 'unable to find definition file BDD_Welcome'.

 

Removing my new diskpart command line fixes the issues.

 

Where should I put my diskpart command?

 

Thanks

  • 3 years later...
Posted

Hello,

 

I am also have the same issue, but I can't even get the command to run I just get a task sequence error.

 

Did you ever manage to get this sorted?

 

If so would you be able to tell me how you created the command within the task sequence?

 

Thanks.

Posted
Unfortunately not, we had to give up. it probably only requires diskpart 1/10 times, just have to F8 when imaging MDT, run disk part and start again.
  • 2 weeks later...
Posted
Could it be anything to do with the disk setup in the BIOS? We had issues on some newer DELL laptops where the disk driver wasn't detecting the disk, so we had to change away from RAID to AHCI. This won't fix your issue as clearly the TS is seeing the disk. Might be worth checking the settings on the ones that fail to find a common issue? Or does it happen ~1/10 in general, ie it may fail on one that has successfully partitioned in the past?
Posted

Ok so I think I have found the issue.

 

It appears that the device must be rebooted after running the diskpart command, since it appears that there are some temp files that are created by MDT when the boot image is loaded on the disk.

 

I have found the below GitHub page which looks quite good, I will need to do some more testing.

 

GitHub - cregx/mdt-cleanup-harddrive-winpe: Win32-based UI application to erase the primary hard disk as part of a Lite Touch installation (WinPE / Microsoft Deployment Toolkit (MDT)).

 

Regarding the disk setup in the BIOS, we set all laptops to AHCI as standard anyway, thanks for the suggestion though.

 

I also found the below which looks very nice indeed, which might work better as a long term solution for all MDT related tasks anyway, but again this will obviously need to be tested.

 

FriendsOfMDT · GitHub

  • Thanks 1
  • 3 months later...
Posted
Ok so I think I have found the issue.

 

It appears that the device must be rebooted after running the diskpart command, since it appears that there are some temp files that are created by MDT when the boot image is loaded on the disk.

 

I have found the below GitHub page which looks quite good, I will need to do some more testing.

 

GitHub - cregx/mdt-cleanup-harddrive-winpe: Win32-based UI application to erase the primary hard disk as part of a Lite Touch installation (WinPE / Microsoft Deployment Toolkit (MDT)).

 

Regarding the disk setup in the BIOS, we set all laptops to AHCI as standard anyway, thanks for the suggestion though.

 

I also found the below which looks very nice indeed, which might work better as a long term solution for all MDT related tasks anyway, but again this will obviously need to be tested.

 

FriendsOfMDT · GitHub

 

This works great, most imaging failures get fixed after diskpart, this makes sure diskpart is always run..

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...