• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
ilko_t

How to install Windows from USB- WinSetupFromUSB with GUI

2,139 posts in this topic

Hi,

I'm trying to use WinSetupFromUSB to add UBCD4Win to my USB pen (8 GB): set as Removable, NTFS formatted with HP tool.

Tested on my laptop (Vista Home Premium 32 bit), it says "Bootmgr is missing. Type CTRL+ALT+CANC to reboot"

I'm not so expert, but does not bootmgr refer to Vista bootloader ? :blink:

0

Share this post


Link to post
Share on other sites

I seem to be in a loop between reading the help, running my setup, reading the help, running my setup, etc.

Any help is warmly appreciated!

I have my UFD setup using WinSetupFromUSB 0.1.1.

I was able to boot from UFD and get into the Windows XP SP2 Blue text-based Setup screen . However, XP Setup was unable to see my internal HD. I am on a laptop with one internal HD and 3 partitions. I want to run the XP Setup non-destructive repair feature on internal HD partition (1).

My nLite install includes the Intel SATA drivers and works from CD. I have made sure I did NOT select "Operating System Options-->Manual Install and Upgrade for removal" during the nLite setup.

My XPSetup from UFD (when it was working) only sees the single partition on the UFD. I have read (many times) the help section on rdisks but am still not getting success. After changing the rdisk to (0) and (1) I am no longer able to get to the first XP Setup screen. With rdisk(0), I get the missing HAL.dll error message, With rdisk(1), I get a screen telling me "Windows could not start because of a computer disk hardware configuration problem. Could not read from the selected boot disk".

Any help is appreciated! :rolleyes:

Thank you!

0

Share this post


Link to post
Share on other sites
My nLite install includes the Intel SATA drivers and works from CD. I have made sure I did NOT select "Operating System Options-->Manual Install and Upgrade for removal" during the nLite setup.

I don't get it. :unsure:

You need to repair your laptop install?

Do you have a CD working on the laptop?

If yes, use it, if no, how can you say that the build works from CD on the specific laptop? :w00t:

Can you change in BIOS the settings for SATA to "IDE compatibility mode" or the like?

Or is it a "philosophical" kind of questions, and you are testing it "just in case"?

jaclaz

0

Share this post


Link to post
Share on other sites
Hi,

I'm trying to use WinSetupFromUSB to add UBCD4Win to my USB pen (8 GB): set as Removable, NTFS formatted with HP tool.

Tested on my laptop (Vista Home Premium 32 bit), it says "Bootmgr is missing. Type CTRL+ALT+CANC to reboot"

I'm not so expert, but does not bootmgr refer to Vista bootloader ? :blink:

Did you run WinSetupFromUSB under Vista? HP format tool makes Vista bootsector in this case, which is looking for BOOTMGR. WinSetupFromUSB is supposed to replace this bootsector with grub4dos one, which executes GRLDR.

What are contents of the USB stick? Can you post also your WinSetupFromUSB.log file, zipped and attached? Look at the previous post of mine where to find it. Or did you run only HP format tool, without copying UBCD4Win contents?

I was able to boot from UFD and get into the Windows XP SP2 Blue text-based Setup screen . However, XP Setup was unable to see my internal HD. I am on a laptop with one internal HD and 3 partitions. I want to run the XP Setup non-destructive repair feature on internal HD partition (1).

My nLite install includes the Intel SATA drivers and works from CD. I have made sure I did NOT select "Operating System Options-->Manual Install and Upgrade for removal" during the nLite setup.

To perform the repair install you need an extra line in BOOT.INI on the internal disk.

For example if this is the current boot.ini:

[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 Home Edition" /noexecute=optin /fastdetect

you need to add another line at the bottom:

multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="USB repair, NOT to start Windows

Then Setup will recognize the existing installation. This is if Windows is in the first partition.

You may add that line using UBCD4Win for example.

My XPSetup from UFD (when it was working) only sees the single partition on the UFD. I have read (many times) the help section on rdisks but am still not getting success. After changing the rdisk to (0) and (1) I am no longer able to get to the first XP Setup screen. With rdisk(0), I get the missing HAL.dll error message, With rdisk(1), I get a screen telling me "Windows could not start because of a computer disk hardware configuration problem. Could not read from the selected boot disk".
Why are you entering step 2 (GUI mode) of the setup at all? Didn't you want to perform repair install? Edited by ilko_t
0

Share this post


Link to post
Share on other sites
Did you run WinSetupFromUSB under Vista?

Yes.

What are contents of the USB stick?

I only formatted to NTFS and added UBCD4Win contents, nothing else.

Just another question: does Qemu test work on Vista ? When I try to run, it gives me an error - event viewer says there was a problem with ntdll.dll -

:hello:

log.zip

0

Share this post


Link to post
Share on other sites

@jacopo

In the log file grub4dos part seems fine:

2009/02/11 12:38:30- D:\MULTIBOOT\WinSetupFromUSB\files\grub4dos\grubinst.exe -s=mbrdisk2-20090211-123830.dat -t (hd2)

2009/02/11 12:38:30- Backed up MBR of disk #2

2009/02/11 12:38:30- Backing up BootSector of disk #2 partition #0

2009/02/11 12:38:30- Backed up BootSector of disk #2 partition #0

2009/02/11 12:38:30- Installing grub4dos bootsector to (hd2,0)

2009/02/11 12:38:30- D:\MULTIBOOT\WinSetupFromUSB\files\grub4dos\grubinst.exe (hd2,0)

2009/02/11 12:38:34- grub4dos installed

Did you run it with administrator rights?

I see you have another USB mass storage device:

2009/02/11 12:38:01- Found USB Physical Disk: Hitachi HTS541280H9AT00 USB Device -- \\.\PHYSICALDRIVE1
When you booted from USB did you unplug this device? Are you sure that you booted from "Ut163 USB2FlashStorage USB Device"?

As for the QEMU- I don't have Vista to test it under. You may try to replace it (\winsetupfromusb\files\qemu\) with a newer version:

http://bellard.org/qemu/

edit: the version included is 0.9.1, try 0.9.0 or the latest snapshot:

http://homepage3.nifty.com/takeda-toshiya/...229-windows.zip

This also may help:

http://qemu-forum.ipi.fi/viewtopic.php?f=5&t=4363

Edited by ilko_t
0

Share this post


Link to post
Share on other sites

@ ilko_t

Thank you very much ! Latest snapshot works with Vista :)

So I tried to test with Qemu and gave me same error "bootmgr missing".

I run WinSetup with admin rights, and there were no other usb devices plugged..

0

Share this post


Link to post
Share on other sites

Good :)

I run WinSetup with admin rights
By using an account with admin rights, or right click->run as administrator? Try the latter please.
there were no other usb devices plugged
:blink:

Where did this one come from?

Found USB Physical Disk: Hitachi HTS541280H9AT00 USB Device -- \\.\PHYSICALDRIVE1

Please open up command prompt as administrator and type:

D:\MULTIBOOT\WinSetupFromUSB\files\grub4dos\grubinst.exe -l (hd1)
D:\MULTIBOOT\WinSetupFromUSB\files\grub4dos\grubinst.exe -l (hd2)
devcon.exe find USB*

Please copy-paste the output.

You may get devcon.exe if missing from this package, copy it to \windows\system32:

http://download.microsoft.com/download/1/1...0240/devcon.exe

0

Share this post


Link to post
Share on other sites
You need to repair your laptop install?

Do you have a CD working on the laptop?

If yes, use it, if no, how can you say that the build works from CD on the specific laptop? :w00t:

Can you change in BIOS the settings for SATA to "IDE compatibility mode" or the like?

Or is it a "philosophical" kind of questions, and you are testing it "just in case"?

jaclaz

jclaz: The issue here is how to get the UFD working properly to install XP Setup from UFD - philosophy aside.

Yes, there is a setting in the BIOS to turn off (SATA) native mode, which may help. But this is not required when I run the XP setup from CD, so why should it be required when run from UFD?

Yes, of course my CD works; I can run from CD if I choose. But to save time, I am trying to get the XP Setup to run from UFD, as I have already mentioned.

Would you be kind enough to re-read my previous post and see if you can offer some constructive advice to get this working properly using WinSetupFromUSB 0.1.1, specifically:

My XPSetup from UFD (when it was working) only sees the single partition on the UFD. After changing the rdisk to (0) and (1) I am no longer able to get to the first XP Setup screen. With rdisk(0), I get the missing HAL.dll error message, With rdisk(1), I get a screen telling me "Windows could not start because of a computer disk hardware configuration problem. Could not read from the selected boot disk".

Thank you, in advance!

0

Share this post


Link to post
Share on other sites
By using an account with admin rights, or right click->run as administrator?

The second one.

Where did this one come from?

It is an USB HD used to store some data, but nothing related to WinSetup e co. :whistle:

D:\MULTIBOOT\WinSetupFromUSB\files\grub4dos\grubinst.exe -l (hd1)
Partition list
# id base leng
0 07 3F F0FFC0 (7712M)

D:\MULTIBOOT\WinSetupFromUSB\files\grub4dos\grubinst.exe -l (hd2)
grubinst: open: No such file or directory

devcon.exe find USB*
USB\ROOT_HUB\4&1273BA28&0 : Hub radice USB
USB\ROOT_HUB\4&1961C18&0 : Hub radice USB
USB\ROOT_HUB\4&254C9F50&0 : Hub radice USB
USB\ROOT_HUB\4&27C19DAC&0 : Hub radice USB
USB\ROOT_HUB\4&31740A99&0 : Hub radice USB
USB\ROOT_HUB20\4&25E7C816&1 : Hub radice USB
USB\ROOT_HUB20\4&EC6843D&2 : Hub radice USB
USB\VID_04F2&PID_B015\SN0001 : Dispositivo USB composito
USB\VID_04F2&PID_B015&MI_00\6&1FAFCD28&0&0000 : HP Webcam
USB\VID_1307&PID_0163\071111E7B86755 : Dispositivo di archiviazione di massa USB
USBSTOR\DISK&VEN_UT163&PROD_USB2FLASHSTORAGE&REV_0.00\071111E7B86755&0: Ut163 USB2FlashStorage USB Device
11 matching device(s) found.

However, this afternoon I tried to reformat in fat32 and adding UBCD4Win..it works.

So I tried another time with NTFS and bootmgr error. :blink:

0

Share this post


Link to post
Share on other sites
Would you be kind enough to re-read my previous post and see if you can offer some constructive advice to get this working properly using WinSetupFromUSB 0.1.1, specifically:

ilko_t already replied to you a couple posts above.

jaclaz

0

Share this post


Link to post
Share on other sites
...
Did you miss my answer?
However, this afternoon I tried to reformat in fat32 and adding UBCD4Win..it works.

So I tried another time with NTFS and bootmgr error. :blink:

Can you try formatting it again in NTFS and place UBCD4Win files, then run manually this and post the output:

D:\MULTIBOOT\WinSetupFromUSB\files\grub4dos\grubinst.exe -v --pause (hd1,0)

Assuming the other USB disk is still not plugged in.

Before doing the above, please look at this, after grubinst.exe do it again:

magicalsnap200902112254xt3.th.jpg

Select the USB stick drive letter and click on Read Sector from Disk. Do you see 'grldr' string before and after launching grubinst.exe?

Could it be the same issue as here:

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

http://www.boot-land.net/forums/index.php?...ost&p=38845

Maybe NTFS triggers write cache usage (optimize for performance) as described here:

http://www.boot-land.net/forums/index.php?...ost&p=38935

Does Vista has an option "optimize for removal"? Can you try switching to it and test?

Edited by ilko_t
0

Share this post


Link to post
Share on other sites
Do you see 'grldr' string before and after launching grubinst.exe?

I don't see it.

Before and after, sector image is exactly the same:

beforedr8.th.jpg

grubinst.exe gave me this output:

C:\>D:\MULTIBOOT\WinSetupFromUSB\files\grub4dos\grubinst.exe -v --pause (hd1,0)
Start sector: 0x3F
Image type: NTFS
Install mode
grubinst: Write error
Press <ENTER> to continue ...

USB pen is set to "optimize for removal", it was never set to "optimize for perfomance".

What do you think ? Does grubinst.exe have a successful output ?

0

Share this post


Link to post
Share on other sites
What do you think ? Does grubinst.exe have a successful output ?
I would post here for support from grub4dos developers, mentioning the error above, result of grubinst.exe -l (hd1), your OS you run grubinst under, partition is NTFS and that FAT32 works fine:

http://www.boot-land.net/forums/index.php?showforum=66

For some reason grubinst fails to write the bootsector, I cannot troubleshoot any further.

0

Share this post


Link to post
Share on other sites
I would post here for support from grub4dos developers, mentioning the error above, result of grubinst.exe -l (hd1), your OS you run grubinst under, partition is NTFS and that FAT32 works fine:

http://www.boot-land.net/forums/index.php?showforum=66

I will do.

But first, I would try to run WinSetup from XP and see if it is a Vista-related issue. :unsure:

0

Share this post


Link to post
Share on other sites
I will do.

But first, I would try to run WinSetup from XP and see if it is a Vista-related issue. :unsure:

To save time- play directly with HP USB format tool + grubinst.exe and compare bootsectors with HDhacker. Edited by ilko_t
0

Share this post


Link to post
Share on other sites
]Why are you entering step 2 (GUI mode) of the setup at all? Didn't you want to perform repair install?

I understand what you are saying and the diff between 1) and 2) GUI mode, but I was not deliberately selecting the GUI mode.

0

Share this post


Link to post
Share on other sites
I would post here for support from grub4dos developers, mentioning the error above, result of grubinst.exe -l (hd1), your OS you run grubinst under, partition is NTFS and that FAT32 works fine:

http://www.boot-land.net/forums/index.php?showforum=66

I will do.

But first, I would try to run WinSetup from XP and see if it is a Vista-related issue. :unsure:

I would also try on another PC, or double check the BIOS, some (few) BIOS have a setting that to avoid Viruses tampering with MBR disable writings to it, as well some antivirus softwares have this feature.

Maybe this is the case. :unsure:

jaclaz

Edited by jaclaz
0

Share this post


Link to post
Share on other sites

Have been playing with WinSetupFromUSB for a while worked ok so far, even on laptop.

But hit a snag today with Dell Optiplex 755 (ICH9)

with all drivers integrated (same install for on Dell E6400,also intel chipset)

I got a bSOD 0x7B only when boot from USB (when 32 bit setup starts)

booting the same image from CD is OK.

It seems setup considers USB drive a boot device but can't find a 32 bit driver for it?

Edit: Also tested on external USB hard drive - same result.

0

Share this post


Link to post
Share on other sites
Sorry,but i get this

grubinst.exe could not make a backup of MBR

How do i get a MBR on my sd card?

I have the same issue, I use 4GB USB drive to make bootable installation.

my log file has

2009/02/14 20:17:18- WinSetupFromUSB 0.1.1 started

2009/02/14 20:17:18- OS WIN_XP X86 ServicePack: Service Pack 3

2009/02/14 20:17:18- Getting USB drives information

2009/02/14 20:17:18- Found USB Physical Disk: Lexar JD FireFly USB Device -- \\.\PHYSICALDRIVE1

2009/02/14 20:17:18- Found USB Disk Partition: Disk #1, Partition #0

2009/02/14 20:17:18- Found USB Logical Disk: E: File system: FAT Bootable: -1

2009/02/14 20:17:18- Target drive selected- E:

2009/02/14 20:17:18- Drive letter of the active partition in selected disk- E:

2009/02/14 20:17:18- Total target size avialable- 3824 MB

2009/02/14 20:17:18- Checking sizes...

2009/02/14 20:17:18- Total source size- 0 MB

2009/02/14 20:17:18- Target space available- 3824 MB

2009/02/14 20:17:22- Checking sizes...

2009/02/14 20:17:22- Total source size- 554.4 MB

2009/02/14 20:17:22- Target space available- 3824 MB

2009/02/14 20:17:22- Windows source selected- D:

2009/02/14 20:17:22- Source version- Windows XP Professional

2009/02/14 20:17:22- Service Pack- Windows XP Professional Service Pack 2

2009/02/14 20:17:22- AMD64 flag- 0

2009/02/14 20:17:24- Removing TEMP folder

2009/02/14 20:17:24- Backing up MBR of disk #1

2009/02/14 20:17:24- C:\Temp\Install XP from USB\WinSetupFromUSB\files\grub4dos\grubinst.exe -s=mbrdisk1-20090214-201724.dat -t (hd1)

2009/02/14 20:17:28- grubinst.exe could not make a backup of MBR of disk #1

2009/02/14 20:17:28- ---------------------------------Program quited-----------------------------------------------

I got a "grubinst.exe could not make a backup of MBR" error when I try to launch the process.

My 4GB USB stick is already formatted to FAT32 (I also tried NTFS) with HP utility.

Any hints?

Thanks

Hardy

Edited by jaclaz
0

Share this post


Link to post
Share on other sites

Try installing the program in path without spaces in it, e.g. C:\WinSetupFromUSB

0

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

  • Recently Browsing   0 members

    No registered users viewing this page.