Jump to content

How to install Windows from USB- WinSetupFromUSB with GUI


Recommended 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
Link to comment
Share on other sites

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.

Thanks ilko_t!

After adding the line to the boot.ini (on my C: partition), and restarting, I get into Setup, press ENTER on the first screen, get the EULA and press F8, then Setup should look for existing installations of Windows and offer to Repair. But instead it goes straight to the screen showing all my partitions on the Internal drive, + the Sandisk UFD and asks which partition I would like to install on. When I Boot from my very slow CD, I DO get the Repair screen with the two found Windows installations.

My boot.ini looks like this before the install:

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /bootlog /sos /noexecute=optout
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS=" XP #2 " /fastdetect /bootlog /sos /noexecute=optout
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="USB repair, NOT to start Windows"

On boot, I got the custom Multiboot menu, and select (1).

Thanks in advance.

Edited by dforionstar
Link to comment
Share on other sites

I used WinSetupFromUSB for Windows XP on my 4GB SanDisk Cruzer.

When I boot from the USB, I get a line saying

Starting cmain()...

(or something along those lines)

Then I get something about loading menu.lst, three lines about different menu.lst

Finally I end up at a prompt:

grub> _

What do I need to do from here?

Link to comment
Share on other sites

@dforionstar - will reply later, need to perform a few tests first.

@Xeijin- try replacing file GRLDR in USB stick root with the one from the latest grub4dos version:

http://nufans.net/grub4dos/

If no luck with the latest version try GRLDR from this version:

http://nufans.net/grub4dos/history/grub4do...-2008-05-14.zip

Link to comment
Share on other sites

@dforionstar

Open up USB_stick\$win_nt$.~bt\winnt.sif in Notepad and comment out these two entries as shown:

;winntupgrade="no"
;win9xupgrade="no"

Does Setup now find the previous installation and offer repair?

Link to comment
Share on other sites

Please post your winnt.sif file, removing any sensitive data you may have, such as productID etc.

Here is my current winnt.sif from UFD:

; Generated by nLite 1.4.9.1

[Data]
MsDosInitiated=1
floppyless=1
AutomaticUpdates="No"
Autopartition=0
UnattendedInstall="No"

[Display]
Xresolution=1440
Yresolution=900
BitsPerPel=32

[SystemRestore]
MaximumDataStorePercentOfDisk=10

[GuiUnattended]
OemSkipWelcome=1

[Shell]
CustomDefaultThemeFile="%WinDir%\Resources\Themes\Luna.theme"

[Components]

[UserData]
ProductKey=

[RegionalSettings]
LanguageGroup=1
SystemLocale="0409"
UserLocale="0409"
UserLocale_DefaultUser="0409"
InputLocale="0409:00000409"
InputLocale_DefaultUser="0409:00000409"

[Networking]
InstallDefaultComponents="Yes"

[GuiRunOnce]
"binifix4.cmd c:"
"undoren.cmd"
;
; Changed by USB_MultiBoot for INSTALL XP from USB
;
[SetupParams]
UserExecute = "ren_fold.cmd"

Link to comment
Share on other sites

Sorry, I have no ideas. Maybe try removing UnattendedInstall="No" :unsure:

Is the windows version the same as the one on the CD which repair install option worked?

I recall in the previous tests when Setup was performed from USB, repair install was possible, should the extra line in boot.ini was present. Maybe some entries in \windows\system32\$winnt$.inf, which differ from a CD install matter as well...

Link to comment
Share on other sites

Repair of Existing Windows is enabled by Removing Unattended Section.

Well, I don't see an Unattended Section in his winnt.sif but could it be

that such section is added in the manipulation ?

Link to comment
Share on other sites

@dforionstar

Try with only these entries in winnt.sif and nothing else:

[data]
floppyless="1"
msdosinitiated="1"

Make sure you are editing winnt.sif in ~BT folder.

Did you use USB_multiboot or WinSetupFromUSB ? If the latter, did you replace the modified by the program winnt.sif with your own, or created previously by USB_multiboot?

Link to comment
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.
×
×
  • Create New...