Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

How to install Windows from USB- WinSetupFromUSB with GUI


  • Please log in to reply
2120 replies to this topic

#326
jacopo

jacopo
  • Member
  • 6 posts
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:


How to remove advertisement from MSFN

#327
dforionstar

dforionstar

    Newbie

  • Member
  • 18 posts
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!

#328
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,385 posts
  • OS:none specified
  • Country: Country Flag

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

#329
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • OS:none specified
  • Country: Country Flag

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, 11 February 2009 - 02:32 AM.

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#330
jacopo

jacopo
  • Member
  • 6 posts

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:

Attached Files

  • Attached File  log.zip   64.59KB   6 downloads


#331
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • OS:none specified
  • Country: Country Flag
@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.nif...229-windows.zip

This also may help:
http://qemu-forum.ip....php?f=5&t=4363

Edited by ilko_t, 11 February 2009 - 07:49 AM.

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#332
jacopo

jacopo
  • Member
  • 6 posts
@ 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..

#333
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • OS:none specified
  • Country: Country Flag
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.micr...0240/devcon.exe

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#334
dforionstar

dforionstar

    Newbie

  • Member
  • 18 posts

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!

#335
jacopo

jacopo
  • Member
  • 6 posts

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:

#336
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,385 posts
  • OS:none specified
  • Country: Country Flag

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

#337
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • OS:none specified
  • Country: Country Flag

...

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:
Posted Image

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...?showtopic=5059
http://www.boot-land...?...ost&p=38845

Maybe NTFS triggers write cache usage (optimize for performance) as described here:
http://www.boot-land...?...ost&p=38935
Does Vista has an option "optimize for removal"? Can you try switching to it and test?

Edited by ilko_t, 11 February 2009 - 03:13 PM.

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#338
jacopo

jacopo
  • Member
  • 6 posts

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:
Posted Image
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 ?

#339
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • OS:none specified
  • Country: Country Flag

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...hp?showforum=66

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

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#340
jacopo

jacopo
  • Member
  • 6 posts

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...hp?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:

#341
dforionstar

dforionstar

    Newbie

  • Member
  • 18 posts

Did you miss my answer?


Yes, I did miss your answer, thank you, I will try again.

#342
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • OS:none specified
  • Country: Country Flag

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, 11 February 2009 - 05:46 PM.

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#343
dforionstar

dforionstar

    Newbie

  • Member
  • 18 posts

]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.

#344
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,385 posts
  • OS:none specified
  • Country: Country Flag

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...hp?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, 12 February 2009 - 02:59 AM.


#345
Sergo

Sergo

    Newbie

  • Member
  • 23 posts
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.
=================
Best regards,
Sergo.

#346
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • OS:none specified
  • Country: Country Flag
@Sergo

Look at FAQs, Q3/A3:
http://www.msfn.org/...howtopic=116766

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB


#347
Sergo

Sergo

    Newbie

  • Member
  • 23 posts

@Sergo

Look at FAQs, Q3/A3:
http://www.msfn.org/...howtopic=116766



Thanks, ilko_t
hacked ntdetect.com fixed the problem
How did you figure out what code to correct?
=================
Best regards,
Sergo.

#348
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,385 posts
  • OS:none specified
  • Country: Country Flag

How did you figure out what code to correct?


Basically, he didn't. ;)

Read this post:
http://www.msfn.org/...o...12630&st=11

and links within it.

Dietmar Stoelting found out that the XP SP1 NTDETECT.COM is "more tolerant" than SP2 and (possibly :unsure:) later versions.

jaclaz

#349
hardywang

hardywang
  • Member
  • 2 posts

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, 15 February 2009 - 12:12 PM.


#350
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • OS:none specified
  • Country: Country Flag
Try installing the program in path without spaces in it, e.g. C:\WinSetupFromUSB

Install Windows from USB, boot Linux, multiboot and a lot more with WinSetupFromUSB





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users



How to remove advertisement from MSFN