Jump to content

How to install Windows from USB- WinSetupFromUSB with GUI


Recommended Posts

If you have a chance to produce the same way migrate.inf and output of ListUsbDrives.exe on either Vista, Server 2008 or 7 machine it would be great.

I'd like to figure out how exactly ParentID Prefix is calculated when there is no serial number.

But is the serial number actually missing?

Unknown seems to have some identity:

...

Serial Number: 5&&167ABEC4&&0&&4

.....

Or is the serial number containing "&" that creates the problem/issue? :unsure:

jaclaz

Link to comment
Share on other sites


@Jaclaz: Ooooh miss Scarlet, I don't know nothing about no births and no babies.

But you were right to point out that I pointed out that there WAS some identity. It just doesn't stick for some reason.

@Ilko: Here it is. All for science's sake.

Issue/problem: As far as I'm concerned it is an issue now. With your help it has been solved as a problem. It's you who have a problem, because building the Migrate.inf your way obviously has a flaw. Be it brought to daylight by an obscure SMI flashdrive bought somewhere in the outskirts of Spain. After I brought it back to the real world through MkMigrateInf it acts like a charm, no 2 GB barrier at all! For the time being, let's forget about this barrier, it probably just happened as a result of all the messing around. If it shows up again, i'll post, less naïve as I started this ordeal.

Migrate_ListUSB.7z

Link to comment
Share on other sites

I tried to use it with xp x64 but it didnt work.

I found the log i post it here and appologise if this isn't the place to post:

2011/02/13 01:56:00- WinSetupFromUSB 1.0 beta7 started

2011/02/13 01:56:00- OS: WIN_XP Architecture type: X64 ServicePack: Service Pack 2 OS Language: 0409

2011/02/13 01:56:00- Program directory: C:\Documents and Settings\zapbuzz\My Documents\WinSetup-1-0-beta7

2011/02/13 01:56:00- Getting USB drives information

2011/02/13 01:56:01- Show all drives option is NOT selected, displaying USB drives only

2011/02/13 01:56:01- Verbatim STORE N GO USB Device

2011/02/13 01:56:01- DeviceID: \\.\PHYSICALDRIVE3

2011/02/13 01:56:01- PNPDeviceID: USBSTOR\DISK&VEN_VERBATIM&PROD_STORE_N_GO&REV_5.00\07AC070820BD31DB&0

2011/02/13 01:56:01- Partitions count: 1

2011/02/13 01:56:01- Disk--Partition: Disk #3, Partition #0

2011/02/13 01:56:01- Logical Disk: H: File system: FAT32 Primary: True

2011/02/13 01:56:01- Drive letter of the selected partition- H:

2011/02/13 01:56:01- Drive letter of the first primary partition in selected disk- H:

2011/02/13 01:56:01- Disk number of the selected disk- 3

2011/02/13 01:56:01- PNPId of the selected disk- USBSTOR\DISK&VEN_VERBATIM&PROD_STORE_N_GO&REV_5.00\07AC070820BD31DB&0

2011/02/13 01:56:01- File system type of the selected partition- FAT32

2011/02/13 01:56:01- Disk type of the selected disk- Removable

2011/02/13 01:56:01- Total target size avialable- 3809 MB

2011/02/13 01:56:01- Checking sizes...

2011/02/13 01:56:01- Total source size- 0 MB

2011/02/13 01:56:01- Target space available- 3809 MB

2011/02/13 01:56:04- Checking sizes...

2011/02/13 01:56:04- Total source size- 0 MB

2011/02/13 01:56:04- Target space available- 3809 MB

2011/02/13 01:56:11- Checking sizes...

2011/02/13 01:56:11- Total source size- 632.4 MB

2011/02/13 01:56:11- Target space available- 3809 MB

2011/02/13 01:56:11- Windows source selected- D:\xp64bitamd

2011/02/13 01:56:11- Windows version- Windows XP Professional x64 Edition

2011/02/13 01:56:11- Service Pack- Service Pack 2

2011/02/13 01:56:11- Windows source- D:\xp64bitamd

2011/02/13 01:56:11- Windows version- XPpSP2x

2011/02/13 01:56:11- Service Pack- SP2

2011/02/13 01:56:11- AMD64 flag- 1

2011/02/13 01:56:11- Boot menu name- Windows XP Professional SP2 x64

2011/02/13 01:56:13- Flushing disk cache to \\.\H:

2011/02/13 01:56:13- FlushFileBuffers Output: 1

2011/02/13 01:56:13- CloseHandle Output: 1

2011/02/13 01:56:13- Removing TEMP folder

2011/02/13 01:56:13- Flushing disk cache to \\.\H:

2011/02/13 01:56:13- FlushFileBuffers Output: 1

2011/02/13 01:56:13- CloseHandle Output: 1

2011/02/13 01:56:13- Checking if grub4dos is installed properly

2011/02/13 01:56:13- grub4dos MBR and files are NOT installed properly

2011/02/13 01:56:13- Flushing disk cache to \\.\H:

2011/02/13 01:56:13- FlushFileBuffers Output: 1

2011/02/13 01:56:13- CloseHandle Output: 1

2011/02/13 01:56:13- Installing grub4dos MBR and files

2011/02/13 01:56:13- Flushing disk cache to \\.\H:

2011/02/13 01:56:13- FlushFileBuffers Output: 1

2011/02/13 01:56:13- CloseHandle Output: 1

2011/02/13 01:56:13- Backing up MBR of disk #3

2011/02/13 01:56:13- C:\Documents and Settings\zapbuzz\My Documents\WinSetup-1-0-beta7\files\grub4dos\grubinst.exe -v --skip-mbr-test -s=mbrdisk3-20110213-015600.dat -t (hd3)

2011/02/13 01:56:14-

2011/02/13 01:56:14- Start sector: 0x0

Image type: MBR2

Partition table

bt h0 s0 c0 fs h1 s1 c1 base leng

00 00 01 01 0B 14 D5 C9 1F80 774080

00 00 00 00 00 00 00 00 0 0

00 00 00 00 00 00 00 00 0 0

00 00 00 00 00 00 00 00 0 0

Install mode

Read only mode

2011/02/13 01:56:16- Backed up MBR of disk #3

2011/02/13 01:56:16- Installing grub4dos MBR to (hd3)

2011/02/13 01:56:16- Launching grubinst.exe -v (hd3)

2011/02/13 01:56:16-

2011/02/13 01:56:16- Start sector: 0x0

Image type: MBR2

Partition table

bt h0 s0 c0 fs h1 s1 c1 base leng

00 00 01 01 0B 14 D5 C9 1F80 774080

00 00 00 00 00 00 00 00 0 0

00 00 00 00 00 00 00 00 0 0

00 00 00 00 00 00 00 00 0 0

Partition list

# id base leng

0 0B 1F80 774080 (3816M)

grubinst: Bad partition table, if you're sure that the partition list is ok, please run this program again with --skip-mbr-test option.

2011/02/13 01:56:16- Launching touchdrv.exe H:

2011/02/13 01:56:16-

2011/02/13 01:56:16-

2011/02/13 01:56:20- Flushing disk cache to \\.\H:

2011/02/13 01:56:21- FlushFileBuffers Output: 1

2011/02/13 01:56:21- CloseHandle Output: 1

2011/02/13 01:56:21- Checking for grldr string in MBR of disk #3

2011/02/13 01:56:21- Launching C:\Documents and Settings\zapbuzz\My Documents\WinSetup-1-0-beta7\files\grub4dos\grubinst.exe -v --skip-mbr-test -s=mbrdisk3-20110213-015600check.dat -t (hd3)

2011/02/13 01:56:22-

2011/02/13 01:56:22- Start sector: 0x0

Image type: MBR2

Partition table

bt h0 s0 c0 fs h1 s1 c1 base leng

00 00 01 01 0B 14 D5 C9 1F80 774080

00 00 00 00 00 00 00 00 0 0

00 00 00 00 00 00 00 00 0 0

00 00 00 00 00 00 00 00 0 0

Install mode

Read only mode

2011/02/13 01:56:24- Saved MBR of disk #3

2011/02/13 01:56:25- Grub4dos MBR not found

2011/02/13 01:56:25- Could not install grub4dos MBR, aborting...

2011/02/13 01:56:30- Removing TEMP folder

2011/02/13 01:56:30- Flushing disk cache to \\.\H:

2011/02/13 01:56:30- FlushFileBuffers Output: 1

2011/02/13 01:56:30- CloseHandle Output: 1

2011/02/13 01:56:30- ---------------------------------Program quited-----------------------------------------------

I did not do any changes or advanced config to this attempt; relied on program defaults

should i format NTFS?

Edited by ZaPbUzZ
Link to comment
Share on other sites

@ZaPbUzZ

Repartition and format the stick with either of the tools included, RMPrepUSB or BootIce:

grubinst: Bad partition table...

@Robou

Quite interesting news coming from you and our no longer unnamed hero which will help us gain some more knowledge :)

Long story short- when there is a serial number Windows prior to Vista calculates ParentID prefix based on PNPDevID & serial number to construct MountedDevices key. Vista and above use the PNPDevID string for MountedDevices. I used the same technique to produce migrate.inf, gaining compatibility with Vista and above, not reading MountedDevices at all, as MkMigrateInf.cmd does but can't work on Vista and above.

Never got a chance to get my hands on stick without serial number in order to find out how MountedDevices key is made in this case, now hopefully this would happen with your precise help.

It'd be surprising if a "wrong" migate.inf really leads to the BSOD you mentioned and this 2GB barrier. Can you test to confirm- use WinSetupFromUSB prepared migrate.inf, one from MkMigrateInf.cmd and without the file at all.

Link to comment
Share on other sites

...

@Ilko: Here it is. All for science's sake.

Issue/problem: As far as I'm concerned it is an issue now. With your help it has been solved as a problem. It's you who have a problem, because building the Migrate.inf your way obviously has a flaw. Be it brought to daylight by an obscure SMI flashdrive bought somewhere in the outskirts of Spain. After I brought it back to the real world through MkMigrateInf it acts like a charm, no 2 GB barrier at all! For the time being, let's forget about this barrier, it probably just happened as a result of all the messing around. If it shows up again, i'll post, less naive as I started this ordeal.

That's a great USB stick, and reporter, I fancy them both ;)

Here we go- below is how (using what string) ParentID Prefix (bolded) is generated for each stack/level (in red) in case no serial number is present

Host Ctrl DevID (ATI Standard Enhanced PCI to USB Host Controller): PCI\VEN_1002&DEV_4396&SUBSYS_75771462&REV_00\3&267A616A&0&9A ---> E170367

Ctrl2 DevID: USB\ROOT_HUB20\4&E170367&0 ----> 167ABEC4

Ctrl DevID: USB\VID_090C&PID_1000\5&167ABEC4&0&4 --> 141385F5

Drive DevID: USBSTOR\DISK&VEN_GENERAL&PROD_USB_FLASH_DISK&REV_1100\6&141385F5&0 -----> 1F8A503E

Volume DevID STORAGE\REMOVABLEMEDIA\7&1F8A503E&0&RM

...

USB Friendl. Name = General USB Flash Disk

USB Serial = ---

The Volume DevID is used in Mounted Devices key, for Windows 2003 and below.

Since with no serial number generation starts from the DevID string of the USB host controller, and also each USB port on it has different DevID, there is no way to generate Mounted Devices key on one machine and use same one on another, unless both machines has the same USB controllers and USB stick is plugged in the port with the same DevID.

I bet the migrate.inf which worked was generated on the same machine where it worked. In the other machine MountedDevices key is completely different since the host controller is different.

In addition- the Serial Number reported by Chip Genius (167ABEC4) was wrong, you could see that string in Ctrl DevID.

To compare, with a stick with serial number, under Windows 7:

Host Ctrl Name = Intel® ICH9 Family USB2 Enhanced Host Controller - 293A

Host Ctrl DevID = PCI\VEN_8086&DEV_293A&SUBSYS_02331028&REV_03\3&18D45AA6&0&EF

Ctrl2 DevID = USB\ROOT_HUB20\4&2FB410DF&0

Ctrl DevID = USB\VID_05DC&PID_A640\AA04015900000158

Drive DevID = USBSTOR\DISK&VEN_LEXAR&PROD_JD_LIGHTNING_II&REV_1100\AA04015900000158&0

Volume DevID = STORAGE\VOLUME\_??_USBSTOR#DISK&VEN_LEXAR&PROD_JD_LIGHTNING_II&REV_1100#AA04015900000158&0#{53F56307-B6BF-11D0-94F2-00A0C91EFB8B}

....

USB Friendl. Name = LEXAR MEDIA JD LIGHTNING II

USB Serial = AA04015900000158

How MountedDevices key is generated:

Vista and above: Drive DevID is used itself

2003 and below: Drive DevID string is used to generate yet another ParentID prefix, used in Volume DevID which is then used in MountedDevices.

I hope the mystery about migrate.inf is fully revealed.

Hope you can help with the other one, the 2GB barrier, to rephrase:

1) Try using migrate.inf generated on your machine on the other one, the one with nVidia chipset

2) Try using migrate.inf generated on your machine on the same

3) Try without migrate.inf at all on your and the other machine

Edited by ilko_t
Link to comment
Share on other sites

I need some time to grasp what you published and as 1st- I'm colorblind and need someone to point out the difference between bold and red and 2nd- My house is occupied with guests from Greece and Finland who's interest is far from computers and USB-sticks I'll be back in a few days.

Link to comment
Share on other sites

Toshiba Satellite A135-S4527

OCZ Rally2 Turbo 4GB

WinSetupFromUSB_1-0-beta7

I formated the OCZ to NTFS & Activated the Boot Flag, and copied my nLite XP Pro SP3 ISO files.

Upon boot I press F12 to select & boot from the OCZ .. I get the GRUB4DOS menu .. but when I choose First Part from the menu & Setup is just starting .. I get:

The system encountered an I/O error

accessing multi(0)disk(0)rdisk(2)partition(1).

Setup cannot continue. Press any key to exit.

But if I plug in a HDD using a USB to IDE adapter .. reboot, F12 choose the OCZ, GRUB4DOS, First Part .. it worked .. but during Second Part setup rebooted .. and now I get some aspc missing file error.

I used WinSetupFromUSB 0.2.3 before on nearly the same laptop with a different flash drive (Memorex mini Travel 2GB) and it worked great .. but copy files was S-L-O-W.

Right now I am trying 0.2.3 on my OCZ .. waiting for that to copy all the setup files

-----

0.2.3 on my OCZ worked perfectly! much much faster with my OCZ & NTFS!

Edited by Joshatdot
Link to comment
Share on other sites

@Joshatdot

Did you use PLoP?

When the message "The system encountered an I/O error " appeared how many disks and mass storage devices did you have attached to the computer, CD cards, card readers etc. etc.?

But if I plug in a HDD using a USB to IDE adapter .. reboot, F12 choose the OCZ
Did you start from the USB-IDE disk or the OCZ? I am losing you here.

Can we run a few tests on this machine to figure out what's going on?

Link to comment
Share on other sites

@Joshatdot

Did you use PLoP?

When the message "The system encountered an I/O error " appeared how many disks and mass storage devices did you have attached to the computer, CD cards, card readers etc. etc.?

But if I plug in a HDD using a USB to IDE adapter .. reboot, F12 choose the OCZ
Did you start from the USB-IDE disk or the OCZ? I am losing you here.

Can we run a few tests on this machine to figure out what's going on?

I am not sure if I used PLoP .. i choose bootice, parts manage, format this part, ntfs, then activate, then process mbr: grub4dos .. then choose my Winlite.iso, GO .. etc

I only had the OCZ flash drive connected (only others were the internal HDD & DVD) ..

If I also connected a USB to IDE HDD along with the OCZ flash drive .. upon boot on the Toshiba I press F12 to choose what to boot from .. I selected the OCZ flash drive like usual .. with both of them connected I do not get the I/O error.

Tests .. if I don't have to format & install XP, sure .. other wise I'd need a spare 2.5" sata hdd to play with.

Edited by Joshatdot
Link to comment
Share on other sites

PLoP is a boot manager and first in grub4dos boot menu entries, "EXPERIMENTAL - Start PLoP boot manager". Do not use it for now.

Start from the USB stick, no USB-IDE disks, press "c" to enter grub4dos command prompt.

Type:

find /usbdrive.tag

What's the result?

Next type

calc *0x475 & 0xFF

What's the result?

Now press escape to get to the menus and select Windows Setup-->First part of Setup. How far do you get? The USB stick has to be prepared with 1.0 beta7 version.

Will not need to reinstall Windows, just a few more similar commands.

Link to comment
Share on other sites

Can someone tell me that how can I avoid to deleted some of the compressed files in ~LS\I386 during Text mode of setup. I used "WinSetupFromUSB_0-2-3" version in widows 2003 server, thank you and appreciated. may changed in sourse

Link to comment
Share on other sites

PLoP is a boot manager and first in grub4dos boot menu entries, "EXPERIMENTAL - Start PLoP boot manager". Do not use it for now.

Start from the USB stick, no USB-IDE disks, press "c" to enter grub4dos command prompt.

Type:

find /usbdrive.tag

What's the result?

Next type

calc *0x475 & 0xFF

What's the result?

Now press escape to get to the menus and select Windows Setup-->First part of Setup. How far do you get? The USB stick has to be prepared with 1.0 beta7 version.

Will not need to reinstall Windows, just a few more similar commands.

I'll give these a try in the next day or so .. I had to return her laptop, but needs the wireless printer installed .. so I'll try these tests then.

Link to comment
Share on other sites

Can someone tell me that how can I avoid to deleted some of the compressed files in ~LS\I386 during Text mode of setup. I used "WinSetupFromUSB_0-2-3" version in widows 2003 server, thank you and appreciated. may changed in sourse

It is not possible. Use the latest beta version and no files will be deleted.
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...