Jump to content

DiskConfiguration issue [SOLVED]


Recommended Posts

Posted (edited)

The following works excellent for a single partition occupying the entire disk. I would like to specify a C partition with <size>20000</size> and a D partition that is extended occupying the rest of the disk.

I have tried many a different ways to accomplish this and 7 liked none of them, so I figured it best to provide the working single disk and let some kind soul add the additional disk with the proper syntax I seem to lack.

<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Label>Seven</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>

Edited by iamtheky

Posted

I modified this from what I use

 
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>20000</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Extend>true</Extend>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Label>Windows</Label>
<Order>1</Order>
<Letter>C</Letter>
<PartitionID>1</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Data</Label>
<Order>2</Order>
<Letter>D</Letter>
<PartitionID>2</PartitionID>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>

It creates a 20GB partion and a second that covers the rest of the drive.

Both are Primary partitions.

Posted
Thank you sir. I will reply with a result in the morning.

I had tested this on vmware with two disk drives and it was working fine.

Then I decided to delete all the partitions.

After that I got the following error

So...

Posted

I found the problem

Was trying to install to disk 1 when I changed it to disk 0 it worked.

On my physical computer disk 0 is a eSata drive and disk 1 and 2

are internal drives. Guess I'll have to stick with manually

choosing the partition

Posted (edited)

**for a system with a single hard drive**

This makes a C drive of 20GB

and a D drive that occupies the rest

apparently you have to have a logical partition to extend or vice versa, im still hunting that down :ph34r:

<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Extend>false</Extend>
<Size>20000</Size>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>3</Order>
<Type>Logical</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Extend>true</Extend>
<Type>Extended</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Label>Winblows7</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Extend>false</Extend>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Active>false</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>DataTest</Label>
<Letter>D</Letter>
<Order>2</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>

Edited by iamtheky
Posted
Was trying to install to disk 1 when I changed it to disk 0 it worked.

On my physical computer disk 0 is a eSata drive and disk 1 and 2

are internal drives.

That is exactly why I prefer to partition manually, each of my machines is different, and is too easy to wipe the wrong drive.
Posted (edited)

indeed the above code is for machines with a single disk split in 2 partitions.

-fixed the above to post to reflect as such.

Edited by iamtheky
Posted
indeed the above code is for machines with a single disk split in 2 partitions.

-fixed the above to post to reflect as such.

Your code creates one primary partition (C:) and one extened partition with one logical drive (D:)

Mine creates two primary partitions. (C: D:). Both will work as far as installing windows.

The only reason I can see to create an extended partition is if you want to have a drive

partitioned into more the four drives.

Posted
Was trying to install to disk 1 when I changed it to disk 0 it worked.

On my physical computer disk 0 is a eSata drive and disk 1 and 2

are internal drives.

That is exactly why I prefer to partition manually, each of my machines is different, and is too easy to wipe the wrong drive.

Before I've always partitioned manually. Just had a bug to try something new.

I keep backups of my backups for just this reason :sneaky:

Posted

I apologize, i had misread your earlier post and thought you were indicating that what you had posted had an error.

The one I posted is one my coworker made by throwing my .xml into WAIK and adding the second partition.

I always thought the thinking was 1 primary partition per OS. Then again, I just re-learned that an extended partition is just a container for logical partitions, so I could be wholly incorrect :)

Posted
I apologize, i had misread your earlier post and thought you were indicating that what you had posted had an error.

The one I posted is one my coworker made by throwing my .xml into WAIK and adding the second partition.

I always thought the thinking was 1 primary partition per OS. Then again, I just re-learned that an extended partition is just a container for logical partitions, so I could be wholly incorrect :)

No Problem :sneaky:

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...