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

    • My father still uses a programme written in dbase3. Still manages to work with a little help from dosbox. 
    • Microsoft hides these secret Windows 11 performance boost settings available on every PC by Sayan Sen Windows enthusiasts often look for ways to extract as much performance out of their systems as possible, and it's often the case that they try and do so while trying to minimize the heat and power consumption. This is especially relevant in the case of mobile Windows PCs since laptops and notebooks tend to get hot and management of that heat and power is harder in such a form factor. As such users often turn to techniques like under-volting which can be used to squeeze out the maximum capabilities of a chip while also maintaining lowered power levels. There are official apps from AMD and Intel with the likes of Ryzen Master and XTU (Extreme Tuning Utility). While these are quite handy, most enthusiasts probably prefer to dig into the BIOS and play around with settings there like Curve Optimizer on Ryzen, which lets users set various frequency-voltage scaling values. These are essentially called P-States. If you are not familiar with them, Processor Power Management is done through Advanced Configuration and Power Interface (ACPI) P-states and C-states. While P-states or performance pwoer states handle CPU voltage-frequency scaling, C-states deal with CPU sleep states so that some of the CPU functions, which are not necessary at that moment, can be disabled. The P-states and C-states work together to make the processor run more efficiently. It helps the OS and apps determine which cores can be parked and which should be boosted. Of course not every user is an enthusiast or knows the technicalities and integrities of how things like overclocking or undervolting work. Thankfully for them Windows itself offers something pretty cool, though it is hidden by default on all systems. By default, Windows only has two P-States, "Minimum Processor State" and "Maximum Processor State." However, this can be changed with a Registry trick to expand the options under a secret "Processor performance boost mode" dropdown. This essentially enables the HWP or hardware P-States available on a device, and these are not controlled just by the OS itself as the underlying hardware gets involved too. In total there are five Processor Performance Boost Mode profiles that control how Windows requests and allows CPU turbo/boost behavior under the different power policies. They are: Disabled: In this mode, processor boosting is effectively turned off. The CPU will avoid entering turbo or boost frequencies and instead operate closer to its base frequency ceiling. This can significantly reduce power consumption and heat output, but at the cost of reduced burst performance and responsiveness in short workloads. Enabled: This is the standard behavior where boost functionality is allowed under normal conditions. The processor can opportunistically increase frequency when workload demands it, balancing performance gains with power and thermal constraints as managed by the system. Aggressive: Aggressive mode favors performance more heavily, allowing the CPU to enter higher boost states more readily and sustain them longer. This should in theory improve responsiveness under bursty or heavy workloads but increases power draw and thermal output compared to the default enabled behavior. Efficient Enabled: This mode still allows boosting, but with a stronger bias toward energy efficiency. The system attempts to use boost more selectively, avoiding unnecessary frequency spikes when the performance gain is marginal. Efficient Aggressive: This is a hybrid approach where boost is still performance-responsive, but the system continuously weighs efficiency more heavily than in Aggressive mode. It aims to deliver noticeable performance improvements while reducing wasted power in less demanding scenarios. Here's how to enable the Processor performance boost mode: Open Registry Editor: Press Win+R, type regedit, and click OK. Go to: HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\be337238-0d82-4146-a960-4f3749d470c7 (where HKLM stands for HKEY_LOCAL_MACHINE_) Modify the value of Attributes from 1 to 2 (you can find modify option by right-clicking) After that, exit Registry, you should now be able to see the new "Processor performance boost mode" dropdown menu: As you can see there are now five new P-States or CPPC states or power profile available that help define the boost mode processor setting on your PC. Wrapping it up here's a quick run-down of the settings as defined by Microsoft itself. Setting Description Disabled The corresponding P-state-based behaviour is disabled. Collaborative Processor Performance Control (CPPC) behaviour is disabled. Enabled The corresponding P-state-based behaviour is enabled. CPPC behaviour is Efficient Enabled. Aggressive The corresponding P-state-based behaviour is enabled. CPPC behaviour is Aggressive. Efficient Enabled The corresponding P-state-based behaviour is Efficient. CPPC behaviour is Efficient Enabled. Efficient Aggressive The corresponding P-state-based behaviour is Efficient. CPPC behaviour is Aggressive. Aggressive At Guaranteed Windows calculates the desired extra performance above the guaranteed performance level, and asks the processor to deliver that specific performance level. Efficient Aggressive At Guaranteed Windows always asks the processor to deliver the highest possible performance above the guaranteed performance level. In the next part we shall be comparing these settings to explore how much of a benefit or regression they can provide in terms of performance and power efficiency. If you decide to change the values on your system and are experiencing problems like crashes or an overheating PC, make sure to revert the steps back to the original state.
    • I think he means you haven't reviewed previous UFC games. Of course it doesn't matter... Every time you just report on something that involves the President even if just simply what happened you guys usually get accused of being anti-Trump. We live in fun times.
  • Recent Achievements

    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • 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
  • Popular Contributors

    1. 1
      +primortal
      518
    2. 2
      +Edouard
      198
    3. 3
      PsYcHoKiLLa
      147
    4. 4
      ATLien_0
      93
    5. 5
      Steven P.
      77
  • Tell a friend

    Love Neowin? Tell a friend!