Jump to content

format a new disk


Recommended Posts

Hi everyone!

i´m trying to make a w7 install dvd, but how can i make it to partion the disk and go on whidt the instal, i´m a newbee about this and hope for some helps

hope everone understand my English cheers

here is my XML file so far

<?xml version="1.0" encoding="utf-8"?>

<!--This answer file generated by RT Seven Lite-->

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SetupUILanguage>

<UILanguage>en-US</UILanguage>

</SetupUILanguage>

<InputLocale>041d:0000041d</InputLocale>

<UserLocale>sv-SE</UserLocale>

<UILanguage>en-US</UILanguage>

<SystemLocale>en-US</SystemLocale>

</component>

<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<DiskConfiguration>

<Disk wcm:action="add">

<ModifyPartitions>

<ModifyPartition wcm:action="add">

<Active>true</Active>

<Format>NTFS</Format>

<Label>w7</Label>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>

</ModifyPartitions>

<DiskID>0</DiskID>

</Disk>

<WillShowUI>OnError</WillShowUI>

</DiskConfiguration>

<ImageInstall>

<OSImage>

<InstallFrom>

<MetaData wcm:action="add">

<Key>/IMAGE/NAME</Key>

</MetaData>

</InstallFrom>

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>1</PartitionID>

</InstallTo>

<InstallToAvailablePartition>false</InstallToAvailablePartition>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

<UserData>

<Organization>Sweet</Organization>

<FullName>Rockit</FullName>

<AcceptEula>true</AcceptEula>

</UserData>

</component>

</settings>

<settings pass="oobeSystem">

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<UserAccounts>

<LocalAccounts />

<AdministratorPassword>

<Value />

</AdministratorPassword>

</UserAccounts>

<AutoLogon>

<Password>

<Value />

</Password>

<Enabled>true</Enabled>

<LogonCount>9999</LogonCount>

<Username>Administrator</Username>

</AutoLogon>

<OOBE>

<NetworkLocation>Home</NetworkLocation>

<HideEULAPage>true</HideEULAPage>

<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>

<SkipMachineOOBE>true</SkipMachineOOBE>

<SkipUserOOBE>true</SkipUserOOBE>

</OOBE>

<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>

<TimeZone>W. Europe Standard Time</TimeZone>

<OEMInformation>

<Manufacturer />

<SupportHours />

<SupportPhone />

<SupportURL />

<Model />

<Logo>%systemroot%\system32\OOBE\carlsbergw7.bmp</Logo>

</OEMInformation>

<Display>

<ColorDepth>32</ColorDepth>

<HorizontalResolution>1280</HorizontalResolution>

<VerticalResolution>1024</VerticalResolution>

<RefreshRate>75</RefreshRate>

</Display>

</component>

</settings>

<settings pass="specialize">

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<ComputerName>Home</ComputerName>

<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>

</component>

</settings>

</unattend>

best regards Hasse

Link to comment
Share on other sites


If you are installing Windows® to a blank hard disk, you must use the CreatePartitions and ModifyPartitions settings to create and format partitions on the disk. You must also specify either the InstallTo or the InstallToAvailablePartition setting.

you have it false <InstallToAvailablePartition>false</InstallToAvailablePartition>

            <DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Extend>true</Extend>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>Se7en_OS</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 maxXPsoft
Link to comment
Share on other sites

thx verry mutch i´m going to try it tomorrow :thumbup

//Hasse

Lost in space as alwayes, now i have this " Windows could not set partion active on disk 0, the specified partion does not exist"

<?xml version="1.0" encoding="utf-8"?>

<!--This answer file generated by RT Seven Lite-->

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SetupUILanguage>

<UILanguage>en-US</UILanguage>

</SetupUILanguage>

<InputLocale>041d:0000041d</InputLocale>

<UserLocale>sv-SE</UserLocale>

<UILanguage>en-US</UILanguage>

<SystemLocale>en-US</SystemLocale>

</component>

<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<DiskConfiguration>

<Disk wcm:action="add">

<CreatePartitions>

<CreatePartition wcm:action="add">

<Order>1</Order>

<Extend>true</Extend>

<Type>Primary</Type>

</CreatePartition>

</CreatePartitions>

<ModifyPartitions>

<ModifyPartition wcm:action="add">

<Active>true</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>Se7en_OS</Label>

<Letter>C</Letter>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>

</ModifyPartitions>

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>

</Disk>

<WillShowUI>OnError</WillShowUI>

</DiskConfiguration>

<ImageInstall>

<OSImage>

<InstallFrom>

<MetaData wcm:action="add">

<Key>/IMAGE/NAME</Key>

</MetaData>

</InstallFrom>

<InstallToAvailablePartition>true</InstallToAvailablePartition>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

<UserData>

<Organization>Sweet</Organization>

<FullName>Rockit</FullName>

<AcceptEula>true</AcceptEula>

</UserData>

</component>

</settings>

<settings pass="oobeSystem">

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<UserAccounts>

<LocalAccounts />

<AdministratorPassword>

<Value />

</AdministratorPassword>

</UserAccounts>

<AutoLogon>

<Password>

<Value />

</Password>

<Enabled>true</Enabled>

<LogonCount>9999</LogonCount>

<Username>Administrator</Username>

</AutoLogon>

<OOBE>

<NetworkLocation>Home</NetworkLocation>

<HideEULAPage>true</HideEULAPage>

<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>

<SkipMachineOOBE>true</SkipMachineOOBE>

<SkipUserOOBE>true</SkipUserOOBE>

</OOBE>

<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>

<TimeZone>W. Europe Standard Time</TimeZone>

<OEMInformation>

<Manufacturer />

<SupportHours />

<SupportPhone />

<SupportURL />

<Model />

<Logo>%systemroot%\system32\OOBE\carlsbergw7.bmp</Logo>

</OEMInformation>

<Display>

<ColorDepth>32</ColorDepth>

<HorizontalResolution>1280</HorizontalResolution>

<VerticalResolution>1024</VerticalResolution>

<RefreshRate>75</RefreshRate>

</Display>

</component>

</settings>

<settings pass="specialize">

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<ComputerName>Home</ComputerName>

<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>

</component>

</settings>

</unattend>

are they any prog when u can test xml files, not only the code more like simulate if it´s work, run out of dvd :whistle:

//Hasse

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

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