MSFN Forum: Guide - Install WinXP From HDD or USB Drive Or CD - MSFN Forum

Jump to content


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Guide - Install WinXP From HDD or USB Drive Or CD 1.3 Final [2 Methods]

#1 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 04 March 2009 - 09:58 AM

Guide - Install WinXP From HDD or USB Drive or CDROM [ ver 1.3 Final ]



Here the guide in steps :
Method 1.



Step 1 - Preparation:
a. Make ur drive active and pri partition [using Diskpart or another tool like HP USB Disk Storage Format Tool]
b. Use bootsect.exe to make it nt52 bootable

Step 2 - file management:
a. Copy ur WHOLE Windows Xp CD to c:\
b. Copy SETUPLDR.BIN TXTSETUP.SIF NTDETECT.COM to c:\
c. Rename SETUPLDR.BIN to ntldr
d. Rename I386 Folder in c: to $WIN_NT$.~BT
e. copy whole asms folder to c:\I386
f. copy the list files in SYSSETUP.IN_\SYSSETUP.INI\[ProductCatalogsToInstall]
like
[ProductCatalogsToInstall]
NT5INF.CAT, 1
NT5.CAT
SP3.CAT
NTPRINT.CAT
MAPIMIG.CAT
HPCRDP.CAT
wmerrenu.cat
IASNT4.CAT
MSTSWEB.CAT
OEMBIOS.CAT
netfx.cat

to folder c:\I386

Step 3 - editing:
a. Open TXTSETUP.SIF and rename I386 folder to $WIN_NT$.~BT
WARNING!!!!! don't rename the folders in winnt dir just those are relevant to setup

*******************************************
Step a in more details
here the list u shouldnt rename:
39 = "Driver Cache\i386"
Architecture = i386
1,"Driver Cache\i386"

here a list of what u should rename
all in the lines in subject
[SourceDisksNames.x86]
exclude
2 = "%cd2name%","%cd2tagfilei%",,\cmpnents\tabletpc\i386
3 = "%cd2name%","%cd2tagfilei%",,\cmpnents\mediactr\i386
4 = "%cd2name%","%cd2tagfilei%",,\cmpnents\netfx\i386


*******************************************

b. Add SetupSourceDevice = \device\harddisk0\partition1 to TXTSETUP.SIF\[SetupData]

*Notice if u use usb then change to harddisk1 however i didnt had problem leave it like that i choose to boot usb from bios & didnt need to change it its
*Notice usually its F12 to run the bios menu for booting
check pic here: http://www.msfn.org/board/index.php?showto...st&p=844270

i test it with unattained & nlited windows xp the Whole setup goes normal no problem at all


i gonna test it again soon to make sure its work properly
Edited:
i test it again its working :)



Method 2 [ only for ntfs much easier ]


1. install hardlinkshellext
[ download from here: http://schinagl.priv.at/nt/hardlinkshellex...xt.html#contact ]

do all Step 1
do step 2 just a,b,c
make hard link to i386 to $WIN_NT$.~BT
do step 3 b only

and u finished :)



common errors:

when the setup ask for cd the hdd or partation is not right
[ SetupSourceDevice = \device\harddisk0\partition1 ]


Images:

set ur vm (step 0)
Posted Image

the diskpart.exe process (step 1.a)
Posted Image

the bootsect.exe process (step 1.b )
Posted Image

copy the cd to drive (step 2)
Posted Image

after mapping and copy the files set the files (steps 2/3)
Posted Image


setup is ready
Posted Image

This post has been edited by aviv00: 18 April 2009 - 01:23 PM



#2 User is offline   mg.eggink 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 04-August 08

Posted 07 March 2009 - 02:59 AM

Hi, nice topic!!

it worked for me with a Nlite-XP with a USB-stick.

Additions:

-- Formated USB to NTFS. Can for example be done with Paragon Partition Manager
Fat32 might also work, will test later

-- bootsect.exe is a Vista-file

-- made a cmd-file with entries

bootsect.exe /nt52 i: (i:=USBdisk)
pause

and used it ;-)

-- Copied complete NLited"-cd to USB

-- Copied SETUPDLR.BIN and NTdetect.com from \i386

-- Renamed SETUPDLR.BIN to ntldr

-- Copied txtsetup.sif from \i386 to \ and deleted txtsetup.sif in \i386


-- In txtsetup.sif renamed all i386 --> $win_nt$.~BT except "Driver cache \i386" and "Architecture i386"

-- In txtsetup.sif added SetupSourceDrive =device\harddisk1\partition1 ( in my case USB is disk1 )

-- renamed \i386 to \ $win_nt$.~BT

-- Booted from USB

Installation went OK, but it asked about ten times for a directory ( I typed d:\$win_nt$.~BT to continue).
All related to files from PS3.

Maybe I have to rename the "Driver cache"-entry also


MGE

This post has been edited by mg.eggink: 07 March 2009 - 03:28 AM


#3 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,574
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 07 March 2009 - 04:57 AM

GOOD. :)

Just a note:
If the stick is formatted through the HP USB formatting utility or through my batches (run on win2k/xp/2003), there won't be the need for the Vista bootsect.exe.
http://www.boot-land...?showtopic=5000

If you work on Vista or WinPE 2.x, you can use diskpart directly on the USB stick, only be aware of this possible problem, that might prevent the stick partitioning from being "kosher":
http://www.911cd.net...showtopic=21186
Registry settings to check:
http://support.micro...om/kb/931760/en

.reg file:
http://www.911cd.net/forums//index.php?sho...21186&st=18

jaclaz

#4 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 07 March 2009 - 10:47 AM

View Postmg.eggink, on Mar 7 2009, 03:59 AM, said:

Installation went OK, but it asked about ten times for a directory ( I typed d:\$win_nt$.~BT to continue).
All related to files from PS3.

MGE


try use bios menu to start the boot from usb so its will called c:\ drive

thx for ur supports and for info

This post has been edited by aviv00: 07 March 2009 - 10:49 AM


#5 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 07 March 2009 - 10:57 AM

Good one :)

A few questions:
1. Does boot files (NTLDR, BOOT.INI and NTDETECT.COM) get copied to the internal disk? What are rdisk values in it?
2. Has anyone tried it with USB memory stick? With USB hard disk when booted from it SetupSourceDevice should be as mentioned harddisk0, but with USB memory stick it becomes harddisk1 etc. as mentioned in the related topic. Has anyone observed different behavior?
3. I guess USB hard disk gets drive letter C:, correct? Using migrate.inf should help as no driver is used to patch removable/fixed result.
4. Why putting XP source in ~BT folder? Should be easier to copy it as it is in own folder, and give this path in txtsetup.sif:
SetupSourcePath = "\xppro\"

#6 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 07 March 2009 - 12:00 PM

View Postilko_t, on Mar 7 2009, 11:57 AM, said:

Good one :)

A few questions:
1. Does boot files (NTLDR, BOOT.INI and NTDETECT.COM) get copied to the internal disk? What are rdisk values in it?
2. Has anyone tried it with USB memory stick? With USB hard disk when booted from it SetupSourceDevice should be as mentioned harddisk0, but with USB memory stick it becomes harddisk1 etc. as mentioned in the related topic. Has anyone observed different behavior?
3. I guess USB hard disk gets drive letter C:, correct? Using migrate.inf should help as no driver is used to patch removable/fixed result.
4. Why putting XP source in ~BT folder? Should be easier to copy it as it is in own folder, and give this path in txtsetup.sif:
SetupSourcePath = "\xppro\"


thx
1.
when u say internal disk u mean the disk u gonna install xp ?
if yes then yes but the setup system think about usb drive as prim drive and start the boot from there its could be fixed manually
2.
yea check post num 2
3.
i didnt try usb drive i guess ur are right its need driver
to enable the usb 2.0
4.
well setup use ~BT to load boot the system and then load the setup
and then check for installation files that why i put all in the same dir
if u wanna u could make 2 installation in the same disk
with txtsetup editing and setupldr hex loading too
then its useful
but then u need to use nt6 booting mode and edit the bcd store

This post has been edited by aviv00: 07 March 2009 - 12:12 PM


#7 User is offline   mg.eggink 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 04-August 08

Posted 08 March 2009 - 06:02 AM

Hi,

I use a USB-stick (Sandisk Cruzer)

Jaclaz is right. Making a bootable USB-stick with "HP Windows Format Utility for USB Drive Key" works
I used version 2.00 and formatted NTFS.
I had no success with FAT32.

Changing BIOS-settings did not solve the asking for "missing" SP3-files

Screenshot shows file names of "missing" files.

After setting BIOS-setting back to HD-boot something strange happened.

I can not install XP now from the same USB-stick!!.
Booting is OK, files are transfered, but at reboot HAL.DLL is missing.

Attached File(s)



#8 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,574
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 08 March 2009 - 04:30 PM

@mg.eggink

Yes, there is something still not fully documented, about FAT32 not booting.

Basically it is due to "unbalancing" between CHS and LBA data.

Try again using my batches (link above) or fuwi's batch:

which does use the HP utility, but adds some (hopefully) fixes.
http://www.911cd.net...showtopic=21702

When something like what you describe happens, best thing is to wipe first, say 100, sectors and start from scratch:
http://www.msfn.org/board/USB-Booting-issu....html&st=13
http://www.boot-land...topic=3453&st=8

jaclaz

#9 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 08 March 2009 - 05:05 PM

View Postjaclaz, on Mar 8 2009, 07:30 PM, said:

Yes, there is something still not fully documented, about FAT32 not booting.

Basically it is due to "unbalancing" between CHS and LBA data.

Can you please elaborate on this unbalancing or give some links with more detail about it?

#10 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,574
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 08 March 2009 - 05:22 PM

View Postdencorso, on Mar 9 2009, 12:05 AM, said:

View Postjaclaz, on Mar 8 2009, 07:30 PM, said:

Yes, there is something still not fully documented, about FAT32 not booting.

Basically it is due to "unbalancing" between CHS and LBA data.

Can you please elaborate on this unbalancing or give some links with more detail about it?

Remember, you actually asked for it :whistle::

http://www.boot-land...?showtopic=5924
http://www.boot-land.net/forums/index.php?...c=6165&st=0
http://www.911cd.net...showtopic=21914
http://www.911cd.net...showtopic=21136

http://www.911cd.net...showtopic=21702
particularly here:
http://www.911cd.net/forums//index.php?sho...1702&st=129

http://www.boot-land...?showtopic=2959

http://www.911cd.net...showtopic=22016

;)

jaclaz

#11 User is offline   thestonegroover 

  • Group: Members
  • Posts: 3
  • Joined: 08-March 09

Posted 10 March 2009 - 07:26 AM

Hello everyone :hello:

Just registered on these forums after straying across them- I've been looking at a quite a few and your methods seem to be the best mixture of concise vs. round the houses bloat and command line hackery vs. gui frustration. I followed the instructions, and had to change SetupSourceDrive =device\harddisk1\partition1 just like mr.egglink (thanks) however, I seem to be stuck in an endless loop now that when xp setup has finished copying the files and reboots, it goes straight into the initial install screen, enter to install, r to repair f3 to quit etc. I took the usb drive out and tried it and it says there is a drive error.

Does anyone have a solution?

Many thanks :yes:

#12 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 10 March 2009 - 10:05 AM

hey and welcome
for now u need to fix the boot

cos the setup using the usb drive as ntldr and then point the system to load the os from the hdd drive

i dont get why the setup didnt change the files on the usb drive [maybe access denied ?]
the ntldr is STILL the setupldr.bin
that why u get that err
when i tested it in vmware and installed it from hdd
its was ok the setup process did replace that file with the "real" ntldr

so what u need to fix it

bootsect.exe the hdd and place the "real" ntldr and ofc NTDETECT.COM
[the setup think that usb drive the "hdd" that boot first the system that why its loop]


and thx u i was i n the same problem like u

btw i gonna try install the system from usb to test it soon gonna check what its all about :)

This post has been edited by aviv00: 10 March 2009 - 10:25 AM


#13 User is offline   thestonegroover 

  • Group: Members
  • Posts: 3
  • Joined: 08-March 09

Posted 11 March 2009 - 05:11 AM

Hi there,

Thanks for the reply, unfortunately I didn't really understand your instructions.

I'm trying to load XPProSP2 on my Dell Mini9 netbook, so I can't bootsect.exe the destination drive, I tried it by running the bootsect.exe command when logged into the recovery/repair console and it didn't work. I also copied over the ntldr file and NTDETECT.COM file and again, it didn't make any difference.

Any ideas?

Many thanks

#14 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,574
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 11 March 2009 - 05:31 AM

View Postthestonegroover, on Mar 11 2009, 12:11 PM, said:

I'm trying to load XPProSP2 on my Dell Mini9 netbook....
Any ideas?


WinsetupfromUSB:
http://www.msfn.org/...howtopic=120444

Works with the mini12:
http://www.msfn.org/...howtopic=130809
it should as well work with the mini9. ;)

jaclaz

#15 User is offline   mg.eggink 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 04-August 08

Posted 12 March 2009 - 11:33 AM

Hi thestonegroover

I had the same with endless reboot and install.
I use a Dell Vostro. When I select USB-stick as first boot device in Bios Setup (Dell =F2) it reboots and installs over and over.

Choosing the boot-device USB-disk during booting ( Dell= F12) it went Ok and restarted from the original HD.

MGE


View Postthestonegroover, on Mar 10 2009, 03:26 PM, said:

Hello everyone :hello:

Just registered on these forums after straying across them- I've been looking at a quite a few and your methods seem to be the best mixture of concise vs. round the houses bloat and command line hackery vs. gui frustration. I followed the instructions, and had to change SetupSourceDrive =device\harddisk1\partition1 just like mr.egglink (thanks) however, I seem to be stuck in an endless loop now that when xp setup has finished copying the files and reboots, it goes straight into the initial install screen, enter to install, r to repair f3 to quit etc. I took the usb drive out and tried it and it says there is a drive error.

Does anyone have a solution?

Many thanks :yes:

This post has been edited by mg.eggink: 12 March 2009 - 11:34 AM


#16 User is offline   thestonegroover 

  • Group: Members
  • Posts: 3
  • Joined: 08-March 09

Posted 13 March 2009 - 04:38 AM

Hi everyone,

Thanks for the tips. I went to the WinfromUSBsetup thread as sugested, used the GUI etc and when I booted off it, it started in the second part of the original install process! I had to get GParted on to a USB stick and format the SSD again, then when I tried the WinfromUSB'd stick, I got a Hal.dll error, same as other methods I've tried before. I'll have another go with your method here using the now it's been pointed out very obvious method :blushing: of setting to boot from SSD first but changing temporary boot options on the initial boot.

I'll let you know how I get on.

Cheers!

#17 User is offline   victor888 

  • Member
  • PipPip
  • Group: Members
  • Posts: 155
  • Joined: 20-October 04

Posted 14 March 2009 - 05:33 PM

I test it under VMWARE.

2 disks, one is booted as installation source (harddisk0), the second is target disk. When guibooting, a lot of .CAT file not found correctly(default is c:\i386), as well notepad.exe and other dll file lost.

the ntldr on the harddisk0 is changed to normal, and boot.ini was put on it too.
the RDISK() is wrong:

Quote

[Boot Loader]
timeout=1
Default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect


The installation procedure I can understand, but what confused me is that why installation files havn't been deleted? Migrate.inf is not be used.

Also above wrong directory, how to correct it?

...

#18 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 15 March 2009 - 02:00 PM

Quote

When guibooting, a lot of .CAT file not found correctly
Check \windows\system32\$winnt$.inf where Setup looks for the source files. Check setup log files in \windows too.
What did you put as SetupSourcePath in txtsetup.inf?
Were those missing files from a slipstreamed SP or updates? Check paths to them in txtsetup.sif, they may differ from those of a 'regular' source file.

Quote

the ntldr on the harddisk0 is changed to normal, and boot.ini was put on it too.
This is expected behavior- Setup would put boot files on the first fixed hard disk according to BIOS order. In case of USB stick which is normally 'removable', Setup puts them on the first fixed disk.

rdisk value is not wrong. According to BIOS order the second disk, where Windows is being installed to, is rdisk(1). There is still need to mess up with BOOT.INI later on.
The only way we found to avoid this behavior was to "break" HD order using grub4dos map command. Seems at that stage grub4dos mapping is still in effect. Setup would detect a strange situation and will use HD signature along with ARC path- e.g. signature(de33eaf8)disk(0)rdisk(0)partition(1)\WINDOWS. Note, rdisk value is the desired one. Those were tests with USB sticks. Signature part also seems to cause delay during boot, longer or shorter, depending on the system.
Read around this post for details:
http://www.msfn.org/board/index.php?showto...st&p=646746

Quote

why installation files havn't been deleted?
Read here:
http://www.msfn.org/board/index.php?showto...st&p=776205

In short- if MsDosInitiated="1", then SetupSourcePath and SetupSourceDevice are ignored, it defaults to $WIN_NT$.~LS, source files gets deleted as the source path is considered as temporary, saving disk space as the installation goes along.
MsDosInitiated="0"- SetupSourcePath and SetupSourceDevice are taken into account, source path is no longer considered as "temporary", no files are deleted.

#19 User is offline   victor888 

  • Member
  • PipPip
  • Group: Members
  • Posts: 155
  • Joined: 20-October 04

Posted 16 March 2009 - 01:52 AM

Quote

Check \windows\system32\$winnt$.inf where Setup looks for the source files. Check setup log files in \windows too.
What did you put as SetupSourcePath in txtsetup.inf?


I havn't checked it yet. I will test it tonight.
I set SetupSourcePath = \device\harddisk0\partition1 in txtsetup.sif

Quote

Were those missing files from a slipstreamed SP or updates? Check paths to them in txtsetup.sif, they may differ from those of a 'regular' source file.

The XP is sp3 from msdn CD.

Quote

rdisk value is not wrong. According to BIOS order the second disk, where Windows is being installed to, is rdisk(1). There is still need to mess up with BOOT.INI later on.


The value rdisk(0) after "defaut =" is not equal to the one in [operatins systems] which is rdisk(1).

Quote

The only way we found to avoid this behavior was to "break" HD order using grub4dos map command. Seems at that stage grub4dos mapping is still in effect. Setup would detect a strange situation and will use HD signature along with ARC path- e.g. signature(de33eaf8)disk(0)rdisk(0)partition(1)\WINDOWS. Note, rdisk value is the desired one. Those were tests with USB sticks. Signature part also seems to cause delay during boot, longer or shorter, depending on the system.

If the file system not NTFS, boot.ini can be fixed by DD comand of grub4dos.

Quote

In short- if MsDosInitiated="1", then SetupSourcePath and SetupSourceDevice are ignored, it defaults to $WIN_NT$.~LS, source files gets deleted as the source path is considered as temporary, saving disk space as the installation goes along.
MsDosInitiated="0"- SetupSourcePath and SetupSourceDevice are taken into account, source path is no longer considered as "temporary", no files are deleted.

Thanks a lot.

#20 User is offline   ilko_t 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,605
  • Joined: 06-December 06
  • OS:none specified
  • Country: Country Flag

Posted 16 March 2009 - 02:26 AM

Quote

I set SetupSourcePath = \device\harddisk0\partition1 in txtsetup.sif
You meant SetupSourceDevice = \device\harddisk0\partition1, right? What was SetupSourcePath?

Quote

The value rdisk(0) after "defaut =" is not equal to the one in [operatins systems] which is rdisk(1).
I thought it was a typo. Maybe on real hardware result will be different :unsure:

Quote

If the file system not NTFS, boot.ini can be fixed by DD comand of grub4dos.
That's restrictive, I personally would always use NTFS plus one may want to install windows on the second or third internal HD. Maybe search for a tag file...
In other hand, binifix.cmd at start of GUI is a proven to be working option.

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy