Help - Search - Members - Calendar
Full Version: How to boot/install from USB key ?
MSFN Forums > Member Contributed Projects > Install XP from USB
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

   
Google Internet Forums Unattended CD/DVD Guide
iceangel89
hi,

i am thinking of doing a boot from HDD, but yes i think some may think its a bit impossible that since i do not have much experience doing such things... but hope some1 can give me a guide here?

jaclaz, nice to see u helping me so much, but maybe its better to have "guides" instead of reading hundreds of posts... but still it helps, or try to tell me which post newwink.gif
Legolash2o
thx been looking for this
iceangel89
can some1 tell me how to do this? or which post/page has the answer?

reading through so many posts and cant seem to get anything done
jaclaz
QUOTE (iceangel89)
can some1 tell me how to do this? or which post/page has the answer?

reading through so many posts and cant seem to get anything done



Links to the most relevant posts (link already given, here):
http://www.boot-land.net/forums/index.php?...ic=2807&hl=
are in this post :
http://www.msfn.org/board/index.php?showtopic=99453&st=3

Last one is here:
http://www.msfn.org/board/index.php?showto...1384&st=293


Eventually, and that means WHEN everything will be found to be working and it will be tested, ilko_t will publish a complete guide, but there is NO "road-map" established, it may happen in the next 15 days as well as in the next 15 months, this procedure is something experimental and everyone contributing to it do so in their spare time, so please, do not ask for a release date, just wait and check back once in a while or experiment with info already provided.
Check this:
http://www.msfn.org/board/index.php?showto...1384&st=273

By the way, it is rather amazing how at this moment the thread had 51,818 views and the number of people that have actually contributed or gave a useful feedback can be counted on fingers without taking one's shoes off.... whistling.gif
To provide a solution that works on the most hardware we need some people that test the procedure on their hardware and report problems or success.

jaclaz
wimb
The automatic making of a bootable USB-stick for Install of Windows XP using prepare2.zip was tested.
Collecting files in a Virtual Disk and file editing with Fedit.exe are very handy in this approach smile.gif

Fresh and Repair Install of Windows XP from the bootable USB-stick was realised successfully,
after some modifications in the _prepare.cmd file as described below:

For my version of XP it was necessary to remove the :all option in the winnt32.exe command.
Otherwise in making the LocalSource I get Error messages for missing files: tabletpc.cab and mediactr.cab

The /h /k option is not valid in the copy command, but gives no problem.

MakeBS3.cmd .... was replaced by CALL MakeBS3.cmd ....
in order to see the messages and to return to the following statements in the _prepare.cmd newwink.gif

It is interesting to integrate also CALL MkMigrateInf of cdob for giving the USB-stick drive letter U:
because without it the USB-stick gets the unwanted drive letter D:
and consequently the drive letters of other partitions on the harddisk are changing.

Fedit.exe was used in _prepare.cmd to make
the for the Repair option necessary change in the presetup.cmd of BTS DriverPacks.

The btinifix4.cmd was made ready for unattended install by removing the pause and the YES confirmation.

I think the automatic approach is very worthwhile and removes the previous risc of someone forgetting
to reset boot.ini after the winnt32.exe command, resulting after reboot in an unexpected install of Windows XP.
ilko_t
Hi wimb smile.gif

Here are some results in my tests:
QUOTE (wimb @ Aug 18 2007, 09:59 AM) *
For my version of XP it was necessary to remove the :all option in the winnt32.exe command.
Otherwise in making the LocalSource I get Error messages for missing files: tabletpc.cab and mediactr.cab
It's tricky, if :all is not used some folders are not copied, e.g. when preparing MCE and GUI setup will complain about missing files/folders. If it is used some files cannot be found by WINNT32 as it is looking at the wrong place for them, for example test with DELL XP Home SP2:
Here is part of TXTSETUP.SIF:

QUOTE
[SourceDisksFiles]
.......
startoc.dll = 100,,,,,,,32,0,0
startoc.inf = 100,,,,,,,20,0,0
startoc.cat = 100,,,,,,,,3,3
startoc.cab = 2,,,,,,_x,,3,3

Part of LAYOUT.INF:
QUOTE
[SourceDisksFiles]
.............
startoc.dll = 100,,22016,,,,,32,0,0
startoc.inf = 100,,109098,,,,,20,0,0
startoc.cat = 100,,167601,,,,,,3,3
startoc.cab = 2,,8672998,,,,_x,,3,3


And part of DOSNET.INF
QUOTE
[Files]
...........
d1,startoc.dll
d1,startoc.inf
d1,startoc.cat
d2,startoc.cab


startoc.cab is the only file, not found by WINNT32, and it's the only 1, which differs from others in it's source description. Why they did it like that I have no idea, however I'd rather make a note of the files not found and manually copy them after _prepare.cmd, than not copying whole folders (:all switch).
On generic XP SP2 situation is fine, no funny files or folders, but with different sources we can expect all kind of errors, because of the many ways OEMs integrate their stuff and WINNT32 fails to replicate the exact CD structure.

QUOTE (wimb @ Aug 18 2007, 09:59 AM) *
The /h /k option is not valid in the copy command, but gives no problem.
That was xcopy before, forgot to remove redundant switches blushing.gif


QUOTE (wimb @ Aug 18 2007, 09:59 AM) *
MakeBS3.cmd .... was replaced by CALL MakeBS3.cmd ....
in order to see the messages and to return to the following statements in the _prepare.cmd newwink.gif
Told you I am newb with scripts, didn't know how to avoid that rolleyes.gif Thanks.

QUOTE
It is interesting to integrate also CALL MkMigrateInf of cdob for giving the USB-stick drive letter U:
because without it the USB-stick gets the unwanted drive letter D:
and consequently the drive letters of other partitions on the harddisk are changing.
Here is tricky too, please read the results with USB hard disk bellow. USB stick getting C: is a good indication that something is wrong and stick will be rendered non bootable during TXT Setup because is seen as first disk- abort setup. If it's preset to U: you will not get that. Better fix drive letters later.

QUOTE
Fedit.exe was used in _prepare.cmd to make
the for the Repair option necessary change in the presetup.cmd of BTS DriverPacks.

The btinifix4.cmd was made ready for unattended install by removing the pause and the YES confirmation.
Would you attach the edited files please.

I also added simple check if winnt.sif don't exist on source not to use /unattend switch:

CODE
IF EXIST %instpath%\i386\winnt.sif (
%instpath%\i386\winnt32.exe /noreboot /makelocalsource:all /syspart:%tempdrive% /tempdrive:%tempdrive% /unattend:%instpath%\i386\winnt.sif
) ELSE (
%instpath%\i386\winnt32.exe /noreboot /makelocalsource:all /syspart:%tempdrive% /tempdrive:%tempdrive%
)
If you can make it better please add it as well in the files to be attached.
-------------------------------

Some results with USB hard disk- unfortunately I couldn't make it work without deleting source files. USB hard disk is seen as first disk and gets letter C:, dispite the fact it's listed as second in list and TXT Setup attempts to place boot files on it. If it's write- protected by migrate.inf SETUP complains about damaged hard drive D:
QUOTE
Setup has determined that Drive D: is corrupted and cannot be repaired
Same behavior was desribed in post #130 , when in mixed SATA/IDE environment USB stick is seen as first bootable device, this was fixed by disabling IDE controllers or removing attached devices from them, but here I had only 1 IDE hard disk and the USB one.

Remove the write- protection form migrate.inf- no more complains, but all boot files go on USB disk and the files being copied to destination are deleted from source.
Make USB disk U:- same story.
Tests made with 2 different USB-IDE adapters and IDE disk as destination- same results.

Because the files deleted during TXT Setup are from ~LS folder I tried to keep ~BS for the TXT part and force Setup to look for source files in other folder- I386 copied on USB disk. This articles give some clues:
http://support.microsoft.com/kb/150497
http://technet2.microsoft.com/windowsserve...3.mspx?mfr=true

I have tried to change TXTSETUP.SIF to
CODE
[SetupData]
SetupSourcePath = "\"
SetupSourceDevice = \device\harddisk0\partition1
MajorVersion = 5
MinorVersion = 1
Also \ to \i386, with and without quotes and spaces to no avail- "Setup cannot format the hard drive- CD is damaged" meaning cannot find files on source destination. TXTSETUP.SIF is in root and in I386.

WINNT.SIF:
CODE
[Data]
Autopartition=0
UnattendedInstall="Yes"
floppyless = "1"
msdosinitiated = "0"
OriSrc = "\device\harddisk0\partition1\i386"
EulaComplete="1"
winntupgrade="no"
win9xupgrade="no"
Win32Ver="a280105"
uniqueid="C:\WINDOWS\JAL"
OriSrc="\device\harddisk0\partition1"
OriTyp="3"
unattendswitch=yes
sourcepath = \device\harddisk0\partition1\i386
floppylessbootpath=\Device\HardDisk0\partition1
[SetupData]
OSLoadOptionsVar="/noexecute=alwaysoff"
SetupSourceDevice = "\device\harddisk0\partition1"
floppyless = "1" and msdosinitiated = "0" were tried in all combinations, some funny lines were added to experiment, actually in over 20-30 attempts to change/remove lines I had no luck. No idea if it's by design like that or am missing something. May be Setup detects that has not been started from RIS ignoring paths and keeps searching for files in ~LS folder.

Another dumb idea- copied the contents of CD on USB disk, leave boot files to invoke SETUPLDR.BIN and amend WINNT.SIF and TXTSETUP.SIF(copied on root and I386) for other source paths- no luck again- BIOSINFO.INF cannot be found in ~BT folder, so it's either hard coded when booted from hard disk to search there, or I am missing something.
I am taking a break from USB hard disks for now, at least until someone gives better ideas.
May be a way to make USB hard disk seen as removable? AFAIK this could be done by using driver patching on the fly the removable bit which seems too hard for the purpose, or I am wrong?


Regards,
ilko
wimb
Hi ilko smile.gif

From your experiments with Install of windows XP from bootable USB-harddisk,
I understand that in this case the problems are rather complex and perhaps difficult to overcome.
For the moment it is indeed better to focus on using the bootable USB-stick for this purpose,
and we are lucky that everything is working so well for the USB-stick thumbup.gif

When the :all option is used in the winnt32.exe command,
I can simply manually overrule the missing of tabletpc.cab and mediactr.cab for my case of XP Professional.
We might also introduce the :all option as a user selectable option for use with different XP sources.

When the LocalSource was made with option :all, I had no problems during the install of Windows XP.

The use of MkMigrateInf.cmd might also be a user selectable option,
so that for simple cases the advantage of drive letter U: for the USB-stick is available.
But I agree with you that this must not be the default choice,
because you explained quite well the disadvantage of using always U: for the USB-stick.

As attachment you will find prepare3.zip with the slightly modified _prepare3.cmd and binifix4.cmd
The EXIST winnt.sif Check that you made, is also included in the _prepare3.cmd smile.gif

Regards,

wimb
wimb
Hi ilko smile.gif

The batch program for making a bootable USB-stick for Install of Windows XP,
was further improved and renamed to usb_prep.cmd ( see attachment ).

Now User options with choice of Source and Target Drive are selectable at the beginning in a Start Menu.

MkMigrateInf2.cmd of cdob was slightly edited so that it is available as a Selectable option
using a CALL from the batch program.

Some more security checks on drives and files were also included.

The type of XP Source being either Home / Professional OR Media Center/Tablet PC Edition
is selectable and determines the :all option in the winnt32.exe command for making the LocalSource.

I found some handy sites with a lot of information for making batch programs:

http://www.ss64.com/index.html
http://www.robvanderwoude.com/index.html
http://www.microsoft.com/resources/documen...h.mspx?mfr=true
http://www.allenware.com/
http://www.computerhope.com/batch.htm

Regards,

wimb
cdob
@ilko_t and wimb
to prepare3, haven't tried usb_prep.cmd yet.
Congratulations, does work as builded.
Windows installation files are perpared in vitual disk and copied to USB drive.
Installation does work. Windows does boot. No files are delete at USB drive.

But allow me to play the bad guy (a sophisticated end user, the worst customer):
Next I installed windows at folder c:\windows51. First reboot failed.
Obviously boot.ini at USB stick dosn't match:
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="GUI Mode Setup" /FASTDETECT

This failed:
\$WIN_NT$.~LS\$OEM$\CMDLINES.TXT
CODE
[COMMANDS]
"binifix4.cmd C:"
Do I use false files? How to run binifix?.cmd at end of textmode setup?
First reboot should work at c:\windows51 too.

Another example:
c:\boot.ini
d:\windows
How to support this? Do we restrict to c:\windows only?

Three suggestions to _prepare.cmd:
Ask temporary image size in megabytes
I prefer OS internal solutions. Third party tools if internals fail. Use fsutil instead of fsz. Fsutil.exe is a default XP application.
format /Q: Quickformat

QUOTE
ECHO Please enter temporary image size in MB, according to your source size:
ECHO e.g.: 600
SET /P imgsize=

ECHO.
ECHO closing existing virtual drives if any...
vdk.exe remove

REM to be improved...
IF EXIST tempimage.img (del tempimage.img) ELSE echo tempimage.img was not found, creating a new one...
set /a imgsize*=1024*1024
fsutil.exe file createnew tempimage.img %imgsize%

...

ECHO temprary drive created, lets format it
ECHO.
format %tempdrive%: /FS:fat32 /v:TempDrive /Q
In addition there is a undocumented 'format /Y' as YES. A end user dosn't have to confirm format.
Contrary a end user might select a false drive by accident.
Don't use 'format /Y'. A end user has to confirm format always.


USB stick get C: too, if you use a brand new hard disk (no partitions).
If need be you don't have to use U:, another letters are possible too.
A third parameter goes to migrateinf.cmd
ilko_t
Hi cdob,

QUOTE (cdob @ Aug 21 2007, 08:09 PM) *
Next I installed windows at folder c:\windows51. First reboot failed.
Obviously boot.ini at USB stick dosn't match:
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="GUI Mode Setup" /FASTDETECT
Can you think of simple way to adjust boot.ini on stick to match everyone's needs? May be if we include in usb_prep.cmd questions like "do you plan to install XP in folder other than default \WINDOWS?", "do you plan to install it on partition/disk other than first hard disk, first partition" and amend BOOT.INI on stick accordingly?
My opinion is this way of installing Xp from USB requires some user intervention, adjusting to one's specific needs. May be some info could be displayed about this issue in usb_prep.cmd. Another way is to revert back to Grub4Dos and invoke NTLDR on hard disk, in this case mapping should be used, which restricts us in the same way, because of the different drive/partition numeration. So we'd need to amend menu.lst, instead of BOOT.INI on stick. Can't think of any other way to avoid that.

QUOTE (cdob @ Aug 21 2007, 08:09 PM) *
This failed:
\$WIN_NT$.~LS\$OEM$\CMDLINES.TXT
CODE
[COMMANDS]
"binifix4.cmd C:"
Do I use false files? How to run binifix?.cmd at end of textmode setup?
Is binifix4.cmd in the same folder as cmdlines.txt? Did it start at all? Any backup files in C: of boot.ini?

QUOTE
First reboot should work at c:\windows51 too.
As long as BOOT.INI on USB stick points to that path.

QUOTE
Another example:
c:\boot.ini
d:\windows
How to support this? Do we restrict to c:\windows only?
I don't foresee issues with that, other than adjusting BOOT.INI on stick to partition(2) and changing WINDOWS to whatever it would be. BOOT.INI on hard disk is created by TXT Setup and only rdisk value adjusted by binifix.cmd to -1.

QUOTE
Three suggestions to _prepare.cmd:
Ask temporary image size in megabytes
I prefer OS internal solutions. Third party tools if internals fail. Use fsutil instead of fsz. Fsutil.exe is a default XP application.
format /Q: Quickformat

QUOTE
ECHO Please enter temporary image size in MB, according to your source size:
ECHO e.g.: 600
SET /P imgsize=

ECHO.
ECHO closing existing virtual drives if any...
vdk.exe remove

REM to be improved...
IF EXIST tempimage.img (del tempimage.img) ELSE echo tempimage.img was not found, creating a new one...
set /a imgsize*=1024*1024
fsutil.exe file createnew tempimage.img %imgsize%

...

ECHO temprary drive created, lets format it
ECHO.
format %tempdrive%: /FS:fat32 /v:TempDrive /Q
In addition there is a undocumented 'format /Y' as YES. A end user dosn't have to confirm format.
Contrary a end user might select a false drive by accident.
Don't use 'format /Y'. A end user has to confirm format always.
Nice to see that option in fsutil.exe smile.gif Thanks thumbup.gif

QUOTE
USB stick get C: too, if you use a brand new hard disk (no partitions).
If need be you don't have to use U:, another letters are possible too.
My point was that seeing that stick gets C is clear indication to abort SETUP, if it's preset you won't see that, it's not about available drive letters. Your point about non partitioned hard disk is valid, on first though what about if we delete MountedDevices key during GUI SETUP, thus forcing XP to re-enumerate the letters at first logon? Need to study this option further, or just use migrate.inf as you say, and find another indication that something is wrong- abort setup.

QUOTE
A third parameter goes to migrateinf.cmd
Sorry, I didn't get that. You changed mkmigrate.inf to include an option what letter to be given? Would you attach it please if it is so.

@wimb- good job thumbup.gif
wimb
@cdob
Install of XP Windows from the bootable USB-stick
next to WINDOWS on the same or on a different partition of the harddisk,
was realised successfully by proper manually adjustment in advance of the BOOT.INI file of the USB-stick.

Ilko_t already indicated that for Install on the second partition,
adjusting BOOT.INI on stick to partition(2) is sufficient, and I can confirm that.

So these non-standard installs are still possible,
but require only small changes in the BOOT.INI on the stick in advance.

For a brand new harddisk it is always advisable to reboot the computer after creating partitions with TXT mode Setup.
So in this case one boots twice in the TXT-mode Setup, so that after the reboot drive letters get their correct value.

It is a very good idea to use fsutil.exe instead of fsz.exe and to use QuickFormat of the TempDrive.

When making the TempImage, the binifix4.cmd is written in winnt.sif as [GUIRunOnce] command,
and so it should be removed from your CMDLINES.TXT

@ilko_t
MigrateDrive is set in MkMigrateInf2.cmd fixed at U:
but can also be set to a different value by giving in the CALL a third parameter e.g. R:
But in the Setup procedure a fixed value of U: in MkMigrateInf2.cmd seems OK to me.
Hitman47
I created a bootable WinXp sp2 USB pendrive using the 'usb_prep.zip' posted 3 posts above. The usb drive was created perfectly without any errors. Some of my parameters i selected are:

i started the usb_prep.cmd and did this:

1: type as [home/prof]
2:copied all folders/files from winxp cd to a forlder 'd:\winxp' and selected it as source
3:virtual temp drive as v:
4:target usbdrive as k:(as shown in my computer )

My pendrive is Transcend Jetflash JF V30 / 2GB (and formatted before this procedure)

all steps went properly, all files copied to usb without error , at the end i selected for SATA Hdd

Then after making this usb drive i restarted my PC and selected USB as first boot device. The usb drive is detected by BIOS. After the POST, the PC attempts to boot from USB but nothing happens, it waits there for 2-3mins with all the previous POST messages on display and then proceeds to boot from the HDD.

Why doesnt it boot from USB when everything i did is correct???
ilko_t
QUOTE (Hitman47 @ Aug 22 2007, 06:44 PM) *
My pendrive is Transcend Jetflash JF V30 / 2GB (and formatted before this procedure...
That's the important part, how did you format it, from within XP using XP format? What file system?
Try formatting it using PEtoUSB or HP Format tool, links are in this thread or use GOOGLE. In the archive attached in post #294 PEtoUSB is included.
When you format it copy on USB stick ONLY ntdetect.com, NTLDR from your XP source, and create BOOT.INI in USB stick root:

BOOT.INI
CODE
[Boot Loader]
Timeout=10
Default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="TEST" /FASTDETECT
multi(0)disk(0)rdisk(1)partition(2)\WINDOWS="TEST 1" /FASTDETECT


Start the PC and if you see the menu, your stick is ready- format it again and use usb_prep.cmd
PEtoUSB has an option for LBA, use it first, if doesn't boot use without that option.
HP format too can format in FAT16 and FAT32- find which one works for you.
wimb
QUOTE (Hitman47 @ Aug 22 2007, 07:44 PM) *
Why doesnt it boot from USB when everything i did is correct???

Everything seems correct, except maybe for the way of formating the USB-stick.
Did your computer boot already from this stick e.g. in MS-DOS ?
Or is there a general problem that your computer cannot boot from the stick ?

Try the HP USB Disk Storage Format Tool Version 2.0.6 and use FAT filesystem, without DOS startup.
Then you get a stick with MBR and Partition with NTLDR Bootsector, which refers to NTLDR that uses BOOT.INI

Info: http://www.911cd.net/forums//index.php?showtopic=20089

Create MBR, Partition and Format USB_stick using HP USB Disk Storage Format Tool Version 2.0.6
http://download.chip.eu/en/USB-Disk-Storag...0.6_176935.html
Hitman47
Thanks for your super quick help rolleyes.gif

I previously formatted using XP's format tool.
Now i formatted using PEtoUSB tool and voila!!!! it booted from USB smile.gif though after that 2-3 mins wait time

Thanks again for ur support

I have some questions:
Q1. As there is an option for SATA HDD in usb_prep.cmd, i wonder, whether this USB XP installation will work on computers with both IDE and SATA hdds??? Because some of my PCs have IDE(PATA) Hdd while some have SATA Hdd?

Q2. I had read somewhere before that 'Repair' Installation of WinXP is troublesome using this method??. As many times I have to just make 'Repair' rather that full reinstall when my systems go corrupt.

Q3. Can i use an external USB HDD(with two partitions on it) instead of USB Stick???. Like using first partition for these installation files and second partition for carrying normal data??
ilko_t
Glad it worked for you. If this delay is at start you might update your BIOS and/or disconnect any other USB devices, try on different USB ports (use the ones on the back of the motherboard), play with the BIOS setting about USB- legacy support, USB 1.1/2.0 etc.

Q1- usb_prepare.cmd has nothing to do with SATA/IDE drivers, it just transfers your SOURCE to the USB stick in suitable format. If the source has drivers for the SATA controller- it will install properly. BTS mass storage drivers pack is advisable to be used.

Q2- in the tests so far REPAIR works fine, as long as the installation was made using the methods described here and binifix.cmd. The only way to break that function is if BOOT.INI on hard drive doesn't have the required line.
Example:
Typical BOOT.INI:
CODE
[Boot Loader]
Timeout=30
Default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /FASTDETECT

Repair won't work, because it points to rdisk(0), when launched from USB stick the hard disk installation will appear as rdisk(1), rdisk(0) is the USB stick.

If you simply add
QUOTE
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="USB Repair Microsoft Windows XP Professional" /FASTDETECT
that will be enough for TEXT mode setup to find the installation and display repair option. Naturally if installation is on the first hard disk, first partition.

This functionality is present in binifix.cmd, which is used when SETUP is done using the method, described here- no need to add the line.
donkiekong55
QUOTE (ilko_t @ Aug 22 2007, 01:07 PM) *
That's the important part, how did you format it, from within XP using XP format? What file system?
Try formatting it using PEtoUSB or HP Format tool, links are in this thread or use GOOGLE. In the archive attached in post #294 PEtoUSB is included.
When you format it copy on USB stick ONLY ntdetect.com, NTLDR from your XP source, and create BOOT.INI in USB stick root:

BOOT.INI
CODE
[Boot Loader]
Timeout=10
Default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="TEST" /FASTDETECT
multi(0)disk(0)rdisk(1)partition(2)\WINDOWS="TEST 1" /FASTDETECT


Start the PC and if you see the menu, your stick is ready- format it again and use usb_prep.cmd
PEtoUSB has an option for LBA, use it first, if doesn't boot use without that option.
HP format too can format in FAT16 and FAT32- find which one works for you.


Hi welcome.gif i set my bios to boot from usb and everything and then i followed these instructions to test to see if i could boot from the usb stick. However, after POST, a j appears with a blinking cursor that just sits there, and the boot menu never shows up. i tried reformating the usb stick and trying again with the different options in PEtoUSB and also tried with the HP USB Disk Format tool but the same thing happens. any suggestions on what to do?

i really appreciate all the work that you guys put into making these batch files and i would like to try them out sometime. biggrin.gif

Thanks in advance
wimb
Hi Ilko

The HP_USB_Boot_Utility.exe V2.0.6 download (2024 kB) from
http://download.chip.eu/en/USB-Disk-Storag...0.6_176935.html
gives after install two small program files in the DriveKey folder.

HPUSBFW.EXE is a portable Windows version (432 kB) and HPUSBF.EXE is a CMD-line program.

An EndUser might copy PeToUSB.exe and/or HPUSBFW.EXE in its own usb_prep folder.

It is possible to provide a command at the beginning of usb_prep.cmd
for launching the USB-stick Format program, so that one can use automatically
the right type of Format program in the automatic preparation of the usb-stick.

PeToUSB.exe is more safe and most suitable for this purpose, because it cannot format USB-harddisk !

Regards,

wimb
ilko_t
QUOTE (donkiekong55 @ Aug 23 2007, 02:42 AM) *
Hi welcome.gif i set my bios to boot from usb and everything and then i followed these instructions to test to see if i could boot from the usb stick. However, after POST, a j appears with a blinking cursor that just sits there, and the boot menu never shows up. i tried reformating the usb stick and trying again with the different options in PEtoUSB and also tried with the HP USB Disk Format tool but the same thing happens. any suggestions on what to do?

i really appreciate all the work that you guys put into making these batch files and i would like to try them out sometime. biggrin.gif

Thanks in advance
Hi, please read these links:
http://www.911cd.net/forums//index.php?sho...aded&start=
http://home.graffiti.net/jaclaz:graffiti.n...SB/USBfaqs.html FAQs 4,5 and 10
http://home.graffiti.net/jaclaz:graffiti.n...B/USBstick.html

If you don't get your answer please post here your Motherboard model, USB stick model and details, BIOS settings you've tried, files system and tools you've tried.



QUOTE (wimb @ Aug 23 2007, 03:34 PM) *
Hi Ilko

The HP_USB_Boot_Utility.exe V2.0.6 download (2024 kB) from
http://download.chip.eu/en/USB-Disk-Storag...0.6_176935.html
gives after install two small program files in the DriveKey folder.

HPUSBFW.EXE is a portable Windows version (432 kB) and HPUSBF.EXE is a CMD-line program.

An EndUser might copy PeToUSB.exe and/or HPUSBFW.EXE in its own usb_prep folder.

It is possible to provide a command at the beginning of usb_prep.cmd
for launching the USB-stick Format program, so that one can use automatically
the right type of Format program in the automatic preparation of the usb-stick.

PeToUSB.exe is more safe and most suitable for this purpose, because it cannot format USB-harddisk !
The Attachment contains usb_prep.cmd with AUTOSTART of PeToUSB.exe

Regards,

wimb
As you know USB boot is still very badly implemented in different BIOSes/Motherboards, so it will be impossible to rely only on one or another tool or file system. In my opinion one needs to find out what suits his needs and makes stick bootable.
What we can do is just to include several tools in the archive (as long as T&C allow) and possibly add some info in the script or here as short guide, the rest is improvising and experimenting.


edit: @Hitman47- seems you edited your post while I posted mine- about question 3- please read post #306, it is on this page, short answer is no (yet), at least not using the methods described here. You could have Bart PE on USB hard disk and start setup from there, or just use DOS and WINNT.EXE, without modifying the source at all. Don't forget smartdrv.exe for faster transfer. Good info how to install from DOS is in this thread.
donkiekong55
QUOTE (ilko_t @ Aug 23 2007, 02:23 PM) *
Hi, please read these links:
http://www.911cd.net/forums//index.php?sho...aded&start=
http://home.graffiti.net/jaclaz:graffiti.n...SB/USBfaqs.html FAQs 4,5 and 10
http://home.graffiti.net/jaclaz:graffiti.n...B/USBstick.html

If you don't get your answer please post here your Motherboard model, USB stick model and details, BIOS settings you've tried, files system and tools you've tried.


Hi, ilko_t. Thanks for the reply.
i've tried the suggestions in the first two links but still no success. I read through the third link but i got confused cause i don't understand all of the weird terms and many numbers and how the guy knew what to fix in the "MBR and boot record" (as i don't have much computer knowledge blushing.gif )

anyway i thank you guys for helping me, but i think i'm gonna give up. lol. i just wanted to try this cause it looked interesting. rolleyes.gif

btw. just in case you wanted to know what i tried: Motherboard- Asus K7v; USB stick- no name brand (just says micro center); BIOS settings- i enabled usb legacy support and usb function and for boot options i tried USB FDD and USB ZIP (I couldn't find anything else in the BIOS that said USB); File system- FAT, FAT32, and the LBA thing?; Tools- PEtoUSB, HP USB Disk Storage Format Tool, and USB Drive Key Boot Utility

again Thanks for helping biggrin.gif
ilko_t
donkiekong55, your motherboard uses VIA KX133 chipset which is too old and even doesn't support USB2.0, I doubt you can do anything. Even if you make it boot from USB stick it will be painfully slow. On a MB with slightly newer chipset- VIA KT266 I had no luck booting from USB.
jaclaz
QUOTE (donkiekong55)
btw. just in case you wanted to know what i tried: Motherboard- Asus K7v; USB stick- no name brand (just says micro center); BIOS settings- i enabled usb legacy support and usb function and for boot options i tried USB FDD and USB ZIP (I couldn't find anything else in the BIOS that said USB); File system- FAT, FAT32, and the LBA thing?; Tools- PEtoUSB, HP USB Disk Storage Format Tool, and USB Drive Key Boot Utility

(bolding is mine)

This appears case 4. of FAQ #10:
QUOTE (http://home.graffiti.net/jaclaz:graffiti.net/Projects/USB/USBfaqs.html)
motherboards that ONLY boot from USB media formatted as “Superfloppy” (a drive formatted as to have no MBR, but directly the BOOTSECTOR as Sector 0)


Besides the other consideration about speed, even if you format the stick as Superfloppy, such behaviour will NOT work for NT/2K/XP/2003 as NO ARCPATH is generated, the problem has been discussed at length on Dietmar's thread, but unfortunately no solution/workaround has been found (yet):
http://www.911cd.net/forums//index.php?showtopic=14181

The only viable solution is (possibly) through the use of makebootfat "special" MBR, but it appears that noone ever tested this (or reported findings):
http://www.911cd.net/forums//index.php?sho...13784&st=44

It seems like we are in some kind of CATCH22 here, noone with a "Superfloppy only" motherboard has the technical abilities/time/will to experiment, whilst noone that has the latter has a "Superfloppy only" motherboard to experiment with. newwink.gif

jaclaz
ilko_t
Hi jaclaz smile.gif

I hope you had/having a good holiday.

Here are a few more pieces to the bootsectors puzzle.

Stick set as fixed using Hitachi driver.
Formated with PEtoUSB FAT16X. After Winnt32 stick boots fine.
Formated with XP format FAT16. Winnt32.exe used- stick won't boot. Put MBR made by PEtoUSB, leave bootsector (which has been changed by WINNT32.EXE) alone- stick becomes bootable again.

Another interesting (at least for me) thing- the only difference in bootsector apart from volume serial if stick is formated by XP and seen as removable (won't boot) or fixed by Hitachi driver (will boot) is seen here. MBRs are the same. Change the 00 to 80 on seen as removable stick and it boots fine. No need to use Hitachi driver anymore. It might be helpful for your lovely scripts to make any stick bootable while formated as removable, as long as this can be confirmed in other setups.


I also can 99% confirm that XP format doesn't always rewrite MBR, as I see it it checks just some parts of MBR and if they are fine skips rewriting.
See the differences between F6_FAT32_fixed_XP MBR and FAT32_Fixed_XP MBR.

Please find attached MBRs and bootsectors made using HP tool FAT16 and 32. Both boot fine before WINNT32, only FAT16 boots fine after WINNT32.
No error messages at all when it doesn't boot, just blinking cursor in the top left corner of screen.

Regards,
ilko

edit: mistyped MBR/bootsector
jaclaz
Hallo, Ilko_t.

Some updates, I was successful in booting recreated virtual hard disks from your previously posted files, so I can confirm that it must be something outside the bootsector/MBR.


QUOTE (ilko_t)
Another interesting (at least for me) thing- the only difference in MBR apart from volume serial if stick is formated by XP and seen as removable (won't boot) or fixed by Hitachi driver (will boot) is seen here. Change the 00 to 80 on seen as removable stick and it boots fine. No need to use Hitachi driver anymore. It might be helpful for your lovely scripts to make any stick bootable while formated as removable, as long as this can be confirmed in other setups.

I doubt the above, sorry. sad.gif
Try resetting the usual, say first 100 sectors, to F6 and try formatting the stick under XP WITHOUT the Hitachi Microfilter Driver..... whistling.gif

I just checked the files in your last post, and again, there is no reason in them why they shouldn't boot.

A few ideas for you to test (for the FAT32 ones):
1) Try, after the WINNT32 (and thus on a stick that it is not booting) to copy over the bootsector a "BootSector_Before.dat" generated before (when the stick was booting ok)
2) Try changing the "spare" bootsectors found on sector 6 with a copy of the current one, theoretically if the two bootsectors
3) Check this:
http://www.boot-land.net/forums/index.php?showtopic=1647
maybe from comparing the outputs of findpart with the various options on the stick "before" and "after" one could find some other difference that might matter unsure.gif

jaclaz
ilko_t
Lexar 1GB
WinHex- fill whole drive with F6
Unplug stick, plug it back in and format FAT32 using XP format. Copy ntldr, ntdetect.com and valid boot.ini- "disk error, press any key to restart"
Change 00 to 80- goes in a loop, showing briefly "invalid boot.ini, booting from c:\windows" then restarts.
To play with the hidden sectors and boopart seems to take much time for my very little knowledge in this matter, giving up (grrr) with this MBR/bootsector puzzle.
3 MBRs for FAT32 formated by XP and stick removable, produced 3 different MBRs- one after F6, another if stick is formated before by PEtoUSB and the third don't even remember how was it formated before to result in another different MBR. That makes for me too many unknowns in the equation.

QUOTE
1) Try, after the WINNT32 (and thus on a stick that it is not booting) to copy over the bootsector a "BootSector_Before.dat" generated before (when the stick was booting ok)
As far as I remember this makes the stick bootable again.
Thanks for your guidance so far smile.gif
wimb
The batch program usb_prep2.cmd for making a bootable USB-stick for Install of Windows XP,
was further improved.

Filling of the USB-stick with files was analysed with WinHex using 1stSector column.
The MakeBS3.cmd was moved such that the Bootsector file SETUPLDR.bs gets a position
close to BOOT.INI in the beginning of the drive, instead of being the last written sector.

$OEM$\CMDLINES.TXT can be used for making UserAccounts and install of Registry Tweaks at T-12
If $OEM$ folder is present in usb_prep2 folder, then it will copied now to the right position
in the temporary drive.

On first logon the Extracted BTS DriverPacks are deleted, which normally takes a long time,
because SystemRestore copies them to System Volume Information folder.
The Disable_SystemRestore.reg Registry Tweak prevents this action, so that first logon is much faster.

Personally I am using only the 5 smallest BTS DriverPacks with Mass Storage text mode enabled.
So I do not integrate the 5 large Sound and Graphics DriverPacks, but use these Packs manually
when Updating Drivers. The extraction and deletion of these 5 large DriverPacks is taking a lot of time.

The file winnt_sif.txt can be used for making your own winnt.sif file to be placed in the xpsource\I386 folder.

If an appropriate USB-stick Format Program like PeToUSB.exe is present in the usb_prep2 folder,
it will be launched automatically at the beginning of the usb_prep2.cmd batch program.

The usb_prep2 folder is given as Attachment.

A Guide for making MultiBoot USB-stick with boot.ini Menu including other boot options like MS-DOS and Linux
is given here http://www.911cd.net/forums//index.php?showtopic=20089

Regards,

wimb
ilko_t
That's a lot better, nice job wimb thumbup.gif

A small suggestion- when searching for BTS drivers I think would be better to use another marker, not the directory OEM, as it might be some OEM custom folder. Use DPsFnshr.7z in \OEM\bin or some other file, which definitely belongs to BTS pack. I believe if that file exist, presetup.cmd will exist too.


@all- any ideas how to make USB hard drive to look as removable?
My idea- the removable flag should returned as result by disk.sys or usbstor.sys. If it is written somewhere in registry and we use migrate.inf we may override this result and trick TXT Setup to think that USB disk is not fixed, thus giving it proper letter and position.
I have used similar technique to remove unwanted devices from safely remove hardware by setting device capabilities to 80, from default 64. On restart this setting is lost, because the driver returns the flag, but use reg file to change it on startup and it's fine.
In my case I wanted to remove some hard drives from safely remove list-

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\SCSI\Disk&Ven_SATA&Prod_HDS72251&Rev_\5&b721abc&1&010

http://msdn2.microsoft.com/en-us/library/aa491648.aspx
http://msdn2.microsoft.com/en-us/library/ms792967.aspx
http://support.microsoft.com/kb/298504

I was thinking would it be possible similar approach to be used. Any detailed information what exactly Hitachi microfilter does, or Dietmar's dummy.sys? We need the opposite result, but not using filter driver, or if it easy to use such at this point why not...
jaclaz
QUOTE (ilko_t)
I was thinking would it be possible similar approach to be used. Any detailed information what exactly Hitachi microfilter does, or Dietmar's dummy.sys? We need the opposite result, but not using filter driver, or if it easy to use such at this point why not...


A small correction, there is no such thing as a "Dietmar's dummy.sys".

The file is on CodeProject, it's author is Anton Bassov
http://www.codeproject.com/system/soviet_direct_hooking.asp
and it comes with source code and an article explaining it.

At the time I "found" it and suggested it to Dietmar:
http://www.911cd.net/forums//index.php?sho...181&st=1954
as an alternative to the Hitachi Microdrive one (that has no source code), and Dietmar tested and adopted it.

Now we need someone with programming skills and the correct DDK/Compiler etc.

jaclaz
ilko_t
QUOTE (jaclaz @ Aug 29 2007, 05:34 PM) *
A small correction, there is no such thing as a "Dietmar's dummy.sys"....
Thanks for correction. blushing.gif

QUOTE (jaclaz @ Aug 29 2007, 05:34 PM) *
Now we need someone with programming skills and the correct DDK/Compiler etc.

Your suggestion is to modify driver to return the opposite result and use it during Text mode right? In this case wouldn't it be difficult to use it at that stage? How do we load lowerfilter drivers via txtsetup.sif?

I did another search in registry for clues, cannot find a single entry which may override the result returned during Text mode. I am still hoping that something is written in registry and programs query that key to get removable status, rather than querying and getting result from usbstor.sys on-the fly. Find that key(s) and use migrate.inf to add it, if possible at all.

BTW source code of Hitachi microfilter driver is included in the download.
wimb
QUOTE (ilko_t @ Aug 29 2007, 01:58 PM) *
A small suggestion- when searching for BTS drivers I think would be better to use another marker, not the directory OEM, as it might be some OEM custom folder. Use DPsFnshr.7z in \OEM\bin or some other file, which definitely belongs to BTS pack. I believe if that file exist, presetup.cmd will exist too.


Good idea, I will surely use it in the next version smile.gif
iceangel89
QUOTE (ilko_t @ Apr 22 2007, 01:59 AM) *
1. Format the USB stick, I used HP USB Format tool, because XP format was reported as incorrect in GRUB.
2. Install GRUB MBR on the stick, the quickest way I found is by GRUBINST_GUI for WIN
3. Get the latest GRUB4DOS and copy GRLDR to the USB root.

erm i didn't have a problem with windows formated NTFS. so i did not use HP Format Utility (or is it because i am using a internal HDD?)
QUOTE (ilko_t @ Apr 22 2007, 01:59 AM) *
Create MENU.LST in USB root
QUOTE
color black/cyan yellow/cyan
timeout 15
default 1
title Phase 1 WinXP Text Mode Setup
map --read-only (hd0) (hd1)
map --hook
root (hd1,0)
chainloader /ntldrstp
title Phase 2 WinXP GUI Mode Setup
map (hd1) (hd0)
map --hook
rootnoverify (hd0)
chainloader +1

This way the default entry is GUI mode, TXT mode must be selected manually. With these GUI entries XP can be installed and booted later from another partition on the hard drive, not only from the first.

for me the text mode works but the GUI didn't... the screen flashed and i am back to OS Selection... why is this so? i think is the last line? what does it does? "chainloader +1" and is there a GRUB4DOS documentation/manual?
QUOTE (ilko_t @ Apr 22 2007, 01:59 AM) *
4. Backup your current BOOT.INI and in the XP setup folder \I386 run
QUOTE
winnt32 /makelocalsource /noreboot
after it's finished restore BOOT.INI

whats this for? why do i need to backup boot.ini? and below? whats it for? edit WINNT.SIF & MIGRATE.INF. its for the Read-Only? but why read only for?
QUOTE (ilko_t @ Apr 22 2007, 01:59 AM) *
5. Copy two new folders in the USB stick root - $WIN_NT$.~BT and $WIN_NT$.~LS

6. In \$WIN_NT$.~BT modify
WINNT.SIF
QUOTE
[data]
msdosinitiated="1"
floppyless="1"
AutoPartition="0"
UseSignatures="no"
InstallDir="\WINDOWS"
winntupgrade="no"
...

and also this seem to remove my nLite unattended stuff?
ilko_t
Iceangel89, latest step-by-step guide is here:
http://www.msfn.org/board/boot_install_USB...636#entry659636

Latest batch file, which does 95% of the work is just a couple of posts above yours, think you can find it yourself smile.gif

From your post I see very little usable information, need to know what exactly you are trying to achieve, what's the installation media (why talking about internal drive and NTFS? woot.gif ), what version of Windows, how many partitions on the target hard drive, how many hard drives you have, SATA or ATA, and so on...

Backup of boot.ini WAS needed with the earlier guides, because winnt32.exe whit those parameters (in the early guides) adds an entry in the existing boot.ini so on next restart TXT setup is launched. With the latest batch file this is no longer needed.

To preserve NLite customization simply add /unattend:winnt.sif

winnt32 /makelocalsource /noreboot /unattend:winnt.sif

and don't forget to delete the whole unattended section after that. Applies again ONLY for the step-by-step guide, NO need to do that if using the batch file, which checks if winnt.sif is found, /unattend:winnt.sif is used in order to preserve customizations.

QUOTE
...but why read only for?

You really missed where all troubles come from when installing this way no.gif
Probably a little effort like reading at least pages 2 and 3 you will get why and what.
iceangel89
QUOTE
From your post I see very little usable information, need to know what exactly you are trying to achieve, what's the installation media (why talking about internal drive and NTFS?), what version of Windows, how many partitions on the target hard drive, how many hard drives you have, SATA or ATA, and so on...


i am trying to make an install of XP from a HDD, USB at first but since i think my external HDD adapter is not good, i plugged the HDD directly into the comp for now, making it internal... NTFS is so that the partition can be bigger (but it works). so install media is internal HDD (any diff to the process? for now it works, internally). Version of windows - XP Pro SP2 (nLited). number of partitions - 1 Main HDD, 3 NTFS partitions, on the "Temporary Internal" HDD, 2 NTFS partitions (1 for this, and another for Misc Storage)

and so it means Read Only is for USB problems which i escaped using an internal HDD? i think...

Thanks
ilko_t
The routine to install XP from USB flash drive does NOT work for now with USB hard drives, last 2 pages are all about that problem.
For your case you better read these threads:

http://www.911cd.net/forums//index.php?showtopic=16713
http://www.911cd.net/forums//index.php?showtopic=19745

Deletion of $win_nt$... folders is because they are considered as TEMPORARY, and as such SETUP deletes them on few stages when launched from them. This has nothing to do with USB, IDE, SATA...
These temp. folders are used when prepared by WINNT.EXE or WINNT32.EXE hard drive is started. M$ decided that when SETUP is launched from hard disk this must be one-off installation, and implemented it that way. I386 is used for CD drives and setup files detect install media.
Back to the temp. folders- if they are write protected or renamed when SETUP attempts to delete, them they survive ==> you can use the same prepared disk (usb flash drive) for another install. Basically during the posts here we learned how to invoke installation from new for XP SETUP media, how to trick it NOT to delete temp. files and folders, and how to fix the results of strange for SETUP environment (wrong boot.ini etc.).
I hope that clears a bit whats all about in this long thread.
happyusers
Hello to the community,
I tried the procedure given by ilko_t on april 21st. It is said 100% success for ATA. I have followed the tutorial line by line. The first stage (textsetup) from the stick went ok. But I didnt manage to reboot on HDD. I had a message "NTLDR missing". I tried with stick first through grub or hdd first, always the same message. I tried fiddling with boot.ini modifying hdr parameter but everything was useless. I think that the drive could have booted, it seems that, on another computer (I took it to format it) it could have booted.
I installed Win XP Pro sp2 on a Pavilion (512Mo 250 Go sempron 3400).
Would you have diagnostic or advices ?
Thanks very much.

PS : the DOS method went OK. The hdd booted on Win98 prompt and I ran Winnt. But how long it is : 3 or 4 hours!
ilko_t
@happyusers
You have used the very first guide, a lot has been improved since then, there is also a batch script preparing USB sticks, have you tried the last guide or the batch file? I'd rather use the batch file.

How many partitions you have on the destination hard drive? Were menu.lst and boot.ini amended accordingly?
Is your source on USB stick? Is it seen at bottom when TXT Setup lists hard drives to be installed on?
Is the message about missing NTLDR coming from Grub4Dos?
happyusers
To make things simple, I had only one partition on the destination drive. I think I have written boot.ini and menu.slt correctly. My sources were on the stick and I have not really seen if it was shown. I have to try again. I had noticed the script but thought tings were more under control if I did it by myself. I shall try it. I dont think the message came from grub because I tried both ways of booting, through grub on stick and directly on the destination drive and it was the same. NTDLR missing.
Is it possible that the drive boot when placed on another computer while not on the target computer?
jaclaz
"NTLDR is missing"
is an error message hardcoded in the bootsector of any partition formatted under 2K/XP/2003.
(if the "standard" english botsector is used)

So the error is generated long before BOOT.INI comes into play.

Forget for the moment anything about this thread and just:
1) Format the stick with the HP utility or petoUSB or any other method you use
2) Copy to the stick NTLDR, NTDETECT.COM and a BOOT.INI with at least two entries
3) Try booting from it

If it does, try again the method, using the latest tutorial and the batch file.

If it does not, post again, I'll try to help you in first booting part.

jaclaz
happyusers
Thank you Jaclaz.
In fact, I got the message (in french "NTLDR manque") when booting on the target drive not on the stick, just after textsetup phase. The stick boot was OK and the first phase of installation too.
According to what you say, that message is probably coded in the boot sector of my drive. Why does that bootloader complain when I boot from drive, I wonder. Is there any diagnostic I can run on the drive to understand what is going wrong?
Perheaps what you suggest for the stick would be applicable on the drive?
ilko_t
@happyusers

We could troubleshoot it, but I see no point to do it since a lot has been changed since that guide. NTLDR is missing most of the times it's not where it's expected to be. More interesting for us is why it was not there. My guesses:
1. USB stick was seen as fixed drive and boot files were (attempted to be) written there. That's why I asked you where was it in the list of available hard drives.
2. Grub4Dos didn't like your BIOS and mapping was wrong, try newer/older version. It happened to me already. Check for BIOS updates too.
For simplicity and compatibility in the latest batch file Grub4Dos is no longer used.
3. Anything else...

The batch file is open and customizable, I had no experience in batch scripts making it (wonder how it even worked laugh.gif ) but it's so simple so can barely call it script at all, wimb polished it a lot and there is nothing to mess with the other scripts used within (binifix.cmd and makeBS.cmd). So I suppose even if you have no experience with batch files you will see all the steps which it performs, and do them manually if you wish so. If you don't get something just ask.
I did not intend to write another guide, for now I am waiting a response in a few forums to get dummydisk.sys redone in the way we need it, then try to use it during TXT setup, test how it works and finally add comments to the BAT file, which can be used instead of a guide.

Regards,
ilko
happyusers
Hi all,
@jaclaz : I tried the script as you suggested. It is worse, the stick no longer boots. I dont know how to control stages of boot.
I have the message
"System disk invalid
I/O Error"
in french of course, my computer (HP s7705 is french).
I shall try the way you suggest, try to get a normal boot with boot.ini menu on the stick.
I am afraid I shall have to erase once again the wole staff on stick.
Is not there a method to control the content of the boot block on the stick and to repair it? I know it exists for mbr.
That's a pity to format a drive whose content is 99.99% good!

@ilko : I have used the batch usb_prep2. Is it the more recent? I shall try to check what it has done with the stick.
I come back soon.

First edit : I tried mbrwiz on the stick and found that the partition was not active. I toggled it and it seems to boot. We shall see further.
I reach the boot menu. I choose textsetup and have another error message : "Windows could not start the file system32\hal.dll is missing or corrupted".
ilko_t
@happyusers
That's the latest file, yes.
I believe something is wrong with the boot order, or USB stick is seen as fixed.

1. Could you attach these files from the root of papered USB stick with your next post:
BOOT.INI
BackupBS.ori
SETUPLDR.bs

2. What options in BIOS do you choose in order to boot from USB?
2.1 Do you have an option in BIOS boot menu to emulate USB-ZIP, USB-HDD etc. ?
2.2 Do you boot from USB entering a temporary boot menu, e.g. F12 and choose USB something?

3. Did you have any other USB mass storage devices attached? Card readers, digital camera, MP3 players, printer with card reader...?
4. What version of windows are you running while preparing USB stick?
5. Which tool did you use to make stick bootable?
happyusers
Hi ilko,
My BIOS is phoenix award bios 5.04. I have tries booting both ways, usb stick as first device without menu and through the bios menu (not f12 but Esc). In either case, I get the boot.ini menu and after having choosen textsetup, Win complains that it cannot find hal.dll.
I have no other USB device. Win is Win XP Pro SP2 and I have prepared the stick with HPUSBFW.exe.
Here is the boot.ini file you ask for.

[Boot Loader]
Timeout=10
Default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="GUI Mode Setup Windows XP" /FASTDETECT

C:\SETUPLDR.bs="TEXT Mode Setup Windows XP"

It seems that I cannot attach any other file than text files that way, the system hangs.

Edit : I tried uploading with another browser, I have a warning "upload failed, you are not permitted to upload this type of file (BOOT.INI BackupBS.ori SETUPLDR.bs). Sorry.
jaclaz
@happyusers
Try putting all files in a .zip archive.

jaclaz
happyusers
Thank you Jaclaz. Here are the files.
I was out for sunday, my experiments were delayed, no news.
PS : I cannot upload with Firefox, I have to run IE.
ilko_t
QUOTE (happyusers @ Sep 22 2007, 08:25 AM) *
...I get the boot.ini menu and after having choosen textsetup, Win complains that it cannot find hal.dll...
I am puzzled, bootsectors seems fine, however Jaclaz should confirm that.
The only reason I can see is that your USB stick is NOT getting C:\ or first HDD during boot. It could be seen as superfloppy or something, but not hard drive. This way NTLDR passes boot routine to wrong path, producing this "HAL.DLL is missing...." or "NTLDR is missing" with the old guide. .
Probably that's why the other method failed too.

You may try to update your BIOS from HP site, and test with USB Legacy Mode Support option in Advanced Menu.

We may try a few tests to confirm that.
Once the stick is prepared change BOOT.INI on it to :

CODE
[Boot Loader]
Timeout=10
Default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="GUI Mode  Setup Windows XP" /FASTDETECT
A:\SETUPLDR.bs="TEXT Mode Setup Windows XP 1"
C:\SETUPLDR.bs="TEXT Mode Setup Windows XP 2"
D:\SETUPLDR.bs="TEXT Mode Setup Windows XP 3"
E:\SETUPLDR.bs="TEXT Mode Setup Windows XP 4"


and see which option (1-4) will start Text Mode Setup.
If it doesn't start we may try Grub4Dos will report a marker file is, wich will be placed on USB stick, but thats for later.
happyusers
Hi Ilko and thank you for checking the files.
Concerning Bios version, my computer is quite recent (1 week) so I'am afraid I cannot find a newer Bios.
I think I noticed an option in advanced bios menu relative to USB Legacy mode but I have not investigated, I dont know well what it is. do you think it's worth toggling it?
For the test, I shall do it at night as soon as I am home.
Regards
Edit : I modified boot.ini as Ilko suggested. At first, I choose to boot from D: and Windows told it lacked some file. I then choose C: and Windows installation began. I dont know exactly what solved the point but it works. I have to come back to the previous situation in order to confirm the diagnostic.
ilko_t
QUOTE (happyusers @ Sep 24 2007, 11:01 AM) *
Edit : I modified boot.ini as Ilko suggested. At first, I choose to boot from D: and Windows told it lacked some file. I then choose C: and Windows installation began. I dont know exactly what solved the point but it works. I have to come back to the previous situation in order to confirm the diagnostic.
You must have changed something else, originally BOOT.INI was pointing to C:\SETUPLDR.bs too. Good that it worked though smile.gif
happyusers
I think the status of an USB device depends on its state at boot time : I had another experiment booting XP on the same computer from an USB hdd. The drive is recognized by the Bios only if the drive is switched off and on before switching the computer on. In any other case, the bus seems to be reset, the light of the drive turns off one second and the drive does not appear among bootable devices in the bios boot menu.
Perhaps its more or less analogous for USB stick and it happened to work once out of many times just because it was in the appropriate state to be recognized as bootable device.
Regards
ilko_t
Hi,
I believe all your troubles are with BIOS, once you get it solved you will have no problems with the guide or the batch file.
Your system is new, many systems are shipped with old BIOSes, give it a try on HP web site for a new BIOS, it may help.
Have you tried with other USB stick?

My old motherboard Abit AN7 was playing funny with USB boot- if on shutdown USB stick is not present it loses boot order, on next boot with USB stick plugged it boots from hard drive, have to reboot and change boot order back to USB stick first. Had to keep stick plugged all the time in order to keep boot order.

regards,
ilko
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.