IPB

Google Frontpage Forums Unattended CD/DVD Guide
> [SOLVED] Install Multiple XP/Vista/PE/2003 from USB
andy_le2k
post Mar 25 2008, 09:23 AM
Post #1


Newbie


Group: Members
Posts: 25
Joined: 3-January 04
Member No.: 11860



This post has evolved quite a bit since I started out on my quest to boot from a single USB hard drive which will then be able to launch every single OS install as well as every diagnostic tool from it as well. So below I will list the methods I use to get my USB hard drive working, of course you don't have to follow this but it's here as a guide.

Thanks:
Without these guys this would not have been possible!
  • wimb
  • cdob
  • jaclaz
  • ilko_t

AIM:
To be able to install multiple OS installs from the single USB hard drive

Software needed:
wimb's usb_multiboot - check the stickies in this forum for the download details.
a hex editor
WAIK (if you want to have multiple Vista sources)
a DOS menu program or an autoplay creator (for multiple Vista)
OS/TOOLS Sources

Hardware:
USB Hard drive preferably > 20GB

Outline:
Use wimb's usb_multiboot to create XP sources as well as adding the boot sector onto the hard drive and load it with NTLDR.

NTLDR uses boot.ini which then launches grub4dos automatically
Reason for not using boot.ini is because grub4dos is superior in handling and loading bootloaders whereas boot.ini needs boot sectors which will cut out one extra step. Grub4dos has extra functionality which we can add to later such as emulating virtual hard disks and fdd's, it can load Vista's BOOTMGR directly and also its menu is also better to look at newwink.gif
Reason why I personally did not load grub4dos's bootsector directly to the hard drive but went through the trouble of using NTLDR (boot.ini) then loading grub4dos is because I already have grub4dos installed on my other hard drive and grub4dos's bootsector looks for the file "grldr" automatically which is already present on my other hard drive so it might load my permanent hard drive instead of my USB. So I have renamed and hex edited the grldr on the USB drive to look for "brldr" and set boot.ini to load brldr instead. If you do not have this dillema, feel free to use grub4dos's boot sector installer if you wish to cut out the extra step of loading NTLDR then grub4dos.
Currently working on:
  • [SOLVED]Trying to get multiple versions of Windows 2003 to co-exist on the USB hard drive.


---------------
Multiple PE
---------------
This applies to anything that uses WINPE1 (Windows FLP install, BartPE, ERD Commander, etc)
As PE was initially intended to be run off a CD the original structure for them would be inside the [i386] folder.
If your PE came from a USB source it would be in the folder [minint].
It's not important which folder it is in because we will rename them once it is copied to the USB hard drive anyways. Make sure you copy winbom.ini to the USB root as well.

The convention you should stick to is:
[mini01]
[mini02]
[mini03]
[minixx]

So once we have the folders copied to our hard drive and renamed appropriately we will need to also copy the setupldr.bin file from the [minixx] folder to the root of the USB and rename them according to this convention:
peld1
peld2
peld3
peldx

Now you will need to change the first occurrence of txtsetup.sif in PELDx to notsetup.sif.

CODE
gsar -sBT:x00:x00:x00\:x00:x00:x00txtsetup -rBT:x00:x00:x00\:x00:x00:x00notsetup %USB%:\PELDx -b -o


Change all occurances of minint to minixx.

CODE
gsar -i -o -s\minint -r\minixx peldx


Notes:

WinFLP requires all additional folders on the CD to be on the USB root, such as the [Setup] which houses the flp.wim which setup requires. So as a rule of thumb: copy all folders from the source CD for WinFLP, ERD Commander and BartPE to the root of USB drive and rename the i386 folder to minixx.

WinFLP's setupldr.bin has a checksum protection which will error if you hex edit it, I suggest you use BartPE's one.

---------------
Multiple Vista
----------------
Ok this is not much of an automated process but it is somewhat more streamlined than my original concept.

Dump all your Vista sources onto the USB hard drive (11 gigs for me - x86 + x64 Vista + x86 + x64 Server 2008) - Best if they are in a separate folder... tree view for mine is below

USB
|
|----->BOOTMGR
|
|----->[Boot]
| |
| |--->Modified BCD store
|
|----->[SOURCES]
| |
| |--->x86.wim
|
|----->[Vista]
|
|----->[Vistax86]
| |
| |--->[SOURCES]
|
|
|----->[Vistax64]
| |
| |--->[SOURCES]
|
|
|----->[Serverx86]
| |
| |--->[SOURCES]
|
|
|----->[Serverx64]
|--->[SOURCES]


First thing is to copy the BOOTMGR file along with the [SOURCES] and [BOOT] folders from any Vista source to the root of the USB hard drive. You can delete the Install.wim from the [SOURCES] folder.

Now what you will need to do is create a new Windows PE 2.0 (x86) from WAIK - I won't go into details about that here but it's very simple. Reason we use the x86 version of WINPE2 is because the 32bit version of WINPE2 can launch the setup of both 64 and 32 versions (with some tweaking as discussed below).

Mount your WINPE2 image on a local hard drive folder with read/write and you will need to modify your WINPE2 with:

Create a text file in [mounted_wim_folder]\Windows\System32\ and name it: winpeshl.ini
Edit the winpeshl.ini with:
CODE
[LaunchApp]
   AppPath=%SYSTEMDRIVE%\menu.cmd

What the winpeshl.ini file will do is start up WINPE2 and run whatever your AppPath program is as a shell. So you can make a simple DOS batch menu for you to select whichever Vista/Server 2008 you want to install. What I did was made an autorun program using Autoplay Studio which will prompt me with 4 options and whatever I click on, it will launch a batch file which will run the setup for that OS. Two important things you need to keep in mind is:

1) You will need to find the USB hard drive before you can launch the setup. So you may want to add this line to your batch files:

CODE
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\usb_tag_file SET USB=%%i:\


You can then launch the setup by adding this line to your batch file:

CODE
%USB%\Vista\Vistax86\sources\setup.exe


2) You cannot load a x64 setup from a x86 WINPE2, the workaround for this is to copy contents of the SOURCES folder (including Setup.exe but excluding boot.wim and install.wim) from the x86 version of the Vista source. **IMPORTANT** do not overwrite the install.wim in the destination folder or you will just be installing the x86 version!

Once you have modified the WINPE2, make sure you commit the changes. If you have more than one WINPE2 on your USB, you will then need to edit the bcd store inside the BOOT folder on the root of your USB using bcdedit.exe - if you don't have any other WINPE2, you can just copy the BOOT and SOURCES folders and the BOOTMGR file from any Vista source to the <ROOT> of the USB hard drive, then name your newly created WINPE2 as boot.wim and copy it over to the SOURCES folder and overwrite the original.

So now, from your USB's grub4dos menu, load the bootmgr on the root of your USB it will then load the bcd store. If you have more than one WINPE2 it will load the BOOTMGR menu, if not it will load into the WINPE2 that you have created. Once that WINPE2 loads, it should load your batch menu or VBS or if you really want to be fancy... an autoplay application.




------------------------
Multiple Windows 2003
------------------------

The process of getting multiple sources of Windows 2003 onto your USB hard drive is pretty much the same as making multiple sources of XP with a few more extra steps.

First, you will need these files:

Cracked setupldr.bin : http://www.msfn.org/board/post-a9193-crack...PLDR-1-.BIN.zip
ModifyPE : http://unattended.msfn.org/files/global/MODIFYPE.EXE

Steps:

  1. Copy and replace the cracked setupldr.bin to the i386 folder of your source before you use usb_multiboot.
  2. Create the source using usb_multiboot, for this example we will assume the source folders are [$WIN_xx$.~LS] and [$WIN_xx$.~BT]
  3. [left]Goto [$WIN_xx$.~BT] and you should find both setupdd.sys and setupdd.sy_ Delete setupdd.sy_ and apply the following to setupdd.sys
    CODE
    modifype.exe setupdd.sys -c
  • [center]
    CODE
    makecab setupdd.sys

  • I have not yet tested putting a checksum on setupldr.bin but I would assume this method will work as well. So if you don't want to download the cracked setupldr.bin you may wish to try the following but it may not work.


    [center]
    CODE
    modifype.exe XATxx -c

    and
    CODE
    modifype.exe XPSxx -c



    ----------------
    Multiple XP
    ----------------
    This has changed a lot since wimb updated the usb_multiboot to automatically do this, so basically, run the usb_multiboot program twice (or however many times you want) making sure you carefully select the settings again for each time you run it.

    Below are the original instructions for historic and nostalgic reasons.

    Thanks to everybody who made this possible for me - especially these superstars: jaclaz, ilko_t, cdob and wimb

    I just want to list the steps I took below, I can't promise that it will work for all of you but it worked for me.

    01 - Make XP1 Source using usb_multiboot.cmd

    02 - Rename $WIN_NT$.~BS and $WIN_NT$.~LS to $WIN_01$.~BS and $WIN_01$.~LS

    03 - Rename SETUPLDR.BIN to XPS01 and rename TXTSETUP.SIF to TXTSET01.SIF

    04 - Make XP2 Source using usb_multiboot.cmd

    05 - Rename $WIN_NT$.~BS and $WIN_NT$.~LS to $WIN_02$.~BS and $WIN_02$.~LS

    06 - Rename SETUPLDR.BIN to XPS02 and rename TXTSETUP.SIF to TXTSET02.SIF

    07 - HEX Edit XPS01 replace every reference of "$WIN_NT" to "$WIN_01"
    - HEX Edit XPS01 replace every reference of "txtsetup" to "txtset01"

    08 - HEX Edit XPS02 replace every reference of "$WIN_NT" to "$WIN_02"
    - HEX Edit XPS02 replace every reference of "txtsetup" to "txtset02"

    09 - EXPAND setupdd.sy_ to setupdd.sys located in your ~BS folders
    - For $WIN_01$.~BT\setupdd.sys run "GSAR -i -o -s$:x00W:x00I:x00N:x00_:x00N:x00T:x00$:x00.:x00~:x00L:x00S:x00 -r$:x00W:x00I:x00N:x00_:x000:x001:x00$:x00.:x00~:x00L:x00S:x00 setupdd.sys"
    - For $WIN_02$.~BT\setupdd.sys run "GSAR -i -o -s$:x00W:x00I:x00N:x00_:x00N:x00T:x00$:x00.:x00~:x00L:x00S:x00 -r$:x00W:x00I:x00N:x00_:x000:x002:x00$:x00.:x00~:x00L:x00S:x00 setupdd.sys"

    10 - MAKECAB setupdd.sys for each of the ~BS folders

    11 - Use MakeBS3.cmd (located in your usb_multiboot package under \makebt)
    "MakeBS3.cmd [USB_DRIVE_LETTER]:\XPS01" and
    "MakeBS3.cmd [USB_DRIVE_LETTER]:\XPS02"
    - This will make 2 boot sector files in your [USB_DRIVE_LETTER]:\btsec folder named
    XPS01.bs and XPS02.bs

    12 - EDIT boot.ini and add the lines "C:\btsec\XPS01.bs" and "C:\btsec\XPS02.bs"


    13 - In \$win_01$.~ls\I386\ren_fold.cmd change

    SET TAGFILE=\$WIN_NT$.~BT

    ren %USBDRIVE%\txtsetup.sif txtsetup.bak
    ren %USBDRIVE%\$WIN_NT$.~BT WIN_NT.BT
    ren %USBDRIVE%\$WIN_NT$.~LS WIN_NT.LS


    to

    SET TAGFILE=\$WIN_01$.~BT

    ren %USBDRIVE%\txtset01.sif txtset01.bak
    ren %USBDRIVE%\$WIN_01$.~BT WIN_01.BT
    ren %USBDRIVE%\$WIN_01$.~LS WIN_01.LS


    In \$win_01$.~ls\I386\undoren.cmd change

    SET TAGFILE=\$WIN_NT$.~BT

    ren %USBDRIVE%\txtsetup.bak txtsetup.sif
    ren %USBDRIVE%\WIN_NT.BT $WIN_NT$.~BT
    ren %USBDRIVE%\WIN_NT.LS $WIN_NT$.~LS

    to

    SET TAGFILE=\$WIN_01$.~BT

    ren %USBDRIVE%\txtset01.bak txtset01.sif
    ren %USBDRIVE%\WIN_01.BT $WIN_01$.~BT
    ren %USBDRIVE%\WIN_01.LS $WIN_01$.~LS

    14 - Repeat the above for the batch files in \$win_02$.~ls\ making sure you replace 01 with 02

    0

    This post has been edited by andy_le2k: Jun 24 2008, 04:58 PM
    Go to the top of the page
     
    +Quote Post
     
    Start new topic
    Replies
    unknown12
    post Dec 4 2008, 01:23 PM
    Post #2





    Group: Members
    Posts: 6
    Joined: 2-March 05
    Member No.: 45967
    Country Flag


    --Deleted--

    This post has been edited by unknown12: Dec 4 2008, 03:05 PM
    Go to the top of the page
     
    +Quote Post

    Posts in this topic
    - andy_le2k   [SOLVED] Install Multiple XP/Vista/PE/2003 from USB   Mar 25 2008, 09:23 AM
    - - jaclaz   I already replied you on the other thread: http://...   Mar 25 2008, 09:28 AM
    - - andy_le2k   Thanks again for the links. Been trying so hard t...   Mar 26 2008, 08:15 AM
    - - wimb   QUOTE (andy_le2k @ Mar 25 2008, 04:23 PM)...   Mar 26 2008, 09:56 AM
    |- - threeply   QUOTE (wimb @ Mar 26 2008, 07:56 AM) QUOT...   Mar 26 2008, 06:08 PM
    - - jaclaz   Generally speaking, two different installs of XP u...   Mar 26 2008, 11:17 AM
    |- - wimb   QUOTE (jaclaz @ Mar 26 2008, 06:17 PM) St...   Mar 26 2008, 11:54 AM
    - - ilko_t   There is an old MS article for NT, which gives som...   Mar 26 2008, 12:08 PM
    - - cdob   First congratulations to new section at MSFN. If ...   Mar 26 2008, 12:42 PM
    - - ilko_t   Thanks cdob, very useful info. Have you tested wi...   Mar 26 2008, 12:55 PM
    - - andy_le2k   QUOTE Then you boot from the PE on the stick (or a...   Mar 26 2008, 06:41 PM
    - - cdob   QUOTE (andy_le2k @ Mar 26 2008, 06:41 PM)...   Mar 27 2008, 05:19 AM
    |- - andy_le2k   QUOTE (cdob @ Mar 27 2008, 06:19 AM) QUOT...   Mar 27 2008, 06:46 AM
    - - ilko_t   You are installing from USB hard disk, right? Did ...   Mar 27 2008, 10:06 AM
    - - andyle2k   QUOTE You are installing from USB hard disk, right...   Mar 27 2008, 10:34 AM
    - - jaclaz   QUOTE (andy_le2k)This is what I did, I kind of gav...   Mar 27 2008, 01:44 PM
    - - cdob   QUOTE (andy_le2k @ Mar 27 2008, 06:46 AM)...   Mar 27 2008, 02:31 PM
    - - andyle2k   Hex editing won't (or didn't) work because...   Mar 27 2008, 06:30 PM
    - - ilko_t   Just a quick check list- to have lets say XP1 and ...   Mar 27 2008, 09:35 PM
    - - andy_le2k   QUOTE Both HEX edited to $win_01$.~bt an...   Mar 27 2008, 09:59 PM
    - - ilko_t   I didn't get your question. Txtsetup.sif is pa...   Mar 27 2008, 11:27 PM
    |- - wimb   QUOTE (ilko_t @ Mar 28 2008, 06:27 AM) ed...   Mar 28 2008, 03:04 AM
    - - andy_le2k   Thanks very much for your hard work ilko_t!...   Mar 28 2008, 12:49 AM
    - - jaclaz   After all I wasn't too far off the road. QUOT...   Mar 28 2008, 02:44 AM
    - - jaclaz   QUOTE (wimb)Different versions of XP cannot be com...   Mar 28 2008, 09:45 AM
    - - OldBuzzard   Am I to understand that I can have in install for ...   Mar 28 2008, 11:10 AM
    |- - jaclaz   QUOTE (OldBuzzard @ Mar 28 2008, 06:10 PM...   Mar 28 2008, 12:03 PM
    - - ilko_t   You should be able to to that, however, using x64 ...   Mar 28 2008, 12:27 PM
    - - cdob   QUOTE (ilko_t @ Mar 28 2008, 12:27 AM) no...   Mar 28 2008, 01:34 PM
    - - andyle2k   Hey guys, I was just wondering if you guys had th...   Mar 28 2008, 04:10 PM
    - - wimb   QUOTE (andy_le2k @ Mar 25 2008, 04:23 PM)...   Mar 29 2008, 08:35 AM
    |- - andy_le2k   QUOTE (wimb @ Mar 29 2008, 09:35 AM) QUOT...   Mar 29 2008, 05:19 PM
    - - ilko_t   Wimb, here is setupdd.sys from Tiny Hexer: Yep, ...   Mar 29 2008, 11:49 AM
    - - wimb   Hi ilko, In my setupdd.sys there is no $WIN_...   Mar 29 2008, 11:59 AM
    - - ilko_t   Did you select unicode? Without that, Tiny Hexer w...   Mar 29 2008, 12:04 PM
    |- - wimb   QUOTE (ilko_t @ Mar 29 2008, 07:04 PM) Di...   Mar 29 2008, 12:09 PM
    - - wimb   Thx guys, Multiple XP Install from USB SOLVED for...   Mar 29 2008, 01:14 PM
    - - ilko_t   Good I'm still puzzled about this unicode th...   Mar 29 2008, 01:47 PM
    - - jaclaz   Off Topic, but not much, there is still this quest...   Mar 31 2008, 03:15 AM
    |- - wimb   I tried to use SETUPLDRBIN and SETUPLDR.BIN instea...   Apr 9 2008, 12:43 AM
    - - malinduta   I understood the whole process but I can`t und...   Apr 13 2008, 03:35 PM
    - - ilko_t   Changing $WIN_NT$.~LS to $WIN_01...   Apr 13 2008, 04:03 PM
    |- - malinduta   QUOTE (ilko_t @ Apr 14 2008, 01:03 AM) Ch...   Apr 13 2008, 11:20 PM
    - - theles   QUOTE (andy_le2k @ Mar 25 2008, 12:23 PM)...   Jun 16 2008, 02:57 PM
    |- - wimb   QUOTE (theles @ Jun 16 2008, 10:57 PM) Th...   Jun 16 2008, 11:26 PM
    |- - theles   QUOTE (wimb @ Jun 17 2008, 02:26 AM) The ...   Jun 18 2008, 06:04 AM
    |- - wimb   QUOTE (theles @ Jun 18 2008, 02:04 PM) I...   Jun 18 2008, 11:40 AM
    |- - theles   Hi there! First, let me thank your instrutcio...   Jun 30 2008, 08:11 AM
    |- - theles   QUOTE (theles @ Jun 30 2008, 11:11 AM) I...   Jul 1 2008, 12:49 PM
    |- - wimb   QUOTE (theles @ Jul 1 2008, 08:49 PM) And...   Jul 1 2008, 01:06 PM
    |- - theles   QUOTE (wimb @ Jul 1 2008, 04:06 PM) Good ...   Jul 2 2008, 08:48 AM
    |- - wimb   QUOTE (theles @ Jul 2 2008, 04:48 PM) But...   Jul 2 2008, 11:24 AM
    - - andy_le2k   Never really had a chance to thank wimb for implem...   Jun 17 2008, 06:30 PM
    |- - wimb   QUOTE (andy_le2k @ Jun 18 2008, 02:30 AM)...   Jun 17 2008, 09:51 PM
    |- - ilko_t   QUOTE (andy_le2k @ Jun 17 2008, 05:30 PM)...   Jun 17 2008, 10:40 PM
    - - cdob   QUOTE (ilko_t @ Jun 17 2008, 10:40 PM) Ma...   Jun 18 2008, 01:34 AM
    - - andy_le2k   QUOTE (ilko_t @ Jun 17 2008, 10:40 PM) Th...   Jun 18 2008, 09:52 PM
    |- - cdob   QUOTE (andy_le2k @ Jun 18 2008, 09:52 PM)...   Jun 19 2008, 04:33 AM
    |- - andy_le2k   QUOTE (cdob @ Jun 19 2008, 04:33 AM) Some...   Jun 24 2008, 05:01 PM
    - - ng12345   QUOTE (andy_le2k @ Mar 25 2008, 09:23 AM)...   Jun 23 2008, 10:03 AM
    |- - jaclaz   QUOTE (ng12345 @ Jun 23 2008, 06:03 PM) I...   Jun 23 2008, 01:22 PM
    - - mikesw   Now if I only had Multiple MSDOS/DOS on this USB d...   Jul 2 2008, 12:25 PM
    |- - andy_le2k   @mikesw Please explain! So you don't have...   Jul 2 2008, 05:30 PM
    |- - mikesw   Please explain! So you don't have a BIOS t...   Jul 3 2008, 07:01 AM
    - - jaclaz   @mikesw Don't take this the wrong way but wh...   Jul 2 2008, 01:08 PM
    - - jaclaz   I don't see the point since your BIOS cannot b...   Jul 3 2008, 07:55 AM
    - - unknown12   --Deleted--   Dec 4 2008, 01:23 PM


    Google Frontpage Forums Unattended CD/DVD Guide

    Reply to this topicStart new topic
    1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
    0 Members:

     




    Lo-Fi Version Time is now: 22nd November 2009 - 12:09 AM
    All trademarks mentioned on this page are the property of their respective owners
    MSFN is not affiliated with Microsoft
    Copyright © 2001-2009 msfn.org
    Privacy Policy