Discussion Locked

Modify partitions using Unattend Install

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I would like to delete and recreate partitions during a fullunattended install booting from a floppy.

If someone knows how ...

4 replies

by shanghai sam

I have used a utility from Symantec Ghost called GDISK.EXE this is a more powerfull tool that Fdisk and will allow you to create and format any number of partitions on the fly.

Below is an extract of one of my batch files that creates the partitions
:-------------------------------------------:Create

A:\DOS\GDISK.EXE 1 /BATCH:A:\GG\PART.GG

This line calls the following text file and carries out the following commands
:---------------------------
Part.gg
:---------------------------
/CRE /PRI /-CE /SZ:4096 /Y
/CRE /EXT /Y
/CRE /LOG /FOR /Q /Y
/DEL /P:1 /Y

Line 1 creates a 4gig Primary fat32 partition
Line 2 creates an extended partition for the remaining available space
Line 3 creates a logical drive in the EXT partition
Line 4 Deletes the primary 4gig partition

We then run the following line to create a new 2gig fat16 partition to allow the copying of files during the doscopy mode of the build as this requires a fat 16 partition.

A:\Dos\Gdisk.exe 1 /CRE /PRI /-32 /-CE /FOR /Q /V:%PCID% /Y

:-------------------------------------
The Unattend section in the unattend.txt
needs to have the following to extend the partition size during the build.
[Unattended]
UnattendMode=FullUnattended
; ExtendOemPartition=2000
ExtendOemPartition=1
OemSkipEula=Yes
OemPreinstall=Yes

The 1 specifies to extend as far as possible
The 2000 indicates to extend the existing partition by 2000 bytes. There is info on the other paramaters on the Microsoft web site.

Hope this is helps
qtech

This discussion is closed to new replies.