Jump to content

How to automate formatting a partition for windows XP


Recommended Posts

hi all...

I would like to make a completely unattended windows XP CD... i m a newbie in this..

The problem is that.. I want the setup to install windows XP in the partition where windows already exists, the setup should format the partition with NTFS file system and install fresh copy of windows there..

If setup couldnot find any windows versions installed, then it should format c drive and install..

I have got some info that this can be done using diskpart but could not proceed further..

pls help me...

Link to comment
Share on other sites


you can do it by editing your winnt.sif file see this user data

[Data]

AutoPartition=0 make it 1

MsDosInitiated="0"

UnattendedInstall="Yes"

it wil format your c drive but disadvantage is if any one having a data it wont ask you it will directly format your c

Link to comment
Share on other sites

very thanx for the reply...

This clue is more than enough for me to fullfil my requirement bcoz most of us will install windows in C.. and what u said is what i desire.. setup s'd not ask whether to format or not.. i want the installation to be completely automated :)...

is there anything to include in a similar way that instead of formatting C drive, the setup formats the partition on which the windows is already installed previously....

Link to comment
Share on other sites

@CodeName56

i have found the following info from ref.chm file...

AutoPartition

Value: 1

Installs Windows to the first available partition that has adequate space for a Windows installation and does not already contain an installed version of Windows. Either omit the AutoPartition entry from your answer file or set the value of AutoPartition to 1. If AutoPartition = 1, the /tempdrive command-line option of Winnt32.exe is ignored. If you do not set the value, text-mode Setup installs Windows on the partition where $WIN_NT$.~LS is located.

i was confused.. this part says it installs windows in the available partition that do not contain windows if i set AutoPartition = 1

pls clarify..

Link to comment
Share on other sites

You will have to use the Repartition entry in the [unattended] section.

Repartition

Specifies whether to delete all partitions on the first drive of the client computer and to reformat the drive with the NTFS file system.

[Unattended]
Repartition="Yes"

Edited by troxy
Link to comment
Share on other sites

If you are prepared tpo experiment what you can try is using gdisk partitioning software which runs under dos. Under dos you can do a whole lot of testing to do what you require. Once the necessary formatting is done you can theoretically start winnt.exe with necessary switches to start windows installation.

BTW I have never been able to install xp from any version of dos. Always got some error message or other.

What I have worked out is a method to completely automate installation of xp on a fresh machine with a new hard disk, also partitioning it exactly as I want in the process. All I need to do is set the boot order in bios & 1 key press when the machine boots from cd.

Of course this is possible only by creating a custom boot/install CD.

Link to comment
Share on other sites

Well...!?

After reread the winnt.sif reference, I've found two entries talking about that point but it does not do what I want

1st one is:

[Data]
AutoPartition=1

(Installs Windows to the first available partition that has adequate space for a Windows installation and does not already contain an installed version of Windows.)
2nd one is:
[Unattended]
Repartition = Yes | No

(Specifies whether to delete all partitions on the first drive of the client computer and to reformat the drive with the NTFS file system.)
but I did not find any entry to directly choose to format C: partition with NTFS and then install XP to partition C: without any touch to any other partitions in the same drive

I do not want to repartetion my Drive, just want to format C: partetion, as the normal way user do in text mode portion of the WinXP setup

Edited by MGadAllah
Link to comment
Share on other sites

  • 1 month later...

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...