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

#751
wimb

wimb

    Senior Member

  • Developer
  • 679 posts
  • Joined 21-March 07

So Setup ignores boot order and honors on what channel they are connected on. Similar behavior should be when installing from a CD too.

Using XP Setup Boot CD for Install of XP on second harddisk gives in fact the same problem.
XP bootfiles are made on first harddisk and Bootsector is changed into NTLDR-type.
Only the arcpath in boot.ini made on first harddisk is now correct referring to booting Windows from rdisk(1).

Using USB_XP_Setup.exe to make $WIN_NT$.~BT folder and XP bootfiles on second partition of second harddisk (HD 1),
ensures that TXT-mode is NOT making bootfiles on first harddisk (HD 0) and that BOOTMGR-type BootSector of Windows 7 is kept unchanged. The XP Setup Source is in folder XP3_911 on USB-stick being HD 2
Interesting in this case is the $winnt$.inf file in which floppylessbootpath has defined setting as:
[Data]
floppylessbootpath=\Device\HardDisk1\partition2
sourcepath=\device\harddisk2\partition1\XP3_911\
unattendedinstall=yes
floppyless=0
AutoPartition=0
InstallDir=\WINDOWS
MsDosInitiated=0
dospath=U:\XP3_911\

In that case the second partition of second harddisk has also the correct drive letter C: in the drive listing,
whereas for Install from CD and the small ISO USB-boot were giving drive letter C: to the first partition of first harddisk,
allthough in all cases the BIOS Boot priority was such that second harddisk was set as first HDD boot device.

But the question remains:
How to trigger that TXT-mode is behaving for Install from CD and the small ISO USB-boot correct as to make the XP bootfiles on the Install Drive on second harddisk, when this is set in BIOS as having the highest boot priority.

Edited by wimb, 07 January 2010 - 09:03 AM.



How to remove advertisement from MSFN

#752
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
What seems strange in $winnt$.inf? I find it perfectly normal.
The active partition on the boot disk (rdisk(0)) gets first drive letter C:, and hard disk numbering is according to disk drivers and bus enumeration, not ARC path, ignoring BIOS boot order or which was the boot device. \device\harddiskX\partitionY numbering differs from the ARC path, we would have been so lucky if it doesn't ;)

If you map hd0 to hd2, hd2 to hd1 and hd1 to hd2 all should be fine. But this is workaround, not a proper solution. We cannon know in advance what user intentions are in order to do similar mapping. It could be covered in readme, or message box.

I am more interested in putting USB disk as last HD, or even hd21, shifting all internal one position up, and go with the default behavior. Will play with this once I figure out why on some machines USB disks do not get drive letters at start of GUI, this is priority and I haven't stopped working on this.

And yes, doing all this from some kind of PE has some advantages, but we talked about the limitations many times, not going in that subject again.

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


#753
brz-.-

brz-.-
  • Member
  • 2 posts
  • Joined 07-January 10
Well i downloaded the last version and tried to install my winxp sp3 English version, everything fine until the first reboot after copying windows files , it gave me this error HAL.DLL missing , and i can't even enter the first menu where we choose wich step to take
It boots the pen and goes straight to the error : HAL.DLL missing

Any ideas why ?

#754
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
Was that 0.2.3 version or 1.0 beta?

If 0.2.3- Did you move the FIXED/REMOVABLE radio button? WinSetupFromUSB.log file in program directory would be helpful. Zip it and attach it with your reply.

If 1.0 beta- how many internal disks do you have?

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


#755
brz-.-

brz-.-
  • Member
  • 2 posts
  • Joined 07-January 10
It was 1.0 beta4 i have 2 internal disks 1 intel SSd 80 Gb X25-M G2 and 1 SataII 320 2.5 5200rpm

Log file here:

Attached Files



#756
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
Change this in winsetup.lst on USB stick root:

map (hd0) (hd1)
map (hd1) (hd0)
on both places

to

map (hd0) (hd2)
map (hd1) (hd0)
map (hd2) (hd1)

Change also
chainloader /I386/SETUPLDR.BIN
to
cat --locate=rdisk(1) --replace=rdisk(2) /I386/TXTSETUP.SIF
chainloader /I386/SETUPLDR.BIN

Replace grldr in root with grldr from this archive:
http://www.nufans.ne...-2009-12-23.rar

Try installing again.

On which disk are you installing Windows?
On the partitioning screen which one of the internal disks is numbered first and which one is second?

Added: When you do the above changes start the program again and select only syslinux option, press GO and ignore the warning about NTFS. This is to put back grub4dos MBR.
Do you have a USB card reader as well on that machine?

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


#757
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
@satire_rutilant

Are still around? I think I've found a solution to the problem you had. Let me know if you want to test it.

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


#758
Ja9

Ja9
  • Member
  • 6 posts
  • Joined 07-September 09
Hi.
I'm trying to build a multiboot 16GB usb flash disk..
But always get som errors..
First I tried just to boot grub4dos from it, and make that loading a Windows 7 iso.
That worked fine, until where I select what type of windows 7 I want to install..
It asks for a cd-rom device driver.

Then I tried to boot a winpe image, and then start 7 setup from that, and then it worked for 32 bit, but not 64-bit.

And after a little more searching i found this topic here :)
And instead of trying this on my flash disk, I iused a 160GB usb disk.
I partitioned it to 4 partitions, and installed norwegian xp pro sp3 and windows 7 32-bit (english, norwegian and litauian) on first partition, and 64 bit win 7 on second partition.

It started just fine with grub, but I still get the "missing cd-rom device driver" when I try to install windows 7.

I used "WinSetup-1-0-beta4" to partition, format, install grub, and install windows on my usb drive.

#759
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
Ja9, I think it has something to do with your source. Is it original?
I've had the same issue until used the original Windows 7 which came with the laptop, no more "missing device driver" errors.

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


#760
Ja9

Ja9
  • Member
  • 6 posts
  • Joined 07-September 09

Ja9, I think it has something to do with your source. Is it original?
I've had the same issue until used the original Windows 7 which came with the laptop, no more "missing device driver" errors.


My images is from the MSDN site, I only have deleted the ei.cfg (so I have all versions instead of just Pro) file from the iso's, and added norwegian and litauian lang-packs.
They are both working from dvd disc, and I have also used one of them from usb once (that time I used microsoft's program, or something else to make the flash drive bootable).

#761
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
I have no other clues, Vista/7 setup move to USB is quite straightforward, nothing is changed or added to the source. Either way should work as the others, the only difference is how BOOTMGR is launched, but it should not matter, or maybe does ? :unsure:

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


#762
Ja9

Ja9
  • Member
  • 6 posts
  • Joined 07-September 09
Ok, then I try agian.. but this time on the flash drive.
This is what I do:
Run WinSetupFromUSB, select the flash drive, run "Bootice", Perform Format.
Then I select USB-HDD mode (mutli partition).

There I make 2 partitions this time.
1: 11288MB (NTFS)
2: 4000MB (NTFS)
3: 0MB
4: 0MB
(So I can use the first one as windows 7 32-bit + some image files, and the last partition as windows 7 64-bit).
I then click "Process MBR", and selects Grub for DOS, and click "Install/Config", and "save to disk", and then i go back and click "Process PBR", selects Grub4DOS.

After that I install Windows 7 32Bit to first partition, and Windows 7 64-Bit on the other partition.

After this is done I'm goin to thest the flash drive and see what happends.. will update this post or someting when I'm done ;)

If anybody can see something wrong in what I'm doing, please correct me :)

#763
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
I don't think Windows 7/Vista will see the second partition in case of removable drive, such as your USB stick. You are limited to the first partition, unless you "flip" the removable bit using the appropriate manufacturer tool, but this is another story.

To stay on the safe side, first try with a single partition only, not multipartition, while partitioning in BootIce.

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


#764
Ja9

Ja9
  • Member
  • 6 posts
  • Joined 07-September 09
Ok, I found out that now.
The files got copied to the second partition instead of the first one.. for some reason..
In my computer I only see one partition, and that is the letter K:, and is the second partition..
But in Disk management I se both, but something is really wierd there.. This first partition is letter K: and the secon one has no letter, and I can't assign one.
So.. My computer reports that K: is about 4GB (second partition) and disk management reports K: as the first partition and about 11GB :S


But as you say, if I partition it as one partiton.. can I have both Windows 7 32 and 64-bit at the same time?
Think i read about it somewhere, that it was not possible.

#765
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
You may look here:
http://www.msfn.org/...sb-t114543.html

and here:
http://www.boot-land...iew=getlastpost

Boot-land.net is down currently, last few days is up and down, hopefully will be fixed soon.

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


#766
Ja9

Ja9
  • Member
  • 6 posts
  • Joined 07-September 09
Ok, I see..
So WinPE is the only way to do this at this time.

I had a PE image running on my flash drive, and it was able to start setup of Windows 7 32-bit, but not 64-bit, but after reading a little bit of the guide I now know what to do :)

But, PE is a little slower than booting the files direct (but yeah, it's no other way).
And I also will loose the possibility to run the repair program for windows 7..
But I have downloaded rescue discs for 32 and 64 bit, so I can just run them as isos from grub4dos I guess..

#767
snoe

snoe
  • Member
  • 1 posts
  • Joined 08-January 10
Awesome GUI. I knew there had to be one. I searched and searched. I don't code but this seems like one hell of a hard task and it was done to perfection. Worked the 1st time, how refreshing. 2 Acer Aspire One's ... fixed. Thanks!

#768
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
Thanks :)
Did you use latest beta or 0.2.3?

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


#769
cybpsych

cybpsych

    Member

  • Member
  • PipPip
  • 283 posts
  • Joined 02-December 03
hi ilko_t, thx for the nice utility.

looking from the gui (latest beta), there's no option to add *both* Vista and 7 sources to the USB?

my plan is to add XP SP3, Vista SP2, and 7 (all 32-bit) into USB drive and lauch individual setup from it.

Edited by cybpsych, 09 January 2010 - 04:35 AM.


#770
cybpsych

cybpsych

    Member

  • Member
  • PipPip
  • 283 posts
  • Joined 02-December 03
btw, is there a generic sequence of steps to follow?

i'm at lost where to begin :blushing:

#771
wimb

wimb

    Senior Member

  • Developer
  • 679 posts
  • Joined 21-March 07
Tried to Install XP on second harddisk using the mapping that you proposed in
http://www.msfn.org/...4-page-755.html

The good news is that the created boot.ini refers now correctly with rdisk(1) to Install of XP on second harddisk.

However, the problem remains that XP bootfiles are made on first harddisk
and that the BOOTMGR-type bootsector meant for booting Windows 7 is changed into NTLDR-type.

So booting for GUI-mode from second harddisk will give error NTLDR missing,
but booting from first harddisk enables to continue XP Setup due to the improved boot.ini file.

#772
cdob

cdob

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,000 posts
  • Joined 29-September 05

Tried to Install XP on second harddisk

I understand so far:

There is without mapping
hd0: Windows 7 drive
hd1: target XP drive

with BIOS mapping, active at hard disk boot. The second hard disk goes to hd0
hd0: target XP drive
hd1: Windows 7 drive

However the BIOS igores hard disk swap at USB boot.
At USB boot there is:
hd0: USB drive
hd1: Windows 7 drive
hd2: target XP drive

XP setup writes boot data to hd0. Map the target XP drive to hd0.

Try at first USB boot.
map (hd0) (hd2)
map (hd2) (hd0)
Don't insert a cat line, or delete the added line.

#773
wimb

wimb

    Senior Member

  • Developer
  • 679 posts
  • Joined 21-March 07

Try at first USB boot.

map (hd0) (hd2)
map (hd2) (hd0)
Don't insert a cat line, or delete the added line.

Thanks cdob and ilko, Install on second harddisk using small ISO method is working now :thumbup

Using as winsetup.lst
title First part of Windows XP Professional SP3 setup from partition 0
root (hd0,0)
map --mem /WINSETUP/XPpSP3.ISO (0xff)
savedefault 2
map (hd0) (hd2)
map (hd2) (hd0)
map --hook
root (0xff)
cat --locate=rdisk(1) --replace=rdisk(2) /I386/TXTSETUP.SIF
chainloader /I386/SETUPLDR.BIN

title Second part of 2000/XP/2003 setup / Boot second internal hard disk
savedefault
map (hd0) (hd2)
map (hd2) (hd0)
map --hook
rootnoverify (hd0)
chainloader (hd0)+1

The cat line is essential, without is I get:
cannot load WINSETUP\XPpSP3\biosinfo.inf - error 14

Booting only once from USB-stick selected from F8 BIOS BootMenu.
In TXT-mode partition list, the second harddisk gets drive letter C:
XP bootfiles are made on second harddisk which is booting direct for GUI-mode of XP Setup and for logon with Desktop.
BOOTMGR-type bootsector on first harddisk for Windows 7 is unchanged and working OK :thumbup

Edited by wimb, 09 January 2010 - 11:57 AM.


#774
cdob

cdob

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,000 posts
  • Joined 29-September 05

Install on second harddisk using small ISO method is working now

That's nice.

The cat line is essential

Can you try again?
map (hd0) (hd1)
map (hd1) (hd2)
map (hd2) (hd0)
There is after map:
hd0: target drive
hd1: USB source drive

That way resembles the default USB boot with a single hard disk.

#775
ilko_t

ilko_t

    MSFN Addict

  • Super Moderator
  • 1,722 posts
  • Joined 06-December 06
  • OS:none specified
  • Country: Country Flag
Nice, workaround is working. However, lets see if we can replicate default Windows behavior.
Your disks are in IDE mode, meaning second disk is on emulated secondary IDE channel.
Does Windows prefer the master channel ignoring BIOS boot order? It seems yes, no matter Setup is from USB or CD.

If in SATA mode, would second disk get hd1 and first hd2 in grub4dos, so boot order gets honored?

Quick draft:

winsetup.lst

Attached are contents of BOOTWS folder. Chenall's grub4dos version is required:
http://www.nufans.ne...-2009-12-23.rar

First test with 1 internal disk and USB card reader- setup works fine. Small glitch- in QEMU and real hardware upon displaying winsetup.lst, to go through menus up and down keys no longer work, left and right work instead :blink:

Same behavior with previous grub4dos versions- 2009-10-16 and 2009-03-31. I guess those nested menus or config files without title aren't quite proper. Boot-land.net is down, cannot get support from grub4dos developers currently. There should be a better way to put USB disk last and shift all other disks one position up.
Have to think also about cases when USB disk is fd0.


cdob
, glad to see you again around :)

Added:

@cybpsych- you need to read the posts just above yours.

Attached Files


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





24 user(s) are reading this topic

0 members, 24 guests, 0 anonymous users