Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Unattend.xml - how to create 500GB or less partition


  • Please log in to reply
3 replies to this topic

#1
steve6375

steve6375

    Junior

  • Member
  • Pip
  • 70 posts
  • Joined 25-November 04
  • OS:Windows 7 x64
  • Country: Country Flag

When using a Win7 xml file, I want it to create a single partition for Win7 OS. The size of the the target disk is unknown (the xml will be used on many different systems).

It seems I can

1. Specify an exact size

2. Extend the partition to maximum size

 

However, what I want is that the OS partition should be a maximum of 500GB - if the disk is any larger than this then the remaining space should be left unpartitioned.

 

e.g. a 250GB HDD will have a 250GB OS partition, a 1TB HDD will have a 500GB OS partition and the rest of the space left alone.

 

Is this possible?


Edited by steve6375, 14 May 2015 - 05:21 AM.

Visit www.rmprepusb.com for RMPrepUSB, the new Easy2Boot multiboot USB solution and 100+ tutorials on booting from USB drives.



How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,931 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

It is possible, but not using Setup and an unattend alone. You'd need to use some form of wrapper to do the following:

1. If Disk 0 exist, determine the disk size.
2. If disk size 500GB or lower, use XML#1
3. If disk size 501GB or larger, use XML#2
4. Launch setup.exe with unattend switch pointing to the desired XML file.

For the two different XML files, #1 will be the type to create full disk partition, #2 will only create 500GB partition.

This is the first thing I can think of. You'd need to use some sort of programming or scripting language (maybe even batch can do it) for the wrapper.

MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg


#3
steve6375

steve6375

    Junior

  • Member
  • Pip
  • 70 posts
  • Joined 25-November 04
  • OS:Windows 7 x64
  • Country: Country Flag

Thanks for the reply. I had thought of using two different XML files. I just wondered if it could be done within the XML.

cheers

Steve


Visit www.rmprepusb.com for RMPrepUSB, the new Easy2Boot multiboot USB solution and 100+ tutorials on booting from USB drives.


#4
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,931 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

I don't think you can do it with just the XML. The documentation does not make any sort of mention about that capability.

I wonder if MDT can do this.

MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users