Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Sign in to follow this  
toja92

USB Booting issues

Recommended Posts

jaclaz    943

I will repeat myself, do zero out first 100 sectors of the device

Try running fuwi's batch. (running it WITHOUT zeroing out the first sectors is NOT what I want, I need it run on a zeroed out stick)

DO NOT RUN ANYTHING ELSE.

Post the MBR and bootsector resulting from the above procedure, NOT those coming from ANY OTHER procedure.

This is the ONLY way I can:

1) make sure that no leftovers cause problems

2) that the batch did it's work properly

jaclaz

Share this post


Link to post
Share on other sites

jaclaz    943

OK, now it's better.

As often does, the HP Utility created a 0C (FAT32 partition LBA mapped) with correct LBA values but wrong CHS ones.

In other words, changing the partition type to 0B (FAT32 CHS mapped) may give wrong results.

The FAT32 partition was formatted using the DOS bootsector (the one invoking WINBOOTSYS/IO.SYS). :blink:

First thing to try is to add to the stick the DOS files (from a Win9x/Me bootdisk):

IO.SYS

MSDOS.SYS

COMMAND.COM

and see if it boots.

A possible way to fix:

1) Open the MBR with Beeblebrox, and change current:

80-0C-0-1-1-979-254-63-63-15744960

to:

80-0C-0-1-1-979-254-63-63-15743637

to "balance" CHS and LBA

2) remove the stick

3) re-insert stick

4) Format it from the running OS

5) If running Vista, run bootsect.exe /nt52 <DriveLetter:> /force

to change the bootsector code to the Windows NT/2K/XP/2003 one

6) Add to the stick:

NTLDR

NTDETECT.COM

BOOT.INI

7) see if it boots.

Another possible way:

a. do ONLY steps 4) to 6)

b. open the MBR with BEEBLEBROX

and change from:

80-0B-etc. (if present) :unsure:

to

80-0C-etc.

A third way, if the stick proves to boot from DOS:

1) copy to the stick BOOTPART.EXE:

http://www.winimage.com/bootpart.htm

2) boot to the DOS on the stick

3) run:

BOOTPART.EXE WINXP BOOT:C:

4) Add to the stick:

NTLDR

NTDETECT.COM

BOOT.INI

7) see if it boots.

A fourth way, if you are running Vista, is using the native diskpart as follows:

diskpart
list disk
select disk <discnumber>
clean
create partition primary size=<size of usbstick>
select partition 1
active
format fs=fat32
assign
exit

then use bootsect.exe as previously detailed to create a bootsector invoking NTLDR.

A fifth way (never tried it, mind you) could be to rename NTLDR to BOOTMGR, leaving the VISTA bootsector as is. :unsure:

If none of the above works, at the moment the only way out is to use (as provided in fuwi's

batch) grub4dos as a workaround.

jaclaz

Share this post


Link to post
Share on other sites
toja92    0

The only method I got working is fuwi's batch. But I have never used grub4dos before, and when I boot, I see the vista-like screen he put there, and then I see a flashing message:

booting Bart PE

error 0X<something>

there were some other text here but I don't know what it was.

After this the computer reboots. So now I need help with editing the config file, can you possibly help me with this? :thumbup:

Share this post


Link to post
Share on other sites
jaclaz    943
The only method I got working is fuwi's batch. But I have never used grub4dos before, and when I boot, I see the vista-like screen he put there, and then I see a flashing message:
booting Bart PE

error 0X<something>

there were some other text here but I don't know what it was.

After this the computer reboots. So now I need help with editing the config file, can you possibly help me with this? :thumbup:

Sure, if you tell me what you are trying to boot. ;)

Basically you should have in ROOT of your stick (some files may be hidden):

IO.SYS

MSDOS.SYS

COMMAND.COM

CONFIG.SYS

LOGO.SYS

\grub4dos\grub.exe

NTDETECT.COM

NTLDR (this should be a SETUPLDR.BIN renamed)

wimbom.ini

\minint (if you are booting a XP/2003 based PE this directory contains the files)

The booting procedure, "as is" is the following:

1) MBR chainloads bootsector

2) bootsector chainloads DOS system files (IO.SYS, MSDOS.SYS, COMMAND.COM)

3) since a LOGO.SYS file is present, INSTEAD of the "usual" Windows 98 bootscreen that bitmap is displayed

4) CONFIG.SYS is parsed and executed

5) the following grub4dos menu.lst (that is written in CONFIG.SYS) is executed:

timeout 0
default 0
title Booting BartPE
find --set-root /ntldr
chainloader /ntldr

The easiest would be to:

1) Move grub.exe to ROOT of the stick

2) change CONFIG.SYS from:

device=\grub4dos\grub.exe --config-file="timeout 0;default 0;title Booting BartPE;find --set-root /ntldr;chainloader /ntldr"

to:

device=grub.exe --config-file=menu.lst

3) Add to ROOT of the stick a "conventional" menu.lst:

timeout 30
default 0
title Booting BartPE
find --set-root /ntldr
chainloader /ntldr

title Another way to boot BartPE
find --set-root /minint/SETUPLDR.BIN
chanloader /minint/SETUPLDR.BIN

(of course adding the proper entry for whatever you want to boot or experimenting with command line)

Do take a bit of time reading diddy's grub4dos guide:

http://www.boot-land.net/forums/index.php?showtopic=5187

so that you get familiar with basic grub4dos commands and menu entries. :)

Once the above works, one can try installing to the stick the grldr.mbr, that has been reported by ktp as working allright on biggish FAT32 volumes, thus bypassing the loading of DOS.

jaclaz

Share this post


Link to post
Share on other sites
toja92    0

When adding the entry for windows xp (ntldr) I get this error message:

"INF file txtsetup.sif is corrupt or missing, status 18"

And this is the usboot.org'ed XP (already installed), so txtsetup.sif shouldn't be necessary. Should I start over? use fuwi's batch, copy the files from usboot'ed XP to usb stick and try again?

Here is my menu.lst:

timeout 0
default 0
title Start XP
find --set-root /ntldr
chainloader /ntldr

Edited by toja92

Share this post


Link to post
Share on other sites
jaclaz    943

If you are booting a "real" XP on USB, the NTLDR must be a "real" NTLDR, NOT a renamed SETUPLDR.BIN! :whistle:

Solution:

replace the NTLDR in the stick ROOT with a "real" NTLDR. ;)

jaclaz

Share this post


Link to post
Share on other sites
toja92    0
If you are booting a "real" XP on USB, the NTLDR must be a "real" NTLDR, NOT a renamed SETUPLDR.BIN! :whistle:

Solution:

replace the NTLDR in the stick ROOT with a "real" NTLDR. ;)

jaclaz

YES! :thumbup finally it's working :D Big thanks once again :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×