Bootable XP USB?

A

Ape

Sorry if I gave the wrong impression here.

My MSDOS floppy, only boots into DOS. It has no other magical properties.

That I believe.
But once in there, I can run the setup application in the i386
folder, and start a WinXP installation. When you start a WinXP
installation, the first stage is "file copying", where the
files are moved from the install media, to the new C: partition.
Once that step is complete (and in this case, done while
DOS is running), the system can be rebooted and will then
start running from the contents of C:. Once it does so, it
continues with the installation, until all steps are finished.

I copied the content of my OS installation CD onto the USB. And then
tried an install of that OS, using its setup.exe. Quickly discovered
that the USB boots into DOS mode and that the OS setup.exe as well as
other executables are not executable in DOS.
Now what?

ApeMan
 
P

Paul

Ape said:
That I believe.


I copied the content of my OS installation CD onto the USB. And then
tried an install of that OS, using its setup.exe. Quickly discovered
that the USB boots into DOS mode and that the OS setup.exe as well as
other executables are not executable in DOS.
Now what?

ApeMan

Did you try "winnt.exe" from the i386 folder. (Use whatever
drive letter your i386 folder is on. In this example, mine was D: )

D: <--- change current working directory to D:
cd \ <--- remove any bogus path from D
cd i386 <--- Now, we'll be in D:\i386
winnt.exe <--- This will try to run D:\i386\winnt.exe
Winnt could be the DOS compatible one,
while winnt32.exe is probably not DOS worthy.
HTH,
Paul
 
A

Ape

Did you try "winnt.exe" from the i386 folder. (Use whatever
drive letter your i386 folder is on. In this example, mine was D: )

D: <--- change current working directory to D:
cd \ <--- remove any bogus path from D
cd i386 <--- Now, we'll be in D:\i386
winnt.exe <--- This will try to run D:\i386\winnt.exe
Winnt could be the DOS compatible one,
while winnt32.exe is probably not DOS worthy.
HTH,
Paul

Yes, but no luck. Needs some system setup to make it go - smartdrv,
mscdex, micron, etc. In an effort to do that, I now have an
autoexec,bat file that came from one of the google results I found for
making a bootable UDB. It contains:

@echo off
mscdex /d:Micron /m:10 /l:R
set cddrive=R:
call mouse.bat

I can't interpret what mscdex /d:Micron /m:10 /l:R means. Can you
interpret this line and if and what I need to make it work? Paul?

Should I download micron in some form? I can't find same.

I also have a config.sys file containing:

;DVD/CD-ROM/R/RW Boot Diskette
;created 12-01-98

;[common]
lastdrive=z
device=HIMEM.SYS /testmem:blush:ff
device=emm386.exe noems
;device=ramdrive.sys 1024 /e
dos=high,umb
files=60
buffers=30
stacks=9,256

[Menu]
menucolor=15,1
menuitem=SCSI,For systems with an Adaptec UW (SCSI) CD or DVD
menuitem=LVD,For systems with an Adaptec U2 (LVD) CD or DVD
menuitem=IDE,For systems with an IDE/Atapi CD or DVD (Default)
menudefault=IDE,0
;set menu default to IDE and by pass menu change "0" to = number of
seconds

[SCSI]
devicehigh=cdrom\aspi8dos.sys /d
devicehigh=cdrom\aspi8cd.sys /d:Micron
;set cdrom=Micron

[LVD]
device=cdrom\ASPI8U2.SYS /d:Micron
DEVICE=cdrom\ASPICD.SYS /D:Micron
;set cdrom=Micron

[IDE]
devicehigh=cdrom\oakcdrom.sys /d:Micron
;set cdrom=Micron

;[common]
SET ENDFLAG=1
;Flag to denote the end of the config.sys file.

I see 'micron' throughout it also. Maybe you could
interpret/sanitize/correct this config.sys file for me also?

If not, just say so, and I will struggle on further by myself in this
wasteland.

Thanks
ApeMan
 
P

Paul

Yes, but no luck. Needs some system setup to make it go - smartdrv,
mscdex, micron, etc. In an effort to do that, I now have an
autoexec,bat file that came from one of the google results I found for
making a bootable UDB. It contains:

@echo off
mscdex /d:Micron /m:10 /l:R
set cddrive=R:
call mouse.bat

I can't interpret what mscdex /d:Micron /m:10 /l:R means. Can you
interpret this line and if and what I need to make it work? Paul?

Should I download micron in some form? I can't find same.

I also have a config.sys file containing:

;DVD/CD-ROM/R/RW Boot Diskette
;created 12-01-98

;[common]
lastdrive=z
device=HIMEM.SYS /testmem:blush:ff
device=emm386.exe noems
;device=ramdrive.sys 1024 /e
dos=high,umb
files=60
buffers=30
stacks=9,256

[Menu]
menucolor=15,1
menuitem=SCSI,For systems with an Adaptec UW (SCSI) CD or DVD
menuitem=LVD,For systems with an Adaptec U2 (LVD) CD or DVD
menuitem=IDE,For systems with an IDE/Atapi CD or DVD (Default)
menudefault=IDE,0
;set menu default to IDE and by pass menu change "0" to = number of
seconds

[SCSI]
devicehigh=cdrom\aspi8dos.sys /d
devicehigh=cdrom\aspi8cd.sys /d:Micron
;set cdrom=Micron

[LVD]
device=cdrom\ASPI8U2.SYS /d:Micron
DEVICE=cdrom\ASPICD.SYS /D:Micron
;set cdrom=Micron

[IDE]
devicehigh=cdrom\oakcdrom.sys /d:Micron
;set cdrom=Micron

;[common]
SET ENDFLAG=1
;Flag to denote the end of the config.sys file.

I see 'micron' throughout it also. Maybe you could
interpret/sanitize/correct this config.sys file for me also?

If not, just say so, and I will struggle on further by myself in this
wasteland.

Thanks
ApeMan

This page has "mscdex" information. mscdex /d:Micron /m:10 /l:R

http://www.vfrazee.com/ms-dos/6.22/help/

MSCDEX /D:driver [/D:driver2... ] [/E] [/K] [/S] [/V] [/L:letter] [/M:number]

The MSCDEX command must include at least one /D switch. To install
additional CD-ROM device drivers, specify an additional /D switch for
each device driver.

/E Specifies that the CD-ROM driver be allowed to use expanded memory, if
available, to store sector buffers.

/K recognize CD-ROM volumes encoded in Kanji

/S Enables sharing of CD-ROM drives on MS-NET

/V Directs MSCDEX to display memory statistics

/L:letter Specifies the drive letter

/M:number Specifies the number of sector buffers.

My "CONFIG.SYS" file has this driver line

DEVICE?=XCDROM.SYS /D:MSCD001

while my "AUTOEXEC.BAT" file contains

mscdex /D:MSCD001 /L:R

which means the XCDROM driver loads first and "registers" MSCD001.
And then, the autoexec picks up the CDROM via the /D switch in mscdex.
You can make up any identifier you want, as long as the two statements
agree on the value. That's my guess as to how it works. The string
should remain at eight characters or less.

Your "Micron" identifier then, would be defined in CONFIG.SYS,
along with a CDROM driver. The "oakcdrom.sys" probably came with MSDOS.
The XCDROM.SYS I use, I got that off the net a number of years ago.

Do you actually need to put CDROM support in your MSDOS
floppy ? I didn't put it in mine, when installing WinXP.
My set of CDROM drivers, is for other occasions. When the
install started, my i386 folder was staged (already copied over)
on the FAT32 D: partition of my hard drive.

*******

There are different flavors of DOS. MSDOS has many releases,
and my copy for the floppy, came from Windows 98SE by doing a "sys"
command. That gave the three basic files. I'd copy things like oakcdrom.sys
off the Win98SE C: drive. But things like XCDROM.sys came off the network,
and that is third party code. More than one driver is needed, to help handle
a wide range of optical drives (you find out, when you test them).

If you're using FreeDOS, you'd want to check the FreeDOS site, to see
if they support FAT32. I expect they would.

When you get a later release of MSDOS, it has support for FAT32. Perhaps
if you go back far enough, it might be limited to FAT16 or FAT12 etc. You
need FAT32, to be able to handle a decent sized hard drive, for the install.
While they make an NTFS driver for MSDOS, the one I tried didn't support
long file names, and is useless for repair tasks. So if I was to install
WinXP again using the MSDOS floppy method, I'd still be preparing blank
FAT32 partitions for it to use during the installation.

*******

MSDOS has "Extended" and "Expanded" RAM, as well as the memory area
below 640K. If you want to run things like SMARTDRV, like I was
experimenting with, I used 32 megabytes of memory for the cache.
And that cannot come from below 640K, which means my floppy
has to define some kind of Extended or Expanded support. Same
would go for things like RAMDRIVEs. Typically, tools like Seagate
Seatools for DOS, specify a RAMDRIVE, as a container to hold their
uncompressed disk testing program. The RAMDRIVE allows a storage
device larger than a floppy to exist while MSDOS is running
(and without stealing space from any hard drives present).

I don't pretend to know all the nuances of Extended and Expanded.
I just tinkered with my setup, until it started working.

I don't think Extended or Expanded, is used to get those two
lines above, working for a CDROM. If you needed to access a CD,
chances are the driver can live in the 640K space.

I still think a basic MSDOS disk would work, as long as the
version of DOS supports FAT32. It just takes longer, if
you don't have SMARTDRV set up. Without SMARTDRV, it copies
a file every two or three seconds, rather than as fast as the
drive can go. The time is wasted, doing a "dir" over and
over again, and listing the 5000 files in i386 and finding
the one to copy. Something like that. Even SMARTDRV isn't
perfect, and every once in a while, the cache in memory
(32 megabytes worth) seems to get purged - then there is a
delay for a few seconds, while it does a "dir" and sees
all the files again. It can't seem to keep directory information
resident while the system is running.

*******

The MSDOS floppy is not the only way to do this. For example,
if you could find a way to put BartPE on a USB stick, that might
be another way to do it. At the time I installed WinXP, I didn't
even know about BartPE. It's another area you might research - I
don't know for sure whether it would work or not, but it is
another "Preboot Environment". Microsoft also has a six floppy
set, used for booting systems before installing, but that floppy
set probably couldn't easily be converted to a USB stick, and
even if you did, all that floppy set does, is eventually start
reading the install CDROM. I'm not sure you can even use it
to grab files of another kind of hard drive. And in any case,
the six floppy boot set from Microsoft, is only available for
WinXP SP1 or WinXP SP2 installation. When I checked, there was
no six floppy set for SP3, and when I tried the six floppy set for
SP2, it refuses to even take a sniff of my legit WinXP SP3 CD.
So I wouldn't even waste my time now, trying to find that
Microsoft web page again. It would be a waste of time.

*******

I'm using the fact that the "HP Formatter" for USB sticks,
comes with FreeDOS files, as proof that MSDOS can boot
from a USB stick.

*******

On my motherboard, I was getting hangs, until I adjusted
some range to not be used in the 640K space. It took many
reboots to define valid values for "X=" in this line from
CONFIG.SYS. Only my VIA chipset needed this. The Intel
chipset didn't seem to mind as much. I can't even remember
how I narrowed it down to this statement, as breaking things.
Perhaps that's why I put the "?" after each DEVICE call,
so I'd be able to see what line in the file was causing it
to get stuck. I think my floppy light just stayed on, when
it hit this line and bad values were present. Good fun.
I learned a lot, about rebooting... It's boring.

DEVICE?=EMM386.EXE NOEMS X=A000-CFFF

Paul
 
A

Ape

This page has "mscdex" information. mscdex /d:Micron /m:10 /l:R

http://www.vfrazee.com/ms-dos/6.22/help/

MSCDEX /D:driver [/D:driver2... ] [/E] [/K] [/S] [/V] [/L:letter] [/M:number]

The MSCDEX command must include at least one /D switch. To install
additional CD-ROM device drivers, specify an additional /D switch for
each device driver.

/E Specifies that the CD-ROM driver be allowed to use expanded memory, if
available, to store sector buffers.

/K recognize CD-ROM volumes encoded in Kanji

/S Enables sharing of CD-ROM drives on MS-NET

/V Directs MSCDEX to display memory statistics

/L:letter Specifies the drive letter

/M:number Specifies the number of sector buffers.

My "CONFIG.SYS" file has this driver line

DEVICE?=XCDROM.SYS /D:MSCD001

while my "AUTOEXEC.BAT" file contains

mscdex /D:MSCD001 /L:R

which means the XCDROM driver loads first and "registers" MSCD001.
And then, the autoexec picks up the CDROM via the /D switch in mscdex.
You can make up any identifier you want, as long as the two statements
agree on the value. That's my guess as to how it works. The string
should remain at eight characters or less.

Your "Micron" identifier then, would be defined in CONFIG.SYS,
along with a CDROM driver. The "oakcdrom.sys" probably came with MSDOS.
The XCDROM.SYS I use, I got that off the net a number of years ago.

Do you actually need to put CDROM support in your MSDOS
floppy ?

I wouldn't think so. I am not using a floppy. Just a USB flash drive
that I am trying to make bootable.

I didn't put it in mine, when installing WinXP.
My set of CDROM drivers, is for other occasions. When the
install started, my i386 folder was staged (already copied over)
on the FAT32 D: partition of my hard drive.

I already have my i386 folder already copied over onto the USB flash
drive.
*******

There are different flavors of DOS. MSDOS has many releases,
and my copy for the floppy, came from Windows 98SE by doing a "sys"
command. That gave the three basic files. I'd copy things like oakcdrom.sys
off the Win98SE C: drive. But things like XCDROM.sys came off the network,
and that is third party code. More than one driver is needed, to help handle
a wide range of optical drives (you find out, when you test them).

If you're using FreeDOS, you'd want to check the FreeDOS site, to see
if they support FAT32. I expect they would.

When you get a later release of MSDOS, it has support for FAT32. Perhaps
if you go back far enough, it might be limited to FAT16 or FAT12 etc. You
need FAT32, to be able to handle a decent sized hard drive, for the install.
While they make an NTFS driver for MSDOS, the one I tried didn't support
long file names, and is useless for repair tasks. So if I was to install
WinXP again using the MSDOS floppy method, I'd still be preparing blank
FAT32 partitions for it to use during the installation.

Actually, before I copied any autoexec.bat or config.sys file to the
USB flash drive, I first formatted it, and loaded files on it, using
HP USB Disk Storage Format Tool. Then I copied the i386 folder to the
flash drive from the XP install CD. Then I tried a few autoexec.bat
and config.sys files from some old W98 installation floppies that have
from the past. This desktop does NOT have a floppy drive, so I did
this last copy on another desktop that does, then used my LAN to
convey them to this desktop and its flash drive.

Today, I looked, and the flash drive's properties says FAT32.
*******

MSDOS has "Extended" and "Expanded" RAM, as well as the memory area
below 640K. If you want to run things like SMARTDRV, like I was
experimenting with, I used 32 megabytes of memory for the cache.
And that cannot come from below 640K, which means my floppy
has to define some kind of Extended or Expanded support. Same
would go for things like RAMDRIVEs. Typically, tools like Seagate
Seatools for DOS, specify a RAMDRIVE, as a container to hold their
uncompressed disk testing program. The RAMDRIVE allows a storage
device larger than a floppy to exist while MSDOS is running
(and without stealing space from any hard drives present).

I don't pretend to know all the nuances of Extended and Expanded.
I just tinkered with my setup, until it started working.

I don't think Extended or Expanded, is used to get those two
lines above, working for a CDROM. If you needed to access a CD,
chances are the driver can live in the 640K space.

As I said, I don't. At least not until XP is finished being
installed.
I still think a basic MSDOS disk would work, as long as the
version of DOS supports FAT32. It just takes longer, if
you don't have SMARTDRV set up. Without SMARTDRV, it copies
a file every two or three seconds, rather than as fast as the
drive can go. The time is wasted, doing a "dir" over and
over again, and listing the 5000 files in i386 and finding
the one to copy. Something like that. Even SMARTDRV isn't
perfect, and every once in a while, the cache in memory
(32 megabytes worth) seems to get purged - then there is a
delay for a few seconds, while it does a "dir" and sees
all the files again. It can't seem to keep directory information
resident while the system is running.

I remember reading on the web of a user who tried all this without
SMARTDRV, and it was unworkably slow, to the point where he finally
quit, because it hung. I guess I still could try not using SMARTDRV.

*******

The MSDOS floppy is not the only way to do this. For example,
if you could find a way to put BartPE on a USB stick, that might
be another way to do it. At the time I installed WinXP, I didn't
even know about BartPE. It's another area you might research - I
don't know for sure whether it would work or not, but it is
another "Preboot Environment". Microsoft also has a six floppy
set, used for booting systems before installing, but that floppy
set probably couldn't easily be converted to a USB stick, and
even if you did, all that floppy set does, is eventually start
reading the install CDROM. I'm not sure you can even use it
to grab files of another kind of hard drive. And in any case,
the six floppy boot set from Microsoft, is only available for
WinXP SP1 or WinXP SP2 installation. When I checked, there was
no six floppy set for SP3, and when I tried the six floppy set for
SP2, it refuses to even take a sniff of my legit WinXP SP3 CD.
So I wouldn't even waste my time now, trying to find that
Microsoft web page again. It would be a waste of time.

I remember a 6 floppy set somewhere in my past. Without a floppy
drive, I think that would be of no use anyway.
*******

I'm using the fact that the "HP Formatter" for USB sticks,
comes with FreeDOS files, as proof that MSDOS can boot
from a USB stick.

*******

On my motherboard, I was getting hangs, until I adjusted
some range to not be used in the 640K space. It took many
reboots to define valid values for "X=" in this line from
CONFIG.SYS. Only my VIA chipset needed this. The Intel
chipset didn't seem to mind as much. I can't even remember
how I narrowed it down to this statement, as breaking things.
Perhaps that's why I put the "?" after each DEVICE call,
so I'd be able to see what line in the file was causing it
to get stuck. I think my floppy light just stayed on, when
it hit this line and bad values were present. Good fun.
I learned a lot, about rebooting... It's boring.

DEVICE?=EMM386.EXE NOEMS X=A000-CFFF

Paul

Thanks again Paul

ApeMan
 
A

Ape

Paul -

I decided to try a different route, and used PEBUILDER3110A's PE2USB.
It did not work for me. The result USB would not boot. It contains:

bartpe.iso
ntldr
ntdetect.com
winnt.slf


Does that seem right to you?

The 145MB iso file contains the i386 folder and other folders/files.
Shouldn't it be decompressed?

Not sure what to try next.

ApeMan
 
A

Ape

Paul -

I decided to try a different route, and used PEBUILDER3110A's PE2USB.
It did not work for me. The result USB would not boot. It contains:

bartpe.iso
ntldr
ntdetect.com
winnt.slf


Does that seem right to you?

The 145MB iso file contains the i386 folder and other folders/files.
Shouldn't it be decompressed?

Not sure what to try next.

ApeMan

I decompressed the ISO file and copied all of the files/folders to the
USB. Same result - no boot.

I am cursed I guess.

ApeMan
 
P

Paul

Ape said:
I decompressed the ISO file and copied all of the files/folders to the
USB. Same result - no boot.

I am cursed I guess.

ApeMan

I've still been working on your problem. Just a few false starts,
like a tool that claimed to do this "easily", and when I loaded it
into a VM for safety, it said basically "sorry, you need WinXP or later
to run this". And I wasted time setting up an environment to run it
and everything (just not WinXP).

Still, I did have some success a few minutes ago. Basically, using this
method, I was able to get the WinXP installer screen to show up on
my computer. (I didn't actually do the install, but stopped at that
point and did a control-alt-delete to reboot.)

I decided on this method, as my own idea, rather than off some
web site. I was thinking about "what other bootable things do
I have around here", and I remembered the Windows 7 recovery CD.
But rather than start with that, I decided to use a Windows 7 installer
DVD instead. The installer DVD, also has the recovery features of the
smaller recovery CD. The recovery CD, if you download it off the
net (via BitTorrent for example), is around 200MB. On the other hand,
if you download a Microsoft Windows 7 SP1 installer DVD, that comes
from an official download site (digitalriver for example, which is
a company that sells software for download). Then, the download is
around 3GB (sizes listed below). The download links for this purpose,
are open, and not gated by credit cards and the like. Links have been
listed before, but Microsoft tries to have the links deleted, thinking that
somehow this will prevent people from finding them.

I have two images I got, using this method. (These are no good without
a license key, so they're otherwise worthless. But I store things like
this, for reference purposes, taking them apart to see what files are
in there, and so on.) I selected these, to be the closest match to
the software on my laptop. My laptop is actually the x64 install, but
there are reasons to keep the other one, which may become apparent in
a moment. If my laptop drive dies some day, these images along with
the key on the label on the laptop, may allow me to reinstall.

Original name = X17-24209.iso
Name on my hard drive = X17-24209__64-bit Windows 7 Home Premium x64 SP1 (bootable).iso
3,319,478,272 bytes MD5sum = 971843a457b6e0db0af61258cbe7256a

Original name = X17-24208.iso
Name on my hard drive = X17-24208__32-bit Windows 7 Home Premium x86 SP1 (bootable).iso
2,563,039,232 bytes MD5sum = c5bb99b2f1a9e7a5b4fbc6e3eff70882

Now, the other tool, is also part of the software download experience
(credit card software purchase, download only model). This tool
converts the ISO9660 file you download from digitalriver or elsewhere,
into a USB stick.

Windows7-USB-DVD-tool.exe
2,721,168 bytes ND5sum = af911be206423bf440ea9d4df075a632

You should be able to get that tool, here.

http://www.microsoftstore.com/store/msstore/html/pbPage.Help_Win7_usbdvd_dwnTool

Now, that is one strange tool, in that it doesn't install in the
Program Files folder. It installs itself in the Documents and Settings tree.

The tool has one downfall. To make the USB stick bootable, it uses
the utility "bootsect.exe" (available on Windows 7 install DVDs or
on a Windows 7 computer). There is a copy of this, inside X17-24208.iso.
I think the tool extracts bootsect.exe when it needs to use the tool,
instead of having a copy of bootsect accompanying the tool download.
This is pretty stupid. The thing is, on my WinXP machine, which is 32 bit,
only a 32 bit version of bootsect.exe is going to run. If I were to
run the "Windows7-USB-DVD-tool" and feed it "X17-24209.iso", step 4
will fail and the USB stick won't be bootable. That's because the
64 bit version of bootsect.exe it extracts, won't run in WinXP (my machine).

This is why, for this experiment, I used the X17-24208.iso file, knowing
the limitations of the Windows7-USB-DVD-tool.exe tool. Both of them
are 32 bit and agree with my 32 bit OS, so the bootsect.exe is successfully
(temporarily) extracted and run. There is nothing particularly magic about
this - if you had a copy of a bootsect from some Windows 7 disc, you could
manually do the bootsect step. The parameters you pass to bootsect,
aren't that tricky.

OK, you run the tool and feed it the X17-24208.iso. It copies the
contents of the ISO, onto the USB stick, then as step 4, it
runs bootsect and finishes the job. The progress bar will be
green in color if it works, or sorta orange if it fails.

Now we have a USB stick that boots. I used my 8GB flash, and I think
the last time I checked, it used about 2.4GB or so of it.

Next step, is to just copy the i386 folder from the WinXP CD, onto
the newly minted USB stick, on the top level.

So this recipe has annoyingly large downloads, but simple execution.

When I'm ready to boot that, I press F8 on my Asus motherboard, to
bring up the BIOS popup boot menu, and in there, I can select the
USB key to boot from.

OK, now you're ready to install WinXP :)

When you boot the USB stick, it looks like this. Humor it, and
pretend to be installing Windows 7. Click the Next button.

http://cloud.addictivetips.com/wp-content/uploads/2009/05/windows7installscreenboot.jpg

On the next screen, it says "Install Now", but you don't want to do that.
In the lower left hand corner, is a "Repair your computer".

In your case, with no Vista or Win7 OS present, the menu here will be
empty. Don't panic. It takes time for the scan to check for these
OSes, and if you have disks with a lot of files, it can take several
minutes. Click the upper button "Use recovery tools..." when it
lets you.

http://cdn.nirmaltv.com/images/SystemRecovery.png

OK, this is where it pays off. Finally, the recovery menu.
Select "Command Prompt". This looks a lot like MSDOS (hehehe).
But it is not actually the same thing. You'll see how that
makes a slight difference in a moment.

http://cdn.nirmaltv.com/images/Recoverytool.png

The next window (not shown), is an MSDOS prompt. You'll
be sitting in a current working directory of "X:". I think
that is a ramdisk based partition, with the recovery environment in it.

Now comes the fun part. The i386 folder you copied onto the USB flash,
is not in X: ! It is in some other partition letter. I had to sequentially
try partitions, until I found it, like this.

c:
dir i386
d:
dir i386
...
k:
dir i386

I actually had to go all the way up to the letter k: , before I found
the i386 folder with the WinXP files in it. And that's because my machine
has eight other drive letters on two hard drives. (To aid in your search,
you could dump a file with a name like "PICKME.TXT" into the USB
stick, to make it easier to recognize the correct drive letter to use.
You'd do "dir PICKME.txt" until it found a copy.

Once I found K:, the rest was simple

k:
cd \
cd i386
winnt32.exe

Notice, in this case, we use winnt32.exe instead of winnt.exe.
The winnt.exe is for "true DOS, non 32 bit" environments,
while the winnt32.exe is for 32 bit environments. Apparently
the Windows 7 recovery thing is 32 bit.

Now, I'm looking at a WinXP installer screen.

I stopped at this point and moved on.

Good luck,
Paul
 
A

Ape

\
Now, I'm looking at a WinXP installer screen.

I stopped at this point and moved on.

Good luck,
Paul

Your reply greeted me this morning. Upon my first read, all I can say
right now is 'Holy Mackerel Annie!'.

You sure did a lot of work - I appreciate it. I will try to digest
and apply what you said and did. Thanks.

ApeMan
 
P

Paul

Ape said:
\

Your reply greeted me this morning. Upon my first read, all I can say
right now is 'Holy Mackerel Annie!'.

You sure did a lot of work - I appreciate it. I will try to digest
and apply what you said and did. Thanks.

ApeMan

I did some more testing, and while the WinXP installer screen
comes up OK, things don't work normally after that. I hope
you haven't wasted to much time on this.

What I'm finding, is the USB key is being treated as if it's
an existing OS installation. My WinXP OEM CD is not supposed to
"upgrade" a computer, only "clean install".

I think normally, what would happen, is a $WIN_NT$.~BT and $WIN_NT$.~LS
folders are created on the target partition. One is a boot environment,
and the other has the (copied) install files. When I tried to
use the USB key with the 3GB of stuff on it, one of the folders
went to the target partition, the other ended up on the USB key!

On a reboot, the USB key ends up with an additional boot menu
item (something about "WinXP Setup"). This looked like a positive
thing - I was thinking, if I tried to install from that, that is
very close to what an install CD would do. But if I try that,
I end up stuck in a "loop". The target disk won't boot, and
using the USB key, it does the first stage of installation
again (which I don't want).

*******

One reason I tried this route, is because I could see how the
BartPE idea wasn't going to work out. There would be a
conflict, between the i386 folder BartPE uses, and the i386 folder
we'd need for a WinXP install. They can't be dumped into the same
folder. And to get around that, I'd need to figure out a way to
create a second partition within the BartPE RAMDisk or the like.
And even if I did that, there is also a danger the drive letters
would end up wrong for it to work anyway (sorta like the mess
the method above ends up in).

Microsoft makes tools like "WAIK", and there are several versions
released over the years. The tutorial I saw on this, looked
pretty complicated, and I didn't immediately see how this
tool would result in a usable USB key. But it's a tool that
IT people use.

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=10333

I've got some more experiments to try, but for the time being,
if you haven't wasted the time getting the DVD image, don't bother.
To me, I don't see how I can whip that thing into shape.
If I have more positive results, I'll post back.

One reason the MSDOS floppy works (i.e. the install I did to get
this machine running), is because it doesn't have a "WINDOWS" folder,
and so the installer doesn't freak out thinking there is already a
version of Windows on the machine. I suspect that's why the USB key
is copying one of the two temp folders, into the wrong partition.
(And in case you're thinking "just move the folder where they need to
go", I'm not convinced the processing of the files in there, completely
properly. The boot loader is looking for HAL.dll for example, and the
only file I can find is HAL.dl_ which is the compressed version of
HAL.dll. So whatever the installer was doing when it exited, it
didn't finish.)

Paul
 
A

Ape

I did some more testing, and while the WinXP installer screen
comes up OK, things don't work normally after that. I hope
you haven't wasted to much time on this.

What I'm finding, is the USB key is being treated as if it's
an existing OS installation. My WinXP OEM CD is not supposed to
"upgrade" a computer, only "clean install".

I think normally, what would happen, is a $WIN_NT$.~BT and $WIN_NT$.~LS
folders are created on the target partition. One is a boot environment,
and the other has the (copied) install files. When I tried to
use the USB key with the 3GB of stuff on it, one of the folders
went to the target partition, the other ended up on the USB key!

On a reboot, the USB key ends up with an additional boot menu
item (something about "WinXP Setup"). This looked like a positive
thing - I was thinking, if I tried to install from that, that is
very close to what an install CD would do. But if I try that,
I end up stuck in a "loop". The target disk won't boot, and
using the USB key, it does the first stage of installation
again (which I don't want).

*******

One reason I tried this route, is because I could see how the
BartPE idea wasn't going to work out. There would be a
conflict, between the i386 folder BartPE uses, and the i386 folder
we'd need for a WinXP install. They can't be dumped into the same
folder. And to get around that, I'd need to figure out a way to
create a second partition within the BartPE RAMDisk or the like.
And even if I did that, there is also a danger the drive letters
would end up wrong for it to work anyway (sorta like the mess
the method above ends up in).

Microsoft makes tools like "WAIK", and there are several versions
released over the years. The tutorial I saw on this, looked
pretty complicated, and I didn't immediately see how this
tool would result in a usable USB key. But it's a tool that
IT people use.

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=10333

I've got some more experiments to try, but for the time being,
if you haven't wasted the time getting the DVD image, don't bother.
To me, I don't see how I can whip that thing into shape.
If I have more positive results, I'll post back.

One reason the MSDOS floppy works (i.e. the install I did to get
this machine running), is because it doesn't have a "WINDOWS" folder,
and so the installer doesn't freak out thinking there is already a
version of Windows on the machine. I suspect that's why the USB key
is copying one of the two temp folders, into the wrong partition.
(And in case you're thinking "just move the folder where they need to
go", I'm not convinced the processing of the files in there, completely
properly. The boot loader is looking for HAL.dll for example, and the
only file I can find is HAL.dl_ which is the compressed version of
HAL.dll. So whatever the installer was doing when it exited, it
didn't finish.)

Paul


Gotcha! Thanks again.

I read somewhere a suggestion that the fact the flash drive is
'removable' is the problem. Making the drive non-removable was the
solution. There apparently is a bit that can be reset to accomplish
that. I tried that with some offered software, but did not succeed.

Did you ever try that?

Ape Man
 
P

Paul

Ape said:
Gotcha! Thanks again.

I read somewhere a suggestion that the fact the flash drive is
'removable' is the problem. Making the drive non-removable was the
solution. There apparently is a bit that can be reset to accomplish
that. I tried that with some offered software, but did not succeed.

Did you ever try that?

Ape Man

At the current time, I'm not looking to that to solve the problem.
It's possible the "removable bit" software works with some USB sticks.
But be aware, that at least one utility of that type (modify settings in USB
controller chip of USB key) can trash the USB key and ruin it!
And I only own two USB keys, so that's not high on my "experiments list" :)
If I had a utility that would restore the USB key "to factory",
I wouldn't mind doing such an experiment. But some of
these experiments "end in tears". And with only two USB keys
here, I have to be careful. (One holds my Ubuntu OS, the other
is used for experiments.)

At the rate I'm going, I may have to look into FreeDOS again for a
USB key.

And don't worry, I love a challenge. The only reason it took me this
long to test the damn 3GB USB key, is I had to dig up a hard drive
to use for installation (do a backup, so I'd have a clean one).
I have so many half-finished experiments around here, there
aren't any clean hard drives.

Paul
 
A

Ape

At the current time, I'm not looking to that to solve the problem.
It's possible the "removable bit" software works with some USB sticks.
But be aware, that at least one utility of that type (modify settings in USB
controller chip of USB key) can trash the USB key and ruin it!
And I only own two USB keys, so that's not high on my "experiments list" :)
If I had a utility that would restore the USB key "to factory",
I wouldn't mind doing such an experiment. But some of
these experiments "end in tears". And with only two USB keys
here, I have to be careful. (One holds my Ubuntu OS, the other
is used for experiments.)

At the rate I'm going, I may have to look into FreeDOS again for a
USB key.

And don't worry, I love a challenge. The only reason it took me this
long to test the damn 3GB USB key, is I had to dig up a hard drive
to use for installation (do a backup, so I'd have a clean one).
I have so many half-finished experiments around here, there
aren't any clean hard drives.

Paul

Luckily I have many extra hard drives in my closet that I have picked
up over the years. Also I bought an 8GB 'key' so that I then could
reserve my 1GB 'key' for experimenting with this bootable USB
exercise. Still, though, I am disappointed and surprised that this
simple and seemingly highly-desirable capability is such a dog that
has apparently not been solved yet and may never be.

It only occurred to me because when I went to use a copy of my
original system install disk I made for safety, it had went bad just
from sitting on a shelf. I am afraid to use my original install disk
very much, but have done so, with my fingers crossed. So far that at
least has worked. Seems every so often I need to do a fresh install
because of a virus hit or other crash. Thank God for backups.

Have you noticed how some web sites purporting to have solved this USB
thing are no longer on the air because of copyright infringement
fears?
I guess that is a consideration.

Ape Man
 
P

Paul

Ape said:
I remember reading that.

ApeMan

Well, this project is just like the weather. The status changes every day :)

I finally figured out, why the recipe wasn't working. This
is a summary of what would be required.

Materials:

1) Netbook you want to put WiNXP on.
2) USB key 4GB or larger (uses about 3.3GB space).

First, the hard part, or rather, the part that was broken previously.
When you do an "MSDOS style" WinXP install, you offer a prepared partition
for the copying of files. The regular install method, using the WinXP CD,
offers to partition the disk for you. And this is a key difference between
the two procedures. In terms of getting the damn thing to boot, there
is a big difference between the two procedures. Using the CD to
do the installation, does much more of the grunt work. The MSDOS
method (or equivalent), is much less complete.

With the MSDOS method, the onus is on the user to prepare the hard drive.

The best method I can see at the moment, for preparing the netbook hard
drive in the appropriate manner, is to remove the drive from the netbook
and prepare it in another computer. This is a summary of the necessary conditions.

1) Assume drive is completely empty. Or, we're going to make it that way.
2) Connect drive to a desktop computer (either SATA port or IDE port as
appropriate).
3) Open Disk Management. Delete all the partitions that used to be on there.
4) Create a new partition. For my experiment, I made the partition 10GB,
of which about 3.3GB was used by the time I was finished. Pick any
size you feel is appropriate. For my own usage, the value would be 70GB or so.
5) The partition can be formatted FAT32. At least, that's what I used for
my experiment. I don't think it would hurt, if in fact you used NTFS.
Normally, the MSDOS method wouldn't allow FAT32 (i.e. if you used a
Win98 MSDOS floppy). But since we're using a Win7 environment for this
job, NTFS is supported.
6) OK, so we've created a 10GB partition and formatted it FAT32.
The boot flag must be set on the partition as well. If using an
application like "diskpart", this would be the "active" command,
applied to a selected partition. Only one partition on a drive,
is supposed to have the boot flag set, max. Physically, you
can actually set more than one, but that would be illogical.
7) In addition to being "active", the MBR (sector 0) must be valid.
Since the hard drive is slaved to a working desktop at the moment,
we use the WinXP "fixmbr" command, to load WinXP boot code in there.
If using the USB key with the Windows 7 command prompt, you
can use "bootsect /nt52 k:", on the assumption the partition letter
happened to be k:. The drive letter is intended to get the command,
"pointed at the correct disk". The command doesn't actually touch k:
in this case, but fiddles sector 0 of the drive that k: partition
lives on. So the fixmbr does have an equivalent command
you could do from the Windows 7 command prompt. Step (7) as a result,
isn't a killer issue.
8) This step is the hard part. And this one has defeated me before.
The new C: partition, needs a partition boot sector. Using the
WinXP CD and the recovery console (command prompt), you can do this
with a "fixboot c:" command. This writes a couple sectors near the
origin of C:, and this code is different than the code in the MBR.
Unfortunately, I don't know of a way to do this step, from the
Windows 7 command prompt (so it could be done with the USB key).
You may be able to copy the sectors from another WinXP installation,
but an article on the web indicates it would need to be hacked with
a hex editor, to "fix it up". It's not completely static information,
which is why there aren't a good selection of tools for the job.

My problem before, when I reported the method wasn't working, was
that I couldn't get the damn thing to boot, after the files were
copied. So what I tried was to do the "tried and true" CDROM installation
of WinXP to the completely blank hard drive. This sets up a FAT32
partition, marks it active with the boot flag, loads a valid MBR,
loads the partition boot sector, basically does all the disk stuff.
Now, when the installation was finished, I deleted all the files
from C:. But just deleting the files, doesn't ruin any of the
other ingredients (boot flag, MBR, PBR). (If I had formatted C:
at this point, I would have ruined it, and would have to start over
again. Once some procedure puts the partition boot sectors on,
you can't format it again.)

Now, using the empty C: partition, with it's valid infrastructure,
I again tried to use the USB key. And it worked. After the file
copy step, the hard drive booted and the thing took off.

So now, assuming step 8 got completed properly, we carry on.

9) Move hard drive back into the netbook.
10) Download X17-24208.iso from digitalriver or elsewhere.
11) Download Windows7-USB-DVD-tool.exe from microsoftstore.
12) Using the Windows7-USB-DVD-tool, copy the X17-24208.iso
to the USB key. This will erase the key, and prepare it.
13) Once the USB key is loaded, there will be about 2.5GB of files in place.
Now, copy the i386 folder from the WinXP CD to the USB key
at the top level. Now we're up around 3.3GB or so.
14) Now the USB key is ready. Remove the USB key from the desktop
and take it over to the netbook. Boot the USB key on the netbook.
15) Pretend to install WIndows 7 from the USB key. Click next.
On the next page, select "repair", as I mentioned before.
Once you get to the menu with the five items, select the
Windows 7 recovery console "command prompt".
16) At this point, your storage partitions are

c: (blank FAT32 on hard drive. This is the only hard drive partition
There are no files on c: yet)
d: This is the USB key, copied file area. d: has d:\i386
x: This is a RAM drive used by Microsoft, to boot the environment

Now, in the command prompt we can do

d:
cd \
cd i386
winnt32.exe /makelocalsource /syspart:c: /tempdrive:c: /s:. /debug4:debug.log

That will cause the WinXP installation file copy stage to start.
This should move pretty rapidly (works better than SMARTDRV by 10x!)

The installation seems to stop prematurely, and perhaps it simply doesn't
know how to request a reboot in this environment.

The "/debug4:debug.log" portion of the above command, is optional.
I used it, to see if the process was throwing any errors, and it wasn't.
So you don't really need that portion. One of the other portions,
is to copy as many files as possible to the hard drive, to make
it self sufficient. Note that the winnt32 doesn't have a "help"
option, and I eventually tracked down the command line options on
the web.

17) Now, exit the Windows 7 command prompt, and request a reboot from
the window underneath.

18) Now, on the next reboot, you can select booting from the netbook
hard drive, You don't need the USB key at this point. On my computer,
I enter the BIOS popup boot menu, and change USB peripherals at that
point, before selecting the boot device I want. When I select the
hard drive to boot from, the WinXP installation will continue, using
the 6000+ files it copied over. There will be two temporary directories
on C:, a small one with boot files, a large one containing the 6000
files for installation of the C:\WINDOWS folder.

19) Once all this stuff is finished, eventually you'll reboot, and will be
in the WinXP desktop.

So the missing bit here, is the "fixboot c:", to make c: support booting.
Above, I propose doing this by moving the laptop drive to a desktop, and
do the initial prep there. But if you're a glutton for punishment,
you could build BartPE, do pe2usb procedure, boot the USB key while BartPE
is on it, open a command prompt from BartPE, and issue the diskpart, fixmbr,
and fixboot commands from there. I did not test this idea, because frankly,
I'm exhausted :)

HTH,
Paul
 
A

Ape

Well, this project is just like the weather. The status changes every day :)

I finally figured out, why the recipe wasn't working. This
is a summary of what would be required.

Materials:

1) Netbook you want to put WiNXP on.

Not having a netbook or a laptop with a hard drive compatible with
desktop IDE or SATA, I am using a scrap IDE hard drive on a desktop. I
know I can selectively boot to that drive if I ever get it to be
bootable and usable. I have used multi boot before (via boot.ini
and/or BIOS boot order).
2) USB key 4GB or larger (uses about 3.3GB space).

My key is a 8GB SanDisk, as yet blank.
First, the hard part, or rather, the part that was broken previously.
When you do an "MSDOS style" WinXP install, you offer a prepared partition
for the copying of files. The regular install method, using the WinXP CD,
offers to partition the disk for you. And this is a key difference between
the two procedures. In terms of getting the damn thing to boot, there
is a big difference between the two procedures. Using the CD to
do the installation, does much more of the grunt work. The MSDOS
method (or equivalent), is much less complete.

With the MSDOS method, the onus is on the user to prepare the hard drive.

The best method I can see at the moment, for preparing the netbook hard
drive in the appropriate manner, is to remove the drive from the netbook
and prepare it in another computer. This is a summary of the necessary conditions.

1) Assume drive is completely empty. Or, we're going to make it that way.
2) Connect drive to a desktop computer (either SATA port or IDE port as
appropriate).
3) Open Disk Management. Delete all the partitions that used to be on there.
4) Create a new partition. For my experiment, I made the partition 10GB,
of which about 3.3GB was used by the time I was finished. Pick any
size you feel is appropriate. For my own usage, the value would be 70GB or so.
5) The partition can be formatted FAT32. At least, that's what I used for
my experiment. I don't think it would hurt, if in fact you used NTFS.
Normally, the MSDOS method wouldn't allow FAT32 (i.e. if you used a
Win98 MSDOS floppy). But since we're using a Win7 environment for this
job, NTFS is supported.
6) OK, so we've created a 10GB partition and formatted it FAT32.
The boot flag must be set on the partition as well. If using an
application like "diskpart", this would be the "active" command,
applied to a selected partition. Only one partition on a drive,
is supposed to have the boot flag set, max. Physically, you
can actually set more than one, but that would be illogical.
7) In addition to being "active", the MBR (sector 0) must be valid.
Since the hard drive is slaved to a working desktop at the moment,
we use the WinXP "fixmbr" command, to load WinXP boot code in there.
If using the USB key with the Windows 7 command prompt, you
can use "bootsect /nt52 k:", on the assumption the partition letter
happened to be k:. The drive letter is intended to get the command,
"pointed at the correct disk". The command doesn't actually touch k:
in this case, but fiddles sector 0 of the drive that k: partition
lives on. So the fixmbr does have an equivalent command
you could do from the Windows 7 command prompt. Step (7) as a result,
isn't a killer issue.
8) This step is the hard part. And this one has defeated me before.
The new C: partition, needs a partition boot sector. Using the
WinXP CD and the recovery console (command prompt), you can do this
with a "fixboot c:" command. This writes a couple sectors near the
origin of C:, and this code is different than the code in the MBR.
Unfortunately, I don't know of a way to do this step, from the
Windows 7 command prompt (so it could be done with the USB key).
You may be able to copy the sectors from another WinXP installation,
but an article on the web indicates it would need to be hacked with
a hex editor, to "fix it up". It's not completely static information,
which is why there aren't a good selection of tools for the job.

I reached this point. I used an 80GB IDE drive that I partitioned
into 10GB and 70GB, the first formatted FAT32, the second formatted
NTFS. I created a recovery console to enable me to execute the
fixboot e: command, which seemed to go okay.

Not sure what to do now. I presume I have to some installing on my
SanDisk USB key. Dumbly, I have to ask - what do I do now?
My problem before, when I reported the method wasn't working, was
that I couldn't get the damn thing to boot, after the files were
copied. So what I tried was to do the "tried and true" CDROM installation
of WinXP to the completely blank hard drive. This sets up a FAT32
partition, marks it active with the boot flag, loads a valid MBR,
loads the partition boot sector, basically does all the disk stuff.
Now, when the installation was finished, I deleted all the files
from C:. But just deleting the files, doesn't ruin any of the
other ingredients (boot flag, MBR, PBR). (If I had formatted C:
at this point, I would have ruined it, and would have to start over
again. Once some procedure puts the partition boot sectors on,
you can't format it again.)

I am pretty sure I could do this too, but would like to continue from
my above. IOW, I need to do something to my key. Suggestion?

Thanks

ApeMan
 
P

Paul

Ape said:
4) Create a new [single] partition. I made the partition 10GB [There should only be one partition on the disk, for the USB key to copy to]
5) The partition can be formatted FAT32.
6) "diskpart", [set boot flag with "active"]
7) "fixmbr"
8) "fixboot"
I reached this point. I used an 80GB IDE drive that I partitioned
into 10GB and 70GB, the first formatted FAT32, the second formatted
NTFS. I created a recovery console to enable me to execute the
fixboot e: command, which seemed to go okay.

Not sure what to do now. I presume I have to some installing on my
SanDisk USB key. Dumbly, I have to ask - what do I do now?

If you're trying to do this on a desktop, where a partition is already
being used to boot the computer, and your OS install is an "OEM" type,
the installer may complain, as it will see multiple partitions. It might
even attempt to start copying the install files, into the current C:.

The "fixmbr" and "fixboot", can be run from a WinXP CD, but note that
the availability of such on the target machine, implies we don't need
a USB key. You can fixmbr and fixboot on your spare machine, then
carry a drive to the other machine that only has USB ports, and then
use the USB key to do the installation.

If you have an *existing* OS on the machine, deleting the file contents
of C: in preparation for this procedure, might have been an option, but
be aware that the "fixboot" and "fixmbr" used on it, would have to be
consistent with the WinXP install you are attempting. For example, if
the computer has Win7 on it, and you just deleted all the files, then
the setup isn't ready to boot a set of WinXP files copied in its place.
That wouldn't work.

In short, slaving a disk drive to a working machine, means there are
no constraints on the slave drive. Then you can do whatever repair work
is required (fixmbr, fixboot etc before install). Once the slave is prepped,
you disconnect all hard drives except the one drive you're trying to install to.

Trying to do this within the confines of a single disk (boot recovery
console from single disk, try to prep another partition) is going to
make this difficult. And more separate tools will be required.
Like a Ubuntu CD or Ubuntu key, to do disk management with.

That's why I say steps like step 8, have a lot of constraints on them.
I suspect if you loaded BartPE PE2USB, that would give you a command
prompt and then you could run "diskpart", "fixboot", "fixmbr" if they
were needed. Virtually any other procedure is going to have issues,
and more care would be needed.

In the BartPE forums, I did find one participant who said they use
BartPE to do "unattended installs" but there were no details on how.
Note that the BartPE Win2003 RAMDisk.sys method, holds a max of 500MB
of files, which isn't big enough to host the entire i386 off the WinXP
CD as well as the regular BartPE files.

The single partition on the hard drive is important. For example, if you
boot the "Win7 key" in the other steps, it makes two drive letters.
If the hard drive has a single blank partition, it becomes C: for
the copy. The contents of the key are D:, while the Microsoft RAMDrive
holding the WinRE environment is in X: (which we don't particularly care
about). If you have *no* partition on the hard drive, the USB key becomes C: !
That would suck, as then the "MSDOS-like" copy step, would be overwriting
the USB key. When there is a *single* partition on the hard drive,
it becomes C:, USB key is D: and so on. If you had a *bunch* of partitions on
the hard drive, who knows where the copy procedure would put the
files. It doesn't ask for permission, and it doesn't take prisoners.
I had it overwrite the key on a few occasions. For me, the sweet spot
was having a single partition on the drive, set active, fixmbr, fixboot c:
*before* doing the file copy step.

*******

If, to this point, you're not getting *any* attempt to have your
USB key boot to work, I'd say that is a pretty significant issue.
That surely gates any forward progress. Worrying about "fixboot"
at this point, is a waste of time, if your computer simply won't
boot from a USB key.

Computers come in about three flavors.

1) 1999 vintage. Has a USB port, but no boot capability.
The port in this case is USB 1.1 and slow.
2) 2003 vintage. Has a separate page in the BIOS setup, with
things like "USB floppy emulation", "USB-HDD emulation", as
well as port 60-64, legacy and other settings (enable/disable
USB2). Those machines were the start of serious attempts to
boot from USB keys. There might be an interaction, between the
way the USB key was prepared, and some emulation setting.
3) Modern vintage. BIOS contains no separate page for USB.
(The legacy setting, if available, is with some other settings.)
Most things just boot automatically. It probably means USB-HDD
emulation for things like keys.

The HP Formatter with its set of FreeDOS files, might have
been a start at a good test case. You'd need an HP Formatter
version supporting FAT32 and large volumes. I mentioned I'd done
some tests, where the 8GB stick wouldn't work, because the
formatting tool insisted on FAT16 (2GB limit). A modern FreeDOS
is going to support FAT32, and then all you need is a USB key
formatter which will put the boot sector and then it should be
ready to work.

The 2.5GB Win7 image, plus the MicroSoftStore USB key tool, does
something similar, in that it should be preparing a USB key that boots.
Even if you didn't use the MicroSoftStore key to do any other work,
it would make a good test of USB boot capability.

Paul
 
A

Ape

If you're trying to do this on a desktop, where a partition is already
being used to boot the computer, and your OS install is an "OEM" type,
the installer may complain, as it will see multiple partitions. It might
even attempt to start copying the install files, into the current C:.

The "fixmbr" and "fixboot", can be run from a WinXP CD, but note that
the availability of such on the target machine, implies we don't need
a USB key. You can fixmbr and fixboot on your spare machine, then
carry a drive to the other machine that only has USB ports, and then
use the USB key to do the installation.

If you have an *existing* OS on the machine, deleting the file contents
of C: in preparation for this procedure, might have been an option, but
be aware that the "fixboot" and "fixmbr" used on it, would have to be
consistent with the WinXP install you are attempting. For example, if
the computer has Win7 on it, and you just deleted all the files, then
the setup isn't ready to boot a set of WinXP files copied in its place.
That wouldn't work.

In short, slaving a disk drive to a working machine, means there are
no constraints on the slave drive. Then you can do whatever repair work
is required (fixmbr, fixboot etc before install). Once the slave is prepped,
you disconnect all hard drives except the one drive you're trying to install to.

Trying to do this within the confines of a single disk (boot recovery
console from single disk, try to prep another partition) is going to
make this difficult. And more separate tools will be required.
Like a Ubuntu CD or Ubuntu key, to do disk management with.

That's why I say steps like step 8, have a lot of constraints on them.
I suspect if you loaded BartPE PE2USB, that would give you a command
prompt and then you could run "diskpart", "fixboot", "fixmbr" if they
were needed. Virtually any other procedure is going to have issues,
and more care would be needed.

In the BartPE forums, I did find one participant who said they use
BartPE to do "unattended installs" but there were no details on how.
Note that the BartPE Win2003 RAMDisk.sys method, holds a max of 500MB
of files, which isn't big enough to host the entire i386 off the WinXP
CD as well as the regular BartPE files.

The single partition on the hard drive is important. For example, if you
boot the "Win7 key" in the other steps, it makes two drive letters.
If the hard drive has a single blank partition, it becomes C: for
the copy. The contents of the key are D:, while the Microsoft RAMDrive
holding the WinRE environment is in X: (which we don't particularly care
about). If you have *no* partition on the hard drive, the USB key becomes C: !
That would suck, as then the "MSDOS-like" copy step, would be overwriting
the USB key. When there is a *single* partition on the hard drive,
it becomes C:, USB key is D: and so on. If you had a *bunch* of partitions on
the hard drive, who knows where the copy procedure would put the
files. It doesn't ask for permission, and it doesn't take prisoners.
I had it overwrite the key on a few occasions. For me, the sweet spot
was having a single partition on the drive, set active, fixmbr, fixboot c:
*before* doing the file copy step.

*******

If, to this point, you're not getting *any* attempt to have your
USB key boot to work, I'd say that is a pretty significant issue.
That surely gates any forward progress. Worrying about "fixboot"
at this point, is a waste of time, if your computer simply won't
boot from a USB key.

Computers come in about three flavors.

1) 1999 vintage. Has a USB port, but no boot capability.
The port in this case is USB 1.1 and slow.
2) 2003 vintage. Has a separate page in the BIOS setup, with
things like "USB floppy emulation", "USB-HDD emulation", as
well as port 60-64, legacy and other settings (enable/disable
USB2). Those machines were the start of serious attempts to
boot from USB keys. There might be an interaction, between the
way the USB key was prepared, and some emulation setting.
3) Modern vintage. BIOS contains no separate page for USB.
(The legacy setting, if available, is with some other settings.)
Most things just boot automatically. It probably means USB-HDD
emulation for things like keys.

The HP Formatter with its set of FreeDOS files, might have
been a start at a good test case. You'd need an HP Formatter
version supporting FAT32 and large volumes. I mentioned I'd done
some tests, where the 8GB stick wouldn't work, because the
formatting tool insisted on FAT16 (2GB limit). A modern FreeDOS
is going to support FAT32, and then all you need is a USB key
formatter which will put the boot sector and then it should be
ready to work.

The 2.5GB Win7 image, plus the MicroSoftStore USB key tool, does
something similar, in that it should be preparing a USB key that boots.
Even if you didn't use the MicroSoftStore key to do any other work,
it would make a good test of USB boot capability.

Paul

Good God All Mighty! All I wanted to do was be able to more easily
re-install XP on those rare occasions when that is the only
alternative to a crash, etc. Or when I buy a new computer. Sometimes
an original CD of an install disk doesn't work because the disk has
deteriorated. So, a brainstorm, Why not use a more dependable
media. Hence USB. Bad idea it seems. This even happens with install
disks for printers, etc. At least with me. Of course they are not
bootable so a disk copy from an image of the original will suffice. An
ISO image saved say on hard disk of a system install CD from which
another CD copy of the install CD can be created and then used is a
better choice. If and when needed of course.

I will play around with all this for the next few days, but my guess
is I will not succeed.

Thanks

Ape Man
 
P

Paul

Ape said:
Good God All Mighty! All I wanted to do was be able to more easily
re-install XP on those rare occasions when that is the only
alternative to a crash, etc. Or when I buy a new computer. Sometimes
an original CD of an install disk doesn't work because the disk has
deteriorated. So, a brainstorm, Why not use a more dependable
media. Hence USB. Bad idea it seems. This even happens with install
disks for printers, etc. At least with me. Of course they are not
bootable so a disk copy from an image of the original will suffice. An
ISO image saved say on hard disk of a system install CD from which
another CD copy of the install CD can be created and then used is a
better choice. If and when needed of course.

I will play around with all this for the next few days, but my guess
is I will not succeed.

Thanks

Ape Man

If your CD drive works, then just make a copy of the CD ?
Images of CDs can be stored as ISO9660 on a hard drive. I
keep an ISO9660 image of my WinXP CD for example. If I needed
to burn another copy, it would be a snap. Or, you could use
something like Imgburn (a free burning program), to make a
copy.

http://en.wikipedia.org/wiki/Imgburn

The WinXP CD was not intended to install from a USB key. But
people more skilled than I, can probably do it. Microsoft
also makes WAIK, which is used by IT people, for custom
installation. So most of the methods that support operation
from a USB key, require a rocket scientist. I eventually
half-managed to do it, but only after days of work.

I did try a Russian program, that claimed to copy the WinXP CD
to a USB key. It (the USB key) wouldn't boot :) Too funny.
And since I have had things on the USB key that do boot,
I've had better luck than with that program. There is more
than one program of that nature, but my intention wasn't
to exhaustively test those programs, one after another.
The Russian program also "calls home", an activity I'm
not particularly fond of. Virtually anything could be
in those packets, such as a WinXP license key. By the time
you figure it out, it could be too late. (This is why,
for a good percentage of my testing, the Ethernet cable
was unplugged.) You can never be too careful, even when a
program is virus scanned. Such a scan doesn't detect bad
program design (such as calling home).

Paul
 
P

Paul

Ape said:
Good God All Mighty! All I wanted to do was be able to more easily
re-install XP on those rare occasions when that is the only
alternative to a crash, etc. Or when I buy a new computer. Sometimes
an original CD of an install disk doesn't work because the disk has
deteriorated. So, a brainstorm, Why not use a more dependable
media. Hence USB. Bad idea it seems. This even happens with install
disks for printers, etc. At least with me. Of course they are not
bootable so a disk copy from an image of the original will suffice. An
ISO image saved say on hard disk of a system install CD from which
another CD copy of the install CD can be created and then used is a
better choice. If and when needed of course.

I will play around with all this for the next few days, but my guess
is I will not succeed.

Thanks

Ape Man

And the MSDOS floppy method I used a couple years ago. That
worked fine. But not everyone has a floppy diskette to use
for bootstrapping (and remembers to include SMARTDRV). The
MSDOS method was foreseen, as the WINNT.exe program is for
usage from DOS or Win 3.1.

You'll notice, if you take a look at the general state of
USB key booting, that no matter what OS it is, the situation
is a mess. There is just no evidence of progress.

To add insult to injury, I can think of a hardware solution
for this. And that would be a USB stick intentionally intended
to "fake" being a USB CDROM. But there are some software
installers, that *cannot* install from a USB CDROM. Some of
the server installation CDs will insist on only an IDE or SATA
connected CDROM drive. If you were to load the installer onto
some hopothetically emulation of a CDROM, it wouldn't work.
The installer would boot successfully, and then would claim it
"cannot see the CDROM drive". Again, too funny, to think you
can boot from it, and then the software can claim it "can't be detected".
I've had this happen on a number of Linux distros as well.
Knoppix sometimes does this. I have both an IDE optical
drive, as well as an external optical drive, and it's the
external that gives trouble. So having a USB key that
"fakes it", can't always be a solution for badly written
software. Some of the installers will still fail. Only
devices connected directly to the motherboard Southbridge,
stand a good chance of working.

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top