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![]()
Currently working on: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.
- [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
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:
- Copy and replace the cracked setupldr.bin to the i386 folder of your source before you use usb_multiboot.
- Create the source using usb_multiboot, for this example we will assume the source folders are [$WIN_xx$.~LS] and [$WIN_xx$.~BT]
- Goto [$WIN_xx$.~BT] and you should find both setupdd.sys and setupdd.sy_ Delete setupdd.sy_ and apply the following to setupdd.sysCODEmodifype.exe setupdd.sys -c
- CODEmakecab 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.
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

