[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 574
  • Last Modified:

windows XP setup

how can I setup windows xp in drive C clean which I am using drive C now

here's the scenario;
I have drive C:ntfs,  drive D:fat32,   drive E:ntfs

Now, i have windows xp drive C, but this OS is dirty and has lots of garbage files,
And I don't want to setup win xp with upgrade option, I want to setup win xp with new clean installation.

I had put i386 folder in my drive E
then open installation command;
winnt32 /syspart:d /tempdrive:d

After setup installation finish
a copy of boot.ini is in drive D, which could not be opened during the boot, because drive C is the current OS boot,  and a boot.ini is already in drive C

When I view the D:\boot.ini,  the setup path files is pointing in drive C
But, The temporary setup path files/folders is in drive D, folders with ._~$ sign

What's the correct way/parameters of letting this new installation safe to be installed in drive C clean.
Ps., I can't use my cd/dvd or usb drives. <dead drives>

 
Winnt32

Performs an installation of or upgrade to Windows XP. You can run winnt32 at the command prompt on a computer running Windows 95, Windows 98, Windows Me, Windows NT, Windows 2000, or Windows XP.

Syntax

winnt32 [/checkupgradeonly] [/cmd:command_line] [/cmdcons] [/copydir:i386\folder_name] [/copysource:folder_name] [/debug[level]:[
filename]] [/dudisable] [/duprepare:pathname] [/dushare:pathname] [/m:folder_name] [/makelocalsource] [/noreboot] [/s:sourcepath] [
/syspart:drive_letter] [/tempdrive:drive_letter] [/udf:id [,UDB_file]] [/unattend[num]:[answer_file]]

Parameters

/checkupgradeonly

Checks your computer for upgrade compatibility with Windows XP.
If you use this option with /unattend, no user input is required. Otherwise, the results are displayed on the screen, and you can save them under the filename you specify. The default filename is Upgrade.txt in the systemroot folder.

/cmd:command_line

Instructs Setup to carry out a specific command before the final phase of Setup. This would occur after your computer has restarted and after Setup has collected the necessary configuration information, but before Setup is complete.

/cmdcons

Installs the Recovery Console as a startup option on a functioning computer. The Recovery Console is a command-line interface from which you can perform tasks such as starting and stopping services and accessing the local drive (including drives formatted with NTFS). You can only use the /cmdcons option after normal Setup is finished.

/copydir:i386\folder_name

Creates an additional folder within the folder in which the Windows XP files are installed.
Folder_name refers to a folder that you have created to hold modifications just for your site. For example, you could create a folder called Private_drivers within the i386 source folder for your installation, and place driver files in the folder. Then you could type /copydir:i386\Private_drivers to have Setup copy that folder to your newly installed computer, making the new folder location systemroot
\Private_drivers. You can use /copydir to create as many additional folders as you want.

/copysource:folder_name

Creates a temporary additional folder within the folder in which the Windows XP files are installed.
Folder_name refers to a folder that you have created to hold modifications just for your site. For example, you could create a folder called Private_drivers within the source folder for your installation, and place driver files in the folder. Then you could type /copysource:Private_drivers to have Setup copy that folder to your newly installed computer and use its files during Setup, making the temporary folder location systemroot\Private_drivers. You can use /copysource to create as many additional folders as you want. Unlike the folders /copydir creates, /copysource folders are deleted after Setup completes.

/debug[level]:[filename]

Creates a debug log at the level specified, for example, /debug4:Debug.log. The default log file is C:\systemroot\Winnt32.log, and the default debug level is 2. The log levels are as follows: 0 represents severe errors, 1 represents errors, 2 represents warnings, 3 represents information, and 4 represents detailed information for debugging. Each level includes the levels below it.

/dudisable

Prevents Dynamic Update from running. Without Dynamic Update, Setup runs only with the original Setup files. This option will disable Dynamic Update even if you use an answer file and specify Dynamic Update options in that file.

/duprepare:pathname

Carries out preparations on an installation share so that it can be used with Dynamic Update files that you downloaded from the Windows Update Web site. This share can then be used for installing Windows XP for multiple clients.

/dushare:pathname

Specifies a share on which you previously downloaded Dynamic Update files (updated files for use with Setup) from the Windows Update Web site, and on which you previously ran /duprepare:pathname. When run on a client, specifies that the client installation will make use of the updated files on the share specified in pathname.

/m:folder_name

Specifies that Setup copies replacement files from an alternate location. Instructs Setup to look in the alternate location first, and if files are present, to use them instead of the files from the default location.

/makelocalsource

Instructs Setup to copy all installation source files to your local hard disk. Use /makelocalsource when installing from a CD to provide installation files when the CD is not available later in the installation.

/noreboot

Instructs Setup to not restart the computer after the file copy phase of Setup is completed so that you can execute another command.

/s:sourcepath

Specifies the source location of the Windows XP files. To simultaneously copy files from multiple servers, type the /s:sourcepath option multiple times (up to a maximum of eight). If you type the option multiple times, the first server specified must be available, or Setup will fail.

/syspart:drive_letter

Specifies that you can copy Setup startup files to a hard disk, mark the disk as active, and then install the disk into another computer. When you start that computer, it automatically starts with the next phase of Setup. You must always use the /tempdrive parameter with the /syspart
 parameter.
You can start Winnt32 with the /syspart option on a computer running Windows NT 4.0, Windows 2000, or Windows XP. The computer cannot be running Windows 95, Windows 98, or Windows Me.

/tempdrive:drive_letter

Directs Setup to place temporary files on the specified partition. For a new installation, Windows XP will also be installed on the specified partition. For an upgrade, the /tempdrive option affects the placement of temporary files only; the operating system will be upgraded in the partition from which you run winnt32.

/udf:id [,UDB_file]

Indicates an identifier (id) that Setup uses to specify how a Uniqueness Database (UDB) file modifies an answer file (see the /unattend entry).
The UDB overrides values in the answer file, and the identifier determines which values in the UDB file are used. For example, /udf:RAS_user,Our_company.udb overrides settings specified for the RAS_user identifier in the Our_company.udb file. If no UDB_file is specified, Setup prompts the user to insert a disk that contains the $Unique$.udb file.

/unattend

Upgrades your previous version of Windows 98, Windows Me, Windows NT 4.0, or Windows 2000 in unattended Setup mode. All user settings are taken from the previous installation, so no user intervention is required during Setup.

/unattend[num]:[answer_file]

Performs a fresh installation in unattended Setup mode. The specified answer_file provides Setup with your custom specifications.
Num is the number of seconds between the time that Setup finishes copying the files and when it restarts your computer. You can use num on any computer running Windows 98, Windows Me, Windows NT, Windows 2000, or Windows XP.
Using the /unattend command-line option to automate Setup affirms that you have read and accepted the Microsoft License Agreement for Windows XP. Before using this command-line option to install Windows XP on behalf of an organization other than your own, you must confirm that the end user (whether an individual, or a single entity) has received, read, and accepted the terms of the Microsoft License Agreement for Windows XP. OEMs may not specify this key on machines being sold to end users.

Open in new window

0
systan
Asked:
systan
  • 6
  • 6
  • 3
  • +1
3 Solutions
 
overtheclock007Commented:
You must download a "boot dos" cd with ntfs suport and manualy clean all things you don´t need it.
0
 
_Commented:
If you don't need anything on the C: drive, just format it, then run the install.
0
 
systanAuthor Commented:
>>You must download a "boot dos" cd with ntfs suport and manualy clean all things you don´t need it.
My previous comment >>Ps., I can't use my cd/dvd or usb drives. <dead drives>

>>If you don't need anything on the C: drive, just format it, then run the install.
Yes, I don't need anything,  but I don't want to format it first,   I want to format the partition during the installation,  just like booting winXP for fresh install.

I want to know the parameter, because with this parameter it doesn't perfectly match the way I want;
winnt /syspart:d /tempdrive:d
I'll try winnt only, i'LL be back.


Thanks
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
subhashchyCommented:
try this.

winnt32 /syspart:c /tempdrive:c

/syspart switch make the partition system, means the partiton which will hold the boot files, ntldr,boot.ini etc.

and /tempdrive should be the same drive as well..i think it will work for you.
0
 
_Commented:
OK. if I understand correctly, I don't think it will work the way you are trying to do it.
XP usually will not let you Format the C: partition if you have booted from it.
You will have to figure a way to get the OS on the C: partition "inactive".

Borrow a drive, buy a used one, make a bootable usb stick, etc.
0
 
subhashchyCommented:
i think  if he run the setup from e drive, it will copy temp files (in C:\$BTsomething) and then reboot automaticlly..upon reboot it will boot directly into windows setup like it does from CD. and from there the C: will be free...it can format c: then.. For setup it will keep using files from E:\i386

0
 
systanAuthor Commented:
>>try this.
winnt32 /syspart:c /tempdrive:c
/syspart switch make the partition system, means the partiton which will hold the boot files, ntldr,boot.ini etc

With that?, folders .$bt and .$ls is on drive C, So during installation, drive C will not be used because syspart and tempdrive are pointed on that path.


>>i think  if he run the setup from e drive, it will copy temp files (in C:\$BTsomething)
winnt32 /syspart:d /tempdrive:d
With that command;
Folder .$bt and .$ls  stays on drive D, and boot.ini stays on drive D

I think I'll try;
winnt32 /syspart:c /tempdrive:d


I'll be back,

thank you
0
 
systanAuthor Commented:
it's not working, can't figure out.
0
 
subhashchyCommented:
winnt32 /syspart:c /tempdrive:c

try this..

You said,
With that?, folders .$bt and .$ls is on drive C, So during installation, drive C will not be used because syspart and tempdrive are pointed on that path.
I think the temp files are only used to boot up, once the system is booted,the drive will be no longer in use and can be formatted..

Or, Wait let me try on my test systems ..I will post in about an hour and so...
0
 
subhashchyCommented:
just run E:\i386\winnt32.exe without any parameters.

Below is my setup..

WinXP 32 with 2 partitions. OS on C and Data drive as E:
I copied win xp i386 directory on E:

i ran the setup as follow.

winnt32.exe /syspart:C: /tempdrive:E:

It started setup, On the first screen choose "New installeation" Advanced instead of Upgrade.

It will create a folder name $WIN_NT$~BT which contains the files needed to boot the XP setups.
it will create another folder in E: name $WIN_NT$~LS which contains the i386 files.

when rebooting , you will see 2 options in boot menu, select the 2nd one as setup.
It will go same like a normal XP setup where you can choose the C: drive as target for installation .Press L to delete the existing installation and install fresh.
unfortunatly it does not allow you to format the drive.

You can try booting with some third party boot images from a USB drive and then format,run setup from E:








0
 
systanAuthor Commented:
>>Or, Wait let me try on my test systems ..I will post in about an hour and so...
good idea,

>>unfortunatly it does not allow you to format the drive.
Im done in this part.
I don't know if there are other options.


thank you
0
 
subhashchyCommented:
yeah..Initially i though it will allow to format when it is booted in PE but have doubt so before telling you tried on my systems.
On both 2k3 and XP. And it was not allowing to format the drive.... Sorry for taking your time :(
0
 
systanAuthor Commented:
no problem, i was the one who's making it complicated. But actually I have a solution.

thanks
0
 
_Commented:
Thank you much.   : )
0
 
systanAuthor Commented:
i usually gave points to all participating experts, base on there comments and help.
Because for me, everyone put an effort to answer the post and answer as  team work.


Thanks
0
 
subhashchyCommented:
thank you much. Yup. we are a Team ..
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 6
  • 6
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now