Sei sulla pagina 1di 8

Guide for MultiBoot USB-stick with boot.

ini Menu - The CD Forum

http://www.911cd.net/forums//index.php?showtopic=20089

911cd Welcome Guest ( Log In | Register )

Calendar

Members

Search

Help

The CD Forum > The CD Forum > USB Booting


Donations to help offset the costs of running the forums may be made via the button below. Thanks!

Make payments with PayPal - it's fast, free and secure!

Start new topic

Guide for MultiBoot USB-stick with boot.ini Menu wimb_2


Jul 19 2007, 11:02 PM

Options
Post #1

Guide for MultiBoot USB-stick with boot.ini Menu


In this Guide is described How to Make a MultiBoot USB-stick, where boot options as MS-DOS, FREEDOS 1.0, GRUB4DOS, BartPE, TXT-mode Setup Windows
Member

XP, WinPE 2.0 and SYSLINUX can be used directly from boot.ini Menu.

Group: Members Posts: 50 Joined: 17-May 07 Member No.: 27,282

The booting mechanism of NTLDR with boot.ini Menu and the use of Bootsector Files in boot.ini has been excellently explained by jaclaz http://www.911cd.net/forums//index.php?sho...=16980&st=8 Booting the USB-stick via boot.ini directly into MS-DOS is realised as follows: 1. Create MBR, Partition and Format USB_stick using HP USB Disk Storage Format Tool Version 2.0.6 http://download.chip.eu/en/USB-Disk-Storag...0.6_176935.html Use FAT filesystem and Create a DOS startup disk using MS-DOS bootfloppy with system files. 2. Test if USB-stick is booting into DOS. If it is not bootable: Check BIOS bootsequence settings or use different USB-stick / computer combination 3. Use TinyHexer or HDHacker to Save the USB-stick Logical Drive bootsector as file MSBOOT.dat on your USB-stick. The Logical Drive bootsector is usually located 63 sectors from the beginning (MBR=sector 0) of the USB-disk. HDHacker see http://dimio.altervista.org/eng/ TinyHexer see http://www.mirkes.de/en/freeware/tinyhex.php 4. Open CMD Window and use bootsect.exe of VISTA WAIK to change the USB-stick Logical Drive bootsector:

1 of 8

16/11/07 10:40 PM

Guide for MultiBoot USB-stick with boot.ini Menu - The CD Forum

http://www.911cd.net/forums//index.php?showtopic=20089

CODE bootsect.exe /nt52 R: for making XP-style NTLDR bootsector, where R: is your USB-stick drive. The Windows Automated Installation Kit with the program bootsect.exe is available as download from Microsoft: http://www.microsoft.com/downloads/details...;displaylang=en Instead of using bootsect.exe one can also Reset the NTLDR Bootsector, which is in most cases acceptable. When the USB-stick is first formatted with the HP Utility without using DOS System files, one can use HDHacker to Save the USB-stick Logical Drive NTLDR Bootsector as file NTBOOT.dat which can be used in step 4. to Reset the USB-stick Logical Drive NTLDR Bootsector according to: - HDHacker use Load sector from file NTBOOT.dat - HDHacker use Write sector on Disk Drive USB-stick 5. Copy ntldr, NTDETECT.COM, Bootfont.bin and boot.ini from your C-drive to USB-stick 6. Change in boot.ini on stick rdisk(0) in rdisk(1) and add the following rule: C:\MSBOOT.dat="MS-DOS" BOOT.INI CODE [Boot Loader] Timeout=15 Default=multi(0)disk(0)rdisk(1)partition(1)\WINDOWS [Operating Systems] multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Start Windows XP Professional from Harddisk" /noexecute=optin /fastdetect C:\MSBOOT.dat="MS-DOS" In this way you can use use boot.ini to boot your USB-stick directly into MS-DOS. Other boot options (FREEDOS 1.0, GRUB4DOS, BartPE, TXT-mode Setup Windows XP, WinPE 2.0 and SYSLINUX) can be added to boot.ini, and can be used directly from boot.ini menu. WARNING Be very carefull with writing of bootsectors with bootsect.exe or HDHacker. Be always aware you make your changes on the right drive. Otherwise loss of DATA may be the result. It is advisable to first remove all other removable drives, like USB Backup Harddisks and Memory Cards, so that they cannot be involved by mistake in the writing process.

2 of 8

16/11/07 10:40 PM

Guide for MultiBoot USB-stick with boot.ini Menu - The CD Forum

http://www.911cd.net/forums//index.php?showtopic=20089

For FREEDOS 1.0 the bootsector was obtained as described in steps 1-3 In the case of FREEDOS and SYSLINUX it is not possible to use bootsect.exe to change to a correct NTLDR bootsector. For FREEDOS after Saving the bootsector, a re-format as in step 1. was used and then continue with steps 2-6 When both MS-DOS and FREEDOS are added it is necessary to place the COMMAND.COM in a folder and to use in CONFIG.SYS and FDCONFIG.SYS SHELL commands like shell=\dos\command.com /e:1024 /p and 12345?!SHELL=\FREEDOS\COMMAND.COM /E:2048 /F /MSG /P Download FREEDOS 1.0 bootfloppy image fdboot.img from http://www.freedos.org/ GRUB4DOS is added to boot.ini Menu as follows: Download grub4dos from http://grub4dos.jot.com/WikiHome and http://download.gna.org/grub4dos/ Launching of GRUB4DOS Menu via grldr is obtained by simply adding to boot.ini the rule: C:\grldr="Start GRUB4DOS Menu - DOS Boot Floppy Images + Linux" Use WinImage http://www.winimage.com/ to Inject Files and to Save a DOS Boot Floppy Image. Download ready-to-run DOS Boot Floppy Images fdubcd.img and msubcd.img made by Erwin Veermans http://www.veder.com/nwdsk/ These images are based on the Modular Boot Disk of Bart Lagerweij http://www.nu2.nu/bootdisk/modboot/ and were made for Ultimate Boot CD http://www.ultimatebootcd.com/ Use the grub4dos tutorial to make menu.lst and add menu.lst to USB-stick http://grub4dos.sourceforge.net/wiki/index.php/Main_Page http://www.gnu.org/software/grub/manual/grub.html http://grub4dos.sourceforge.net/wiki/index...ub4dos_tutorial Use Disk emulation with Direct mapping in menu.lst: menu.lst CODE color white/blue timeout 30 default 0 title Boot from DOS Boot Floppy Image map (hd0,0)/dosbtfpy.ima (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0) Besides DOS Floppy Images, it is interesting to add to menu.lst of grub4dos also Puppy Linux (NTFS Read/Write support) and DSL Linux (Knoppix with NTFS Read only support) , black/light-gray

3 of 8

16/11/07 10:40 PM

Guide for MultiBoot USB-stick with boot.ini Menu - The CD Forum

http://www.911cd.net/forums//index.php?showtopic=20089

as described by diddy http://www.911cd.net/forums//index.php?showtopic=18846 Download the latest Puppy Linux ISO file - Tested using "puppy-2.12-seamonkey.iso" http://puppylinux.org/user/news.php Download the latest DSL Embedded .ZIP file - Tested using "dsl-3.3-embedded.zip" http://damnsmalllinux.org/ BartPE of Bart Lagerweij is a MINI XP with very powerfull Program Menu, and can simply be added to boot.ini Menu using the peinst.cmd of BartPE http://www.nu2.nu/pebuilder/ For a MultiBoot USB-stick combining BartPE ( minint folder ) and the LocalSource of Windows XP Setup (see below), I found the following solution to make BartPE boot from the minint folder, instead of launching Windows XP setup. Hexedit peldr using TinyHexer. Change in peldr the first occurrence of txtsetup.sif in notsetup.sif Now BartPE will boot from minint folder and will not use WinXP txtsetup.sif from root directory. http://www.msfn.org/board/index.php?showto...1384&st=224 TXT-mode and GUI-mode Setup Windows XP The procedure for Install of Windows XP from bootable USB-stick using a LocalSource was developed by ilko_t , jaclaz , cdob and porear and is described by ilko_t in MSFN Forum: http://www.msfn.org/board/index.php?showto...1384&st=199 The automatic making of a bootable USB-stick for Install of Windows XP can be realised with the usb_prep6.cmd batch command program: http://www.msfn.org/board/index.php?showto...1384&st=418 The TXT-mode Setup of Windows XP includes the possibility to use the Recovery Console. The Recovery Console is of very limited use as compared to BartPE having Mini XP Desktop with very powerfull Program Menu. Nevertheless it is worthwhile to mention the Recovery Console within the scope of this subject. Further Improvements of MultiBoot USB-stick: 1. Using Windows XP Source with Updates and DriverPacks Integrated: using RyanVM Integrator http://integrator.siginetsoftware.com/index.php?download with Update Packs and Addons http://www.ryanvm.net/forum/index.php?sid=...490d2bd5184b68a and for DriverPacks using DP Base http://driverpacks.net/DriverPacks/overview.php and for Unattended Install http://unattended.msfn.org/unattended.xp/

4 of 8

16/11/07 10:40 PM

Guide for MultiBoot USB-stick with boot.ini Menu - The CD Forum

http://www.911cd.net/forums//index.php?showtopic=20089

$OEM$\CMDLINES.TXT can be used for making UserAccounts and install of Registry Tweaks at T-12 On first logon the Extracted BTS DriverPacks are deleted, which normally takes a long time, because SystemRestore copies them to System Volume Information folder. The Disable_SystemRestore.reg Registry Tweak prevents this action, so that first logon is much faster. Personally I am using only the 5 smallest BTS DriverPacks with Mass Storage text mode enabled. So I do not integrate the 5 large Sound and Graphics DriverPacks, but use these Packs manually when Updating Drivers. The extraction and deletion of these 5 large DriverPacks is taking a lot of time. 2. Booting from DOS, with Ghost for System Backup and System Restore http://www.911cd.net/forums//index.php?sho...=19621&st=7 3. Adding WPI for Automatic Install of Additional Programs http://wpiw.net/ 4. Unattended Install of Office 2003 with Updates Integrated http://www.siginetsoftware.com/forum/ 5. Adding WinTools running direct from USB-stick using nu2menu http://www.dirk-loss.de/win-tools.htm For SYSLINUX and WinPE, I used HDHacker to Reset the NTLDR bootsector as described in step C. Download SYSLINUX from http://syslinux.zytor.com/download.php Install and use of SYSLINUX is described by diddy (see above). Install of SYSLINUX is drive specific and it is not possible to Reinstall SYSLINUX by simple filecopy. WinPE is a Console with rather limited use. A lot of simple programs which run from BartPE, do not run from WinPE. So adding WinPE 2.0 and SYSLINUX are considered as Optional. Windows PE 2.0 is included in the Windows Automated Installation Kit WAIK. To Add WinPE 2.0 as boot option to boot.ini menu use steps A-C: A. First use HDHacker to Save the USB-stick Logical Drive NTLDR Bootsector as file NTBOOT.dat B. Open CMD Window and use bootsect.exe to change the bootsector for use with bootmgr CODE bootsect.exe /nt60 R: where R: is your USB-stick drive. Then use HDHacker to Save this bootsector to file pe2.dat and add an appropriate rule to boot.ini C. Reset the USB-stick Logical Drive NTLDR Bootsector required for boot.ini ( saved in file NTBOOT.dat ): HDHacker use Load sector from file NTBOOT.dat HDHacker use Write sector on Disk Drive USB-stick

5 of 8

16/11/07 10:40 PM

Guide for MultiBoot USB-stick with boot.ini Menu - The CD Forum

http://www.911cd.net/forums//index.php?showtopic=20089

All Editable Configuration Files for making a MultiBoot USB-stick are given as Attachment. Adapt these files to your personal needs.
This post has been edited by wimb_2: Oct 29 2007, 06:47 AM Attached File(s)

usb_cfg2.zip ( 29.29K ) Number of downloads: 227

--------------------

Make Bootable USB-stick or USB-Harddisk for Install of Windows XP - Using - usb_prep7.zip


At MSFN - Forum

hilander999

Jul 20 2007, 12:18 AM

Post #2

Thank you for spending the time to gather this information into a useable
Platinum Member

solution. NICE JOB.

Group: Moderator Posts: 1,867 Joined: 20-September 03 From: Earth: It's the little blue planet circling the Sun in the Milky Way Galaxy. Member No.: 1,729

--------------------

Free stuff:

Official BTS Driverpack Support for bartpe


-------------------------------------------------------------------------------------------------------------Please remember to use the SEARCH engine before posting new topics. Also remember to select "All Forums" & "Show results as posts" in the options. -------------------------------------------------------------------------------------------------------------"When one's words are not better than silence, One should remain silent." ~ Kwai Chang Caine

The Ultimate Boot CD for Windows: Forum

Ed_P

Jul 20 2007, 08:47 AM

Post #3

QUOTE (wimb_2 @ Jul 19 2007, 11:02 PM)

4. Open CMD Window and use bootsect.exe of VISTA WAIK to change the
Platinum Member

USB-stick Logical Drive bootsector: CODE bootsect.exe /nt52 R: for making XP-style NTLDR bootsector, where R: is your USB-stick drive. Does this mean that this whole approach is only available to VISTA users?

Group: Admin Posts: 2,573 Joined: 12-August 05 From: Western NY, USA Member No.: 13,258

--------------------

6 of 8

16/11/07 10:40 PM

Guide for MultiBoot USB-stick with boot.ini Menu - The CD Forum

http://www.911cd.net/forums//index.php?showtopic=20089

Use the forum's search tool to find postings about problems similar to yours. And for searches involving three letter acronyms such as USB add an * to the end. For example: USB*

Ed

wimb_2

Jul 20 2007, 10:08 AM

Post #4

QUOTE (Ed_P @ Jul 20 2007, 03:47 PM) QUOTE (wimb_2 @ Jul 19 2007, 11:02 PM)

4. Open CMD Window and use bootsect.exe of VISTA WAIK to change the
Member

USB-stick Logical Drive bootsector: CODE bootsect.exe /nt52 R: for making XP-style NTLDR bootsector, where R: is your USB-stick drive. Does this mean that this whole approach is only available to VISTA users?

Group: Members Posts: 50 Joined: 17-May 07 Member No.: 27,282

The Windows Automated Installation Kit with the program bootsect.exe is for everybody available as download from Microsoft: http://www.microsoft.com/downloads/details...;displaylang=en The WAIK is a rather large download for getting the small file bootsect.exe. Another solution can be reformating the USB-stick, which is in most cases acceptable. When the USB-stick is first formated with the HP Utility without using DOS System files, one can use HDHacker to Save the USB-stick Logical Drive NTLDR Bootsector as file NTBOOT.dat which can be used later in step 4. to Reset the NTLDR Bootsector, instead of using bootsect.exe
This post has been edited by wimb_2: Oct 23 2007, 08:02 AM

--------------------

Make Bootable USB-stick or USB-Harddisk for Install of Windows XP - Using - usb_prep7.zip


At MSFN - Forum

wimb_2

Aug 2 2007, 02:48 AM

Post #5

The Guide for making a MultiBoot USB-stick with boot.ini Menu was improved and updated. All Editable Configuration Files for making a MultiBoot USB-stick are given in post
Member

#1 as Attachment file usb_cfg2.zip

7 of 8

16/11/07 10:40 PM

Guide for MultiBoot USB-stick with boot.ini Menu - The CD Forum

http://www.911cd.net/forums//index.php?showtopic=20089

Group: Members Posts: 50 Joined: 17-May 07 Member No.: 27,282

This post has been edited by wimb_2: Aug 2 2007, 02:48 AM

--------------------

Make Bootable USB-stick or USB-Harddisk for Install of Windows XP - Using - usb_prep7.zip


At MSFN - Forum

ilko

Aug 2 2007, 01:50 PM

Post #6

Great job
Member

Group: Members Posts: 35 Joined: 3-May 07 Member No.: 26,983

Enter Keywords

Search Topic

Next Oldest USB Booting Next Newest

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

|-- USB Booting

Go

Display Mode: Standard Switch to: Linear+ Switch to: Outline

Track this topic Email this topic Print this topic Subscribe to this forum

Lo-Fi Version

Time is now: 16th November 2007 - 04:33 PM

Powered By IP.Board 2007 IPS, Inc.

8 of 8

16/11/07 10:40 PM

Potrebbero piacerti anche