Jump to content

Partition unattend.txt


 Share

Recommended Posts

Hello everyone.

I haven't created an unattend.txt for a while. I have got my file working nicely except for the following.

I would like to build a system, with 3 partitions. Limiting the system partition to 10GB. I don`t believe its possible to customer the partitioning info. Just all or nothing.

Any ideas?

Link to comment
Share on other sites


Look into Microsoft's diskpart.exe utility. You can use it to create and size all sizes and types of partitions for your installation. It is free, there is lots of stuff on the web on how to use it.

Link to comment
Share on other sites

  • 1 month later...
Hello everyone.

I haven't created an unattend.txt for a while. I have got my file working nicely except for the following.

I would like to build a system, with 3 partitions. Limiting the system partition to 10GB. I don`t believe its possible to customer the partitioning info. Just all or nothing.

Any ideas?

It is indeed possible...found a good explanation on the forum here once, but you won't have a lot of luck using the forum's integrated search...use the google search instead...

Anyway, as for autopartitioning your hard drive with winnt.sif...here's a quick starter...

[Data]
Autopartition = 1
MsDosInitiated = 0
UnattendedInstall = Yes
OemDrivers = OemInfFiles

[Unattended]
UnattendMode = DefaultHide
UnattendSwitch = No
OemPreinstall = Yes
OemSkipEula = Yes
Repartition = Yes
WaitForReboot = No
NoWaitAfterTextMode = 1
NoWaitAfterGUIMode = 1
DriverSigningPolicy = Ignore
NonDriverSigningPolicy = Ignore

[DiskConfig]
Disk1 = "Disk1.config"

[Disk1.config]
Size1 = "*"
PartitionType1 = "primary"
FileSystem1 = "ntfs"
Quickformat1 = "yes"

Notice under Disk1.config you have Size1.

Leaving it as an asterix means it will reformat the entire hard drive and use it as a single partition.

You can specify the size here (in MB) of the partition size you'd like. So in your case it would be

Size1="10000"

As for adding other paritions, I think that you would have to do something like this...

[DiskConfig]
Disk1 = "Disk1.config"
Disk2 = "Disk2.config"
Disk3 = "Disk3.config"

[Disk1.config]
Size1 = "10000"
PartitionType1 = "primary"
FileSystem1 = "ntfs"
Quickformat1 = "yes"

[Disk2.config]
Size2 = "10000"
PartitionType2 = "logical"
FileSystem2 = "ntfs"
Quickformat2 = "yes"

If at all possible, I would test this with Virtual PC or VMWare before potentially screwing up your system.

I know that the first part is right for autopartitioning, but I'm not entirely sure whether or not i have the code right for adding more partitions.

Edited by tkmadison
Link to comment
Share on other sites

Wow, i've been looking for somthing as easy as this for years!

I did manage to do it manually a long time ago, but have forgotten how now. I hope the above works.

If anyone knows where that orginal post thats mentioned is, please post a link, i can't find it for looking!

Cheers

Ashimema

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...