New
#1
Automate diskpart for Clean Install.
I want to FULLY Automate aClean Install
onDisk 0
[ the ONLY internal HDD ] with . . .
[1] OS on C:\ >>>size=30720
- 30GB
[2] Data on D:\ >>>size=51200
- 50GB
[3] System_Image on S:\ >>>size=30720
- 30GB
I want to use a Script to achive this which I will run after pressingShift + F10
. The FIRST part of the Script will initially leave aSingle Unallocated Partition
when theClean
Command has completed.
I will first create aDiskPart.txt
File with thediskpart
Commands [ see below ].
I will then create aDiskPart.cmd
File with the line.
@echo off &diskpart /s DiskPart.txt
My question is, are the following commands correct to achieve this please or have I totally got the wrong end of the stick? . . .
Code:diskpart list disk select disk 0 clean convert mbr create partition primary size=30720 select partition 1 format fs=ntfs active assign letter=C label C: OS exit diskpart list disk select disk 0 create partition primary size=51200 select partition 2 format fs=ntfs active assign letter=D label D: Data exit diskpart list disk select disk 0 create partition primary size=30720 select partition 3 format fs=ntfs active assign letter=S label S: System_Image exit exit
I amNOT
that adept with this level of usingdiskpart
so I would be grateful for ANY help.
Thanks.