Jump to content
DeployCentral
Sign in to follow this  
jlinane

Create 1 Partition and Format

Recommended Posts

Hello,

I am not sure this is the place to post this. I want to be able to have SmartDeploy run Diskpart and wipe out any factory data and partitions. I would like to have the wipwe and load function run after that so it fills the whole partition with boot and system. Using recreate only fills the partition with the size of the VM.

Any thoughts or help would be appreciated.

Jack

Share this post


Link to post
Share on other sites

Hi Jack,

You could create a pre-image task to run a diskpart script to delete the partitions and then perform a wipe and load deployment.

Thanks,

SmartDeploy Support

Share this post


Link to post
Share on other sites

I ran diskpart from Shift F10 and got the pc to do what I wanted. Reading different sites it is recommended to create a command called diskpart.cmd that actually calls a txt file that has all your steps that would normally do manually.

I tried to get it to run by adding a preimage task to call the diskpart.cmd. Tried it at the winpe folder and the Ethernet folder.

Thanks

Share this post


Link to post
Share on other sites

I figured it out after a long weekend.

What I wanted to happen was a preimage task to wipe out all the factory partitions then apply image. I created a batch file called Diskclear.bat. In it I called a txt file called disk_wipe.txt Diskclear.bat had the following "diskpart /s X:\Windows\System32\disk_wipe.txt"

disk_wipe.txt had the following.

Select disk 0

Clean

Create partition primary size=200

sect partition 1

active

format fs=ntfs quick

create partition primary

format fs=ntfs quick

exit.

When this runs it gives me the reserved needed and the rest of the disk is 1 partition.

As you can see I called the "X" drive. I opened my existing " boot wims" with imagex part of the Windows AIK tools. I was able to mount the boot wims and copy disclear.bat and disk_wipe.txt in the system32 folder. I was also able to add a preimage task to the Smart Deploy XML file " cmd.exe /C X:\Windows\System32\diskclear.bat /s X:\Windows\System32\disk_wipe.txt

Unmounted and commited the changes. I then replaced the wim on my WDS and was good to go. As soon as I stepped through the Smart Deploy Splash screen the preimage task kicked in created partitions and formatted.

Hope this helps

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.

Sign in to follow this  

×
×
  • Create New...