Create a multi boot rescue USB flash drive


Recommended Posts

UPDATED 2009-8-20: Windows PE 3.0

******************************************************************

This is a neat little project for those of you that could be asked to help fix a PC at any moment in your life - the end result is a flash drive which when booted lets you pick from:

SystemRescueCD - http://www.sysresccd.org/Main_Page

An amazing Linux live environment which has a large array of rescue tools. Note this guide is specific to version 1.1.2. Later versions may remove compatibility.

Windows PE 2.1 - http://www.microsoft.com/downloads/details...;DisplayLang=en

This link is for info only - the 2.1 download is below. PE is a live Windows environment (I have this so I have a portable CHKDSK).

Windows PE 3.0 also works, but you have to grab this WAIK instead: http://www.microsoft.com/downloads/details...11-39c26d3b3b34

Darik's Boot and Nuke - http://dban.sf.net

For wiping disks.

ntpasswd - http://home.eunet.no/pnordahl/ntpasswd/

Recover Windows systems from forgotten passwords.

Memtest86+ - http://www.memtest.org/

Check for broken RAM.

Step 1: Collect together everything you are going to need

You'll need to download a bunch of tools to do this, I'll list everything here so you have it all before we start:

PeToUSB - http://gocoding.com/page.php?al=petousb

GRUB4DOS - http://sourceforge.net/project/showfiles.php?group_id=104188

SystemRescueCD - http://www.sysresccd.org/Main_Page

Windows AIK - http://www.microsoft.com/downloads/details...;displaylang=en

Step 2: Prepare the USB drive

The first thing to do is plug your USB drive into your machine, and start PeToUSB.exe (Run as Administrator under Vista). Tick the boxes:

Enable Disk Format

Quick Format (OK this is optional)

Force Volume Dismount

Now hit Start and wait for the process to finish.

If your drive is larger than 2GB you will encounter an error here. This is because PeToUSB tries to format the drive to FAT, which has a maximum of 2GB. The error is not a problem because the drive has been made bootable regardless. Simply head over to Windows Explorer and format it to FAT32 as normal.

Next, we're on to grubinst_gui.exe. Again, run this as Administrator if you're using Vista. Select the Disk option, then pick your flash drive from the list. You will have to make an educated guess as to which one it is as all your disks will be listed. If you've only got one flash drive connected it will normally be the bottom one. Leave everything else untouched and hit the install button.

Now, copy the grldr file from your GRUB4DOS 0.4.4 (it is newer than the one included in 1.0.1, though you still need grubinst_gui from there - complicated!) folder onto the root of the flash drive. That's the disk ready to go.

Step 3: Installing SystemRescueCD and the floppy images

DBAN, ntpasswd and Memtest86+ are all included with the SystemRescueCD package. Extract the contents of your SystemRescueCD ISO to a folder on your PC, then copy the following files to the root of your flash drive:

dban.img

initram.igz

memdisk

memtestp.img

rescuecd

sysrcd.dat

ntpasswd (the folder and files)

That's as hard as it gets to install those.

Step 4: Create a Windows PE 2.1 installation and copy it to the flash drive

Follow this guide (yes it is for 2.0 but works for 2.1 and 3.0), using the WAIK you already downloaded, up to the point where you have your ISO file ready to burn to CD: http://apcmag.com/3894/windows_pe_2_0_a_ti...tem_maintenance

Now you have your ISO, simply extract the following from it onto the root of your flash drive (including subfolders):

boot

EFI

sources

bootmgr

Step 5: Configure GRUB and we're done

You now need to create a menu.lst file in the root of your flash drive with a text editor (like notepad), and paste in the following text:

color black/cyan yellow/cyan
timeout 60

title SystemRescueCD
kernel /rescuecd initrd=initram.igz video=ofonly vga=0 scandelay=5
initrd /initram.igz

title Windows PE
chainloader /bootmgr

title DBAN
kernel /memdisk
initrd /dban.img

title ntpasswd
kernel /ntpasswd/vmlinuz rw vga=1 initrd=/ntpasswd/initrd.cgz /ntpasswd/scsi.cgz
initrd /ntpasswd/initrd.cgz

title Memtest86
kernel /memdisk
initrd /memtestp.img

You should now be able to reboot, select the flash drive as your boot device in your BIOS, and be ready to go!

Please report back if there are any problems with this, I've written it from memory after an evening of figuring it out. I have this setup running on an Integral 16GB drive with FAT32 so it does at least work for me! :)

post-25729-1203709610.jpg

Edited by Si

Hi imis - if you follow the guide I posted - http://apcmag.com/3894/windows_pe_2_0_a_ti...tem_maintenance - you will end up with an ISO file, which you can burn to a CD using a program like ImgBurn or Nero. Then its just a case of booting your computer from the CD.

  • 2 weeks later...

Thanks so much for this handy guide! I have been looking all over the net to find a guide suitable for an 8 gb memory stick. I had gotten the petousb error in my previous attempts but never realized i could finish the job using fat 32 and the built in vista format tool! In addition to expressing my gratitude, I also wanted to ask a question if I might.

Do you know if there's a way to add Bart PE to the list of software? I am trying to find a means of adding it with grub4dos but not having much luck. Hopefully one day it will be possible to use .iso files directly off the USB flash, maybe in the not too distant future?

Thanks again!

Thanks so much for this handy guide! I have been looking all over the net to find a guide suitable for an 8 gb memory stick. I had gotten the petousb error in my previous attempts but never realized i could finish the job using fat 32 and the built in vista format tool! In addition to expressing my gratitude, I also wanted to ask a question if I might.

Do you know if there's a way to add Bart PE to the list of software? I am trying to find a means of adding it with grub4dos but not having much luck. Hopefully one day it will be possible to use .iso files directly off the USB flash, maybe in the not too distant future?

Thanks again!

Glad you found it useful. (Y)

I don't see why you couldn't use bartpe in the same way as stock Windows PE, just by pointing GRUB at the correct boot file (/ntldr?).

With a 32GB USB key, would this possible to be able to boot into XP, and various Linux distros by using the last step?

Sure you just have to give GRUB the correct filenames and boot parameters. With Linux distros you can usually find out the correct ones by looking at the syslinux.cfg files on their livecds.

Glad you found it useful. (Y)

I don't see why you couldn't use bartpe in the same way as stock Windows PE, just by pointing GRUB at the correct boot file (/ntldr?).

Yes...I've tried that and for some reason, I get an image loading error on BartPE. Once it's booted, I can't access all the volumes (hard drives) on the computer, only the USB, the X: drive, etc. There's no listing for the main hard drive. I must be missing something...I'll poke around some more.

  • 4 weeks later...
Random question, but firstly, can we still use the USB stick to save normal files onto etc.

Yes, but it would be a good idea to create a 'data' folder or similar on it for your files, as there will be a lot of system files for all the operating systems loaded onto it.

What does a bootable flash drive enable one to do?

It's kind of like having multiple livecds in one place, allowing you to rescue broken systems etc. Check out Knoppix and Bart's PE for more info on the kinds of things you can do with them. (Y)

Yes, but it would be a good idea to create a 'data' folder or similar on it for your files, as there will be a lot of system files for all the operating systems loaded onto it.

It's kind of like having multiple livecds in one place, allowing you to rescue broken systems etc. Check out Knoppix and Bart's PE for more info on the kinds of things you can do with them. (Y)

Oo I have used knoppix. Thanks for posting this. So to create a data folder, just create two main folders such as data, and system files, and then everything should be fine?

Thanks for the help.

  • 3 weeks later...

i can't seem to get it to book

i'm getting Missing MBR-Helper message

i'm using a 4gig usb key

when i used the utility to format the key, it didn't give an error when trying to format it as FAT...

i then tried everything again but this time i formatted it with the utility and then again with windows explorer as FAT32 but i still can't get it to boot

any ideas?

If anyone is interested, since using this thread to create a bootable USB drive, i have played around with grub4dos and syslinux and developped a way to boot a version of knoppix using the grub4dos boot loader. This means i can still use the same menu, but hook to the syslinux bootloader to start linux.

I dont know about anyone else, but getting linux to boot from grub4dos is not as easy as it seems, as it comes up with random errors etc.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • BleachBit 6.0.1 Beta by Razvan Serea When your computer is getting full, BleachBit quickly frees disk space. When your information is only your business, BleachBit guards your privacy. With BleachBit you can free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. Designed for Linux and Windows systems, it wipes clean thousands of applications including Firefox, Microsoft Edge, Google Chrome, Opera, Safari, and more. Beyond simply deleting files, BleachBit includes advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and vacuuming Firefox to make it faster. Better than free, BleachBit is open source. BleachBit has many useful features: Delete your private files so completely that "even God can't read them" according to South Carolina Representative Trey Gowdy. Simple operation: read the descriptions, check the boxes you want, click preview, and click delete. Multi-platform: Linux and Windows Free of charge and no money trail Free to share, learn, and modify (open source) No adware, spyware, malware, browser toolbars, or "value-added software" Translated to 64 languages besides American English Shred files to hide their contents and prevent data recovery Shred any file (such as a spreadsheet on your desktop) Overwrite free disk space to hide previously deleted files Portable app for Windows: run without installation Command line interface for scripting and automation CleanerML allows anyone to write a new cleaner using XML Automatically import and update winapp2.ini cleaner files (a separate download) giving Windows users access to 2500+ additional cleaners Frequent software updates with new features Going beyond standard deletion of files, BleachBit has several advanced cleaners: Clear the memory and swap on Linux Delete broken shortcuts on Linux Delete the Firefox URL history without deleting the whole file—with optional shredding Delete Linux localizations: delete languages you don't use. More powerful than localepurge and available on more Linux distributions. Clean APT for Debian, Ubuntu, Kubuntu, Xubuntu, and Linux Mint Find widely-scattered junk such as Thumbs.db and .DS_Store files. Execute yum clean for CentOS, Fedora, and Red Hat to remove cached package data Delete Windows registry keys—often where MRU (most recently used) lists are stored Delete the OpenOffice.org recent documents list without deleting the whole Common.xcu file Overwrite free disk space to hide previously files Vacuum Firefox, Google Chrome, Liferea, Thunderbird, and Yum databases: shrink files without removing data to save space and improve speed Surgically remove private information from .ini and JSON configuration files and SQLite3 databases without deleting the whole file Overwrite data in SQLite3 before deleting it to prevent recovery (optional) BleachBit 6.0.1 Beta release notes: BleachBit 6.0.1 beta is now available for testing. This maintenance-focused release includes bug fixes, updated translations, and a range of safe enhancements. This release fixes a Windows security issue that could allow arbitrary file deletion during privileged cleaning (reported by Zeze with TeamT5). It also adds new cleaners (including a DNS cache cleaner, Claude Code, and Visual Studio Code forks), support for multiple Chrome and Edge profiles, new deep scan options for developer directories like node_modules and venv, and safer, faster file shredding. All Platforms Added cleaners for Claude Code, DNS cache, and many Visual Studio Code forks. Added support for multiple Chrome and Edge profiles. Chrome can now clean downloaded AI models. Deep Scan can optionally remove venv, __pycache__, node_modules, and .angular directories. Deep Scan is faster by skipping directories on the keep list. File shredding is safer, faster, and leaves fewer recoverable traces. Improved handling of cookies, symlinks, Unicode filenames, external processes, and configuration files. Improved Expert Mode warnings and long warning dialogs. Fixed crashes related to cleaner detection, invalid Unicode, and malformed cleaner data. Clipboard is now cleared automatically after shredding files via paste operations. Linux Added AppImage support. Added cleaners for Visual Studio Code, Codeium, Librewolf (.deb), Transmission (Flatpak), and Profanity. Improved Linux trash detection, including Snap-installed applications and mounted drives. Fixed Wayland root CLI issues and several Snap-related problems. Improved package dependencies, AppStream metadata, and desktop file handling. Fixed startup crashes when Python Requests is unavailable. Windows Fixed a security vulnerability that could allow arbitrary file deletion when cleaning with elevated privileges. Added %WindowsSystem% variable support. Improved clipboard clearing using native Windows APIs. Improved installer experience on unsupported Windows versions. Reduced installer size and improved application robustness. Fixed Unicode handling, filename anonymization, Git revision reporting, and splash screen stability. [full release notes] Download: BleachBit 6.0 | Portable | ~20.0 MB (Open Source) View: BleachBit Home page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • DriversCloud 12.1.6 by Razvan Serea With DriversCloud (formerly My-Config.com), you can explore your computer easily, safely and free. The application quickly scans your PC and identifies the hardware and software components. DriversCloud then establishes a list of the different drivers compatible with your OS and hardware. Download the drivers needed for the proper functioning of your computer. To detect your drivers, DriversCloud also displays a detailed summary of your hardware and software configuration, analyzes your BSOD, monitors in real-time your PC voltages and temperatures and lets you share your configuration online. Once the hardware components have been detected, you will be able to obtain with just a few clicks the latest drivers corresponding to the identified hardware. You can record your configuration on the site for free, and can get the corresponding URL to post the configuration to technical forums, e-mail and social networks. You can also download the detection result (the configuration) as a PDF file. To protect the user's privacy and data confidentiality, a 4-level confidentiality system was created that filters the XML marks and gives control to the user. The default level can be modified in the preferences. Using the maximum level will prevent the user from publishing his configuration and generating a corresponding PDF file. In non-connected mode, each XML configuration is stored on the server for one day (for practical reasons). However, you are given the opportunity to manually delete it. Created in 2004, and continually improved, My-Config.com has established itself on the web as a free service to PC users running Windows and Linux operating systems. The service is designed to work with the most common Internet browsers (Edge, Firefox, Chrome, Safari). Download: DriversCloud 64-bit | 20.0 MB (Freeware) Download: DriversCloud 32-bit | 18.9 MB Link: DriversCloud Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      agatameier earned a badge
      Week One Done
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
  • Popular Contributors

    1. 1
      +primortal
      516
    2. 2
      +Edouard
      193
    3. 3
      PsYcHoKiLLa
      147
    4. 4
      ATLien_0
      96
    5. 5
      Steven P.
      77
  • Tell a friend

    Love Neowin? Tell a friend!