IntroductionRMPrepUSB is a Windows utility that can be used to format any USB storage device, e.g. USB Flash drive (UFD) or USB hard disk, as a bootable device (but cannot be used on USB Floppy drives to format floppy disks). It can be used to partition, format, write a Master Boot Record, partition table and/or Volume Boot Record (sometimes called a Partition Boot Record) and operating system boot code to a USB storage device (e.g. USB flash memory drive or USB hard disk). It can also be used to work on non-USB drives. If you installed RMPrepUSB using the Installer, you can easily uninstall it using the ‘uninstall RMPrepUSB’ entry in the Start Menu. However, you do not need to install RMPrepUSB (it is portable and will even run under BartPE or WinPE v1/v2/v3), just ensure that all the files are copied to a folder on your hard drive or storage drive. Note: if running Win PE you may need to copy the MSVBSM60.DLL from the WINPE_EXTRA folder to the same folder that RMPrepUSB.exe is in. Also, if you are running under Win PE v1/BartPE you may need to copy showdrive.exe file from the WINPE_EXTRA folder (do not copy this file if running Windows XP+ though as it can cause problems!) - showdrive auto-mounts a new drive after it has been formatted if the OS itself does not. To start - select the Language that you want to use in the top-right hand box. RMPrepUSB will list all *.INI files found in the .\LANG folder. Note that the translated files may be slightly out of date, but if you select English you will always get the latest version of help text. If you are running Windows XP, you may need to install Asian language support (see FAQ Q32) Please read the all the FAQs at the end of this document! LICENCE SMALL PRINT RMPrepUSB and RMPartUSB are free (Freeware) for private use only; however they are not Open Source programs. For commercial use and licensing please contact support@rm.com. Distribution, sale or use in a commercial solution is forbidden without permission from RM Education plc (see FAQs below for more information). The RMPrepUSB download includes some executables which are not the intellectual property of the author or RM Education. The licensing terms and conditions of these programs are: Grubinst.exe, grldr and touchdrv.exe – Author: bean123 homepage GPL (see GPL.txt) Mkefs.exe – Author: MattWu mattwu@163.com homepage GPL (see GPL.txt) Syslinux.exe – Author: H. Peter Anvin see homepage QEMU - QEMU was written by Fabrice Bellard and is free software. HashMyfiles.exe - by NirSoft (licence files included with download) WinContig.exe. - with kind permission from Marco D. Free for personal and commercial use. Various parts are released under different GNU General Public License version 2-compatible licenses. These include the GNU Lesser General Public License (GNU LGPL) or permissive licenses such as the BSD license RMPrepUSB is intended for use on USB Flash memory drive, USB hard disk drives or other USB storage devices such as card readers. Press F1 for help and shortcut functions. RMPrepUSB can: · Partition, format and make bootable a USB drive (follow the steps numbered 1-6 in blue text) · Clean (erase/wipe) a USB drive (best to unplug and re-plug afterwards) · Backup a USB drive (or parts of a USB drive) to an image file · Restore an image file (or part of an image file) to a USB drive · Install the grub4dos or syslinux bootloader onto a USB drive · Test a USB drive (useful for testing fake USB flash memory drives) · Test raw read/write speed of a USB drive · Eject a USB drive (for safe removal) · Display the partition structure of a USB drive (or image file) · Be used after PEBuilder to install your XP PE files to a bootable USB drive. · Work on hard disk drives as well as USB drives (by using the ALLDRIVES command line parameter) · Create an ext2 read/write filesystem (as a mountable file – e.g. casper-rw) · Emulate booting from the selected USB drive (QEMU = F11) · Calculate MD5/CRC32/SHA1 checksum of a file (ALT+F2) · Overwrite Master Boot Record with default (Win7/Vista) MBR · Run Disk Doctor utility for disk testing/editing · Install the WEE bootloader to Track 0 (overwrites MBR) · Run DiskDoctor (a raw disk editing/testing/data search utility) · Make all files on a drive contiguous using WinContig Note: Red or blue coloured buttons will write to your USB drive in some way. Except for the Test Speed button, all red/blue buttons will erase, alter or overwrite your USB drive contents. If you have any important files on the USB drive, copy them to a safe place first! Important: always run these utilities with Administrator privileges or USB drives may not be accessible and you may get a write error reported! When you click on one of the Prepare Drive, Quick Size Test, Test Speed, Clean, Image Tool or Info buttons, RMPrepUSB will call the Windows command line utility RMPartUSB - the exact command line will be shown to the user beforehand. If you prefer, you can use RMPartUSB in your scripts or batch files rather than use RMPrepUSB. Type ‘RMPartUSB’ in a Windows command shell to see full instructions on how to use the utility or read the rmpartusb.txt readme file.
Fig. 1 Note: The button ‘6 Prepare Drive’ uses the settings numbered 1-5.
The two imaging operation buttons (FiletoUSB and USBtoFile) are totally independent of any other settings within RMPrepUSB
(i.e. the NTLDR, FAT32 and all other options have no effect when imaging – a binary image is simply copied to or read from the UFD
and is similar to the dd.exe utility, no additional ‘tweaking’ is done by RMPrepUSB or RMPartUSB and no extra files are copied afterwards).
The ‘Install grub4dos’ function installs grub4dos to any USB drive and does not call RMPartUSB.
Also note that during operation, both the commands that will be executed and the status are shown at the bottom of the form.
Fig. 2 RMPrepUSB Help form (press
F1 or Help button)
Click to see RMPrepUSB videos on YouTubeSix steps (1-6) to make your USB drive bootable1. Select the USB drive in the listbox if more than one is present and either leave the ‘1 Partition Size’ as MAX or change it (e.g. type 512 for a partition size of 512MiB). 2. Change the ‘2 Volume label’ text if you want to. 3. Set the ‘3 Bootloader Options’ that you want installed onto the new partition after it has been formatted. 4. Change the ‘4 Filesystem and Overrides’. You may need to experiment with these before you can find a combination that works. If in doubt use ‘FAT32’ and ‘Boot as HDD’. 5. If you want to, you can copy the contents of a folder (or zip/iso file) to the new empty partition on the USB drive after it has been formatted by RMPrepUSB. Tick the ‘5 COPY OS FILES’ box if you want to do this. Note: RMPrepUSB will not place any boot files on the USB drive and it will not be bootable unless you copy some boot files onto it using this option or by manually copying files over after formatting. 6. Click
on the blue ‘6 Prepare Drive’ button. Note: When finished and before you unplug the USB drive, click on the ‘Eject’ button to prevent file corruption. If you are experiencing difficulties using RMPartUSB or RMPrepUSB when formatting drives as a ‘floppy’ device – try disabling your antivirus software. Some antivirus software (e.g. Symantec) can interfere with direct access to the drive once it has been formatted as a floppy drive! Alternatively, disable floppy disk scanning in your AntiVirus options. Special shortcut keys: F1 – Help If you have the English language selected, you can press F1 to see this hotkey list and then press ESC to close the help form. There are many other hotkey combinations - these can be seen when you use the menu tabs: Fig. 3 Drive menu showing hotkey shortcuts About the COPY OS FILES functionRMPrepUSB prepares a USB drive by partitioning it, formatting it and placing boot code in the Master Boot Record (MBR) and Volume Boot Record (VBR, sometimes called the Partition Boot Record or PBR). However, the USB drive will not boot unless you copy boot files onto the drive. You can automatically copy files to the root of the USB drive after it has been formatted by ticking the COPY OS FILES option. If you do not tick this option then you must copy any boot files onto the USB drive manually afterwards (make sure you copy the system and hidden files too!). The latest version allows you to either COPY FILES FROM A FOLDER (yes) to the root of the target drive or EXTRACT FILES FROM A FILE (no) and copy them to the target drive. If you have all your files in a folder and just want to copy the files inside the folder to the USB drive, then choose 'Yes'. If you select a folder, the entire contents of the folder will be copied after the format has completed. The contents of the selected folder (and all subfolders) will be copied if you choose 'No'.
If you want to EXTRACT files from a compressed file (e.g. an ISO or ZIP file) then choose 'Yes'. If you answer 'yes', and then select a compressed file, such as an ISO file or zip file, the decompressed contents of the file will be copied to the target drive after it has been formatted. You can ask RMPrepUSB to extract files from an iso,zip,7z,gzip,cab,rar,vhd,lzh,img or ima file after formatting has completed.
Saving your favourite configurationsIf you regularly make bootable USB drives or you want to distribute RMPrepUSB to other users inside your company or friends, together with a source folder containing your OS files, you can save the RMPrepUSB settings to RMPrepUSB.ini automatically by pressing F10. Here is how to do it: A. Place your source OS files in folders on the C: drive of your hard
disk, e.g. C:\ACME\RMPrepUSB\SourceFiles\OS2.4 C:\ACME\RMPrepUSB\SourceFiles\OS2.7 Now for each USB configuration:
C. (optional) After 'Prepare Drive'
has finished and the file copy has completed, untick the ‘No user prompts’ box
and then click on Install grub4dos and choose the grub4dos options
as you require (this sets the grub4dos option to either MBR or PBR depending on
which one you choose). If you don't need to run grub4dos, then skip this bit as
it is not necessary. If you also want to create an ext2 filesystem, you should use the
Create ext2 FS button to set those options (though you can cancel after
entering the volume name and size parameters). Now you can tick the ‘No user
prompts’ box again if you don’t want the end user to have lots of prompts. E. You will be asked to input a title (which will eventually appear in the user’s menu on each first run of RMPrepUSB – see section F below) and then add some text for the user’s instructions: If you don't already have an RMPrepUSB.ini file then it will be created for you. You can press F9 if you want to see it or edit it. Repeat this (B-E) for all your different types of bootable OS's. F. Exit from RMPrepUSB and then restart RMPrepUSB - because an INI file is now present in the same folder as RMPrepUSB.exe, the user will now see a menu list when RMPrepUSB first runs and can pick one of the preset configurations. Clicking ‘Cancel’ will not set any options, but choosing a configuration and clicking OK will pre-set the options which may override any options the user chooses. The user will now be prompted with the instructions that you previously entered into the configuration file, e.g.: G. When the user clicks on the ‘6 Prepare Drive’ button, they will be prompted to accept or refuse the SIZE and VOLUME LABEL that was set in the configuration file:
You can edit the INI file using Notepad to make changes or delete any section – just press F9. Note that you can hide some buttons and checkboxes if you wish. Here is an example RMPrepUSB.ini file with only one menu item: TITLE=Ylmf Live USB The RMPrepUSB PDF file (press F1 and then OK to view it) has a more detailed explanation of the steps above and includes screenshots too. How to boot to an Operating SystemRMPartUSB only partitions and formats the drive. You must copy over the boot files to make a bootable disk. RMPrepUSB can copy these boot files to the USB drive if you use the COPY FILES folder and tick the Copy check box. Hint: If the boot files are present but your PC is not booting correctly - check your BIOS menu options! Some BIOSes have an option to boot a USB drive as a ‘Fixed Disk’ or a ‘Removable Disk’. Try different BIOS settings if you are having difficulty getting your USB drive to boot! Here are some quick tips on what boot files you may need to boot different Operating Systems: Required extra boot filesMS-DOS requires IO.SYS (or MSDOS.SYS depending on the version used) and COMMAND.COM in order to boot. You must obtain these files from somewhere (e.g. a DOS floppy boot diskette?). Simply copy these files onto the USB drive after you have formatted it using the MS-DOS option, by using the COPY FILES option to point to where you keep these MS-DOS boot files and tick the Copy checkbox. FreeDOS requires the files KERNEL.SYS and COMMAND.COM (which may be renamed in some versions) in order to boot. The latest version of RMPrepUSB includes the few essential boot files in a FreeDos folder, so simply use the COPY FILES option and select the FreeDOS option in RMPrepUSB. WinPE v1 and XP require many files to boot, but the first file is NTLDR. If you want to boot to BartPE, see Q24 below. WinPE v2 and v3 and Vista and Windows 7 require many files to boot, but the first file is BOOTMGR. For instance, just copy all files from a Vista or Windows 7 bootable DVD to the USB drive after formatting using the WinPEv2 (bootmgr) option in RMPrepUSB. SysLinux when booting will first look for the files LDLINUX.SYS and a SYSLINUX.CFG file. Many other files will also be required. If you are using isolinux, use the Install SysLinux RMPrepUSB option and then after the files have been copied over, rename isolinux.cfg to syslinux.cfg. Note that when RMPrepUSB installs syslinux it uses the -fma switches, so as well as the PBR boot code being changed, the MBR boot code will also be changed. If you want to also boot to grub4dos, install grub4dos to the MBR after running syslinux.exe. You can then boot to grub4dos, and then to syslinux by using chainloader (hd0,0)+1 to load the syslinux PBR bootstrap code. Grub4dos when booting will first look for the file GRLDR. RMPrepUSB will ask you if you want it to copy this file after it has installed the boot code. After that it will look for a \menu.lst file. Note that the version of grubinst.exe is not the normal v1.1 version, it is a ‘homebrew’ version (I have called v1.2) which has been specially modified to work on more systems/BIOSes than the old 1.1 version. The grldr file is recent ‘chenall/tinybit’ version but you can change it for any version you like by overwriting the file. If you want to use a different version of syslinux or grub4dos, place your own versions of syslinux.exe, (grubinst.exe) and grldr into the same folder as RMPrepUSB and overwrite the ones provided. Explanation of the Override optionsThe most complex part of RMPrepUSB is in selecting which overrides (if any) to use. The reason that there are so many choices is that different BIOSes behave in different ways. A USB Flash Drive (UFD) that is formatted normally and contains MS-DOS boot files may boot as an A: drive on one system, but boot as a C: drive on another system. If you change the BIOS Setup menu options on the same system, it might then boot as an A: drive. On yet a third system, the same USB flash drive might not boot at all! In addition, some BIOSes will not boot from a UFD at all if the physical drive size is greater than 512MB – or – some BIOSes may not boot from a UFD if the volume size is over (say) 1.3GB. If you wish to boot from a UFD or USB hard drive, you may need to experiment with the settings below. You may find that one group of settings will work for one system and a different group of settings will work for another system. If using UFDs, always try a 512MB USB flash drive first before you move on to larger UFDs – some older BIOSes will only work with small UFDs. Boot as FDD (A: no MBR)This option will format the drive with the chosen filesystem format option (FAT16\FAT32\NTFS) - the USB drive will have no partition table just like a floppy disk. The first sector of the USB drive will typically contain the operating system boot code. This option is usually used for an MS-DOS or FreeDOS drive that you wish to boot as a large floppy drive (i.e. they will boot to the A: prompt). You can also select the 64hd/32sec option (recommended). If you de-select this option then the volume boot record will use 255 heads and 63 sectors per track. Note: If you need to boot as drive A:, grub4dos can be used to map the UFD always as drive A: even if the BIOS tries to boot it as a hard disk. See FAQ 35. Boot as ZIP (A: with MBR)This option creates a Master Boot Record and partition table in the first sector of the drive. The Volume Boot Record code that is written to the drive will be suitable for booting MS-DOS or FreeDOS as a floppy drive. In addition, a drive geometry of 64hd\32sectors will be used (if possible). If you wish to boot the USB drive as a hard drive then untick this option or tick the 64hd\32sec option. ‘Force use of LBA calls’ can be used with this override, but ticking the 64hd/32sec override will de-select the ZIP option, as the ZIP option will add the 64hd\32sec override. Note: Some ZIP drive specifications define the first three entries in the partition table as unused and the fourth partition table entry is used, however this partition arrangement is not recognised by Windows and such a partition cannot be accessed by Windows Explorer. Only the first partition of a removable drive can be accessed by Windows OS’s (unless a special driver is installed). Boot as HDD (C: 2PTNS) - Recommended to try first!This option simply adds a second, small hidden partition entry to the partition table. Some BIOSes will treat a USB drive as a hard disk if it sees more than one partition table, because the ‘specification’ of a ZIP drive (super-floppy) is that it must only have one partition (thanks to ‘online’ of www.boot-land.net for this discovery). If you want to boot a system from a USB drive as a hard disk, set this option and untick the ZIP option. You can try either the ‘Force LBA’ override or the 64hd\32sec override with this option. Note: If you want to boot a USB drive as a hard disk and this option does not appear to work, try re-partitioning again but leave all the USB-FDD, USB-ZIP and USB-HDD options unticked. Forcing the use of LBA calls (only use if boot problems)This option sets the end Cylinder/Head/Sector values in the partition table to their maximum value of 1023 (3FEh) cylinders, 255 heads (FEh) and 63 sectors – even if the partition size is under 8GB. If BIOSes read a drive partition table and see that the CHS value is the maximum, then the BIOS may use a sector translation of 255 heads and 63 sectors per track. In addition, partition and volume boot record boot code will use LBA Extended Int 13h BIOS calls if it determines that the CHS values are set to the maximum. This also may help to successfully boot an operating system from a USB drive. This option cannot be used with the 64hd\32sec option as they are mutually exclusive. Use 64hd/32sec if possibleInstead of creating a partition table using the default drive geometry of 255 heads and 63 sectors per track, this option will use 64 heads and 32 sectors per track which is the most compatible setting for USB-ZIP (large-floppy) booting. If the partition is too large to use 64\32 geometry, then 128\32 will be used instead and then 255/32 and then 255/63. This option is recommended for ZIP (large floppy) booting and FAT16. ver 2.1.639 and later - If FAT16 is selected and this 64/32 option, then a partition type of 06 will be used instead of 0Eh. If you need to use DOS6.22 or an earlier DOS OS that is not compatible with later partition types, use FAT16+32/64. DOS 6.22 will not boot with a type 0E partition type. BartPE to USB tick boxThis tick box should be used if you want to boot an XP/WinPE v1 based OS such as BartPE from a USB drive. It can be used to prepare PeBuilder BartPE files or other XP-based boot CD files such as those used on Asus EeePC XP Recovery DVDs. You can only tick this box if you have selected the XP booot option and have also ticked the COPY OS FILES tick box. Function: After RMPrepUSB has partioned and formatted the USB drive, it will copy
over the files in the COPY OS FILES folder and then run the RMPrepUSBXP.cmd script file (or the
rmprepusbxp_german.cmd file if the german language is selected). This script
performs a similar task to petousb.cmd, on the USB drive only it... A typical usage would be to use PeBuilder and set the Builder source to your XP SP2 or SP3 install CD and the Builder output to BartPE and the Media Output to None and then press the Build button. After the build has finished, copy any extra files you want to add to the USB drive (e.g. portable apps) to the PEtoUSB folder which is in the RMPrepUSB folder on your hard disk (optional) and then use RMPrepUSB and set the COPY OS FILES folder to the BartPEISO folder path (e.g. C:\pebuilder3110a\BartPE) and tick the XP, NTFS and BartPE options. This should make a BartPE bootable USB drive. For a tutorial on how to create an Asus EeePC bootable flash memory drive see http://www.youtube.com/watch?v=4qMsMXOterc Using RMPrepUSB on a non-USB diskTo partition and format a non-USB drive, you must run RMPrepUSB using the command line ‘RMPrepUSB ALLDRIVES’ which must run with Administrator privileges. RMPrepUSB will then list all drives rather than just the USB drives. You could save your hard disk MBR using USB->File in this way. WARNING: Do not accidentally wipe the wrong hard disk! You can also create a Windows Shortcut for this and specify ALLDRIVES as a parameter (but take care!). There is an option in the Start Menu to run in the ALLDRIVES mode, or alternatively simply type Alt+F2 to toggle the mode on and off when running RMPrepUSB. Recommended settingsFreeDOS and MS-DOS boot as A: Size=500 Boot.as.FDD 64hd\32sec FAT16 Size=500 Boot.as.ZIP 64hd\32sec FAT16 If either of these work, try using MAX size and/or FAT32 Ensure BIOS boot
option for USB is set to ‘Removable Drive’ and not ‘Fixed Disk’ BartPE, WinPEv2\v3, FreeDOS and MSDOS boot as C: Size=500 Boot.as.HDD. FAT16 Size=MAX Boot.as.HDD.(2PTNS) FAT32 Ensure the BIOS boot option for USB is set to ‘Fixed Disk’ and not ‘Removable Drive’ Try also various combinations of these options. Note that one setting may work for one computer but not for a different computer! Try adding the ForceLBA option if you have difficulty booting.
Testing your BIOS (experts only – not in the ‘Lite’ version)Some special MBR files are provided in the TESTMBR folder. These allow you to test how your BIOS ‘sees’ a USB drive when you change various options in RMPrepUSB. Please read the ReadMe.txt file in the TESTMBR folder for more details. There is also a tutorial on the RMPrepUSB website about this test code. You can also use the grub4dos boot loader shell to investigate how the UFD boots (e.g. type FIND to list all storage devices that grub4dos can see). Tip for UFD booting as a hard driveMost UFDs identify themselves as 'Removable devices' but if you want to boot an OS directly from them it is often better if they pretended to be a hard drive. If you have a Lexar or Netac USB Flash drive, obtain the utility BootIt.exe (try a Google search). This utility has a ‘Flip Removable Bit’ button – click on this and then unplug the UFD, then plug it in again – if it has worked, your UFD will now always report itself as a ‘Fixed Disk’ rather than ‘Removable Media’. The utility only works with certain types of UFD controller chips. Many BIOSes will always boot a drive as C: (hard disk) if the device identifies itself as a ‘Fixed Disk’ rather than ‘Removable Media’. You can also create and access multiple partitions on the USB Fixed drives under Windows, rather than just the one partition allowed for 'Removable drives'. Booting linuxTo boot a linux system, use the SYSLINUX option in RMPrepUSB. This will format the UFD as a FAT16 or FAT32 MSDOS volume and then (after copying files if you tick the file copy option) will run syslinux.exe on the new UFD volume. The Windows version of syslinux.exe must be in the same folder as RMPrepUSB.exe. Syslinux.exe will install syslinux boot code into the volume specified and place the file ldlinux.sys on the UFD. Do not delete, overwrite or move this file once syslinux has placed it on the UFD or the UFD may not boot – it must remain at the same sector position on the UFD. If you already use syslinux.exe, replace the version in the RMPrepUSB folder with your version to avoid compatibility issues. When the UFD boots, it will load ldlinux.sys and look for a syslinux.cfg file, which can contain a menu and details of which kernel to load. If you have an isolinux.cfg file, you need to rename this to syslinux.cfg. More information can be found on the internet about syslinux. If the UFD fails to
boot after a while, either re-format the UFD using RMPrepUSB again or run
syslinux.exe from the Windows command line (cmd) – e.g. If you have a linux version that supports a persistent mode, you can use the Create ext2 FS button to create an ext2 filesystem as a file on the USB drive. Typically, for Ubuntu based versions it will be named casper-rw, be in the root and have a size of at least 1GB. The full version of RMPrepUSB contains a few different versions of Syslinux. If your OS files require an earlier version of Syslinux, simply copy the version that you require from the RMPrepUSB\Syslinux folder (e.g. v3.86) and overwrite the version in the main RMPrepUSB application folder (press F3 to list the RMPrepUSB application folder in Windows Explorer). The equivalent menu.c32 files are also included in the syslinux folders and these can be copied to your USB drive if required. If you are installing linux (e.g. Ubuntu or YLMF) and want an ext2 filesystem (e.g. a casper-rw volume), you should create a file of the same name using the ‘Create Ext2 FS’ button (v2.1.604+). Installing the Grub bootloaderThe ‘Install grub4dos’ button will run grubinst on the selected USB drive and then ask the user if they wish to also copy the grldr file. The USB drive should be already partitioned and formatted before you click this button. If the grub MBR does not seem to be written to the USB drive (because it does not seem to load grub but boots to DOS) then try the Eject button before you click on the ‘Install grub4dos’ button (but you will have to copy over the grldr file manually after re-inserting the USB drive). You will also need a menu.lst file. You will be given the choice of installing grub4dos as an MBR or a PBR. MBR will usually work for most systems, but if you have problems (e.g. flashing cursor on boot) try PBR instead. A guide on how to use grub4dos is here or there is also a tutorial here. To test the USB drive and your grub4dos menu, press F11 to run the QEMU emulator. Installing WEE bootloader (ALT+F12)To install the WEE bootloader, type ALT+F12. You will then be presented with the default menu (weemenu.txt) which can can edit if you wish. Close the editor and a script will run which will list the weemenu.txt file for you to check and the hard disks that are in the system. You will then be prompted to confirm the installation of wee to the MBR and Track 0 of the disk that was selected originally in RMPrepUSB. Type Y followed by <Enter> to install WEE. Details on WEE can be found in Tutorial #68. Explanation of how BIOSes boot from a USB deviceMost BIOSes require the user to enable USB booting and set the boot order so that a USB device will boot before the internal hard disk (although some BIOSes have an F10, [ESC] or F12 key function which will allow you to choose a boot device from a BBS menu). In addition you can often set the USB speed to USB 1.1 speeds (Hi speed) or USB 2.0 speeds (Full speed). If you are having difficulty booting from a USB drive, it is recommended to use a rear USB port, set the BIOS to USB 1.1 speeds and change the boot order so that the USB drive is first in the boot menu. Before you enter the BIOS menu, switch off the system, insert the USB drive and then switch on the system – then press the F1 or F2 or Esc or DEL key (depending on your particular system) to enter the BIOS Setup menu. Note: it is highly recommended that you always switch on the system with the UFD already connected; some BIOSes do not list the UFD or provide menu options unless the UFD is already inserted. In addition, some BIOSes only determine the type of UFD that is connected on the first cold boot, so if you re-format the UFD using a different RMPrepUSB option and then re-connect it to the target system, it will not treat the UFD as a different device type (e.g. USB-ZIP instead of USB-HDD) unless you first switch off the target system and then switch it on again. All BIOSes behave differently, however disk storage devices are always accessed via Interrupt 13h calls to the BIOS. There are two types of ways to access a disk device via the BIOS – ‘floppy’ or ‘hard disk’ read or writes. The BIOS must determine whether to allow access to the USB drive that it detects as either a ‘floppy’ (which is accessed with Int 13h DL=00h, or 01h for the 2nd floppy drive, etc.) or a ‘hard disk’ (which is accessed with Int 13h DL=80h, or 81h for the 2nd drive, etc.). The BIOS has to determine which of these two access methods (DL=0 or DL=80h) to ‘map’ the USB drive to. Once a BIOS determines how to map the USB device (either as a floppy device or a hard disk device), it will read the first sector from the USB device (512 bytes) into memory at address 07C0:0000h and then jump to that code. The last two bytes of the sector must end in the two bytes ‘55h’ and ‘AAh’ or it is not considered to be valid boot code. When the CPU starts to execute the code that has just been copied into memory at 07C0:0000h, the BIOS has also pre-set the DL CPU register to the correct device number (usually either 00h or 80h). The boot code can use this value in DL to load more sectors into memory from the same USB device. There are two types of USB drives – Fixed or Removable. The type is reported by the USB controller when interogated by the BIOS. There are three ‘types’ of USB drive formats and the BIOS must try to determine which of the three different ways to access the USB drive:
The BIOS maps the device to ‘floppy’ Int 13h DL=0. A USB device may be detected as a USB-FDD device if it has a device name similar to ‘TEAC floppy drive’ and a capacity of 1.44MB, or possibly if it has no valid partition table. The device does not need to be formatted as 1.44MB, you can have a 1GB FAT16 UFD with no MBR.
A BIOS maps the device to ‘hard disk’ Int 13h DL=80h. A USB device may be treated as a USB-HDD device by the BIOS if it has a partition table and has more than one partition entry in that partition table. If only one entry exists the BIOS could treat the device as a USB-ZIP drive or a USB-HDD drive. Sometimes a BIOS menu setting can be changed to alter this behaviour. If the USB hardware device type is reported as a ‘Fixed Disk’ type by the USB device controller chip, then most BIOSes will always treat that USB device as a hard disk and use DL=80h.
A BIOS maps the device to ‘floppy’ Int 13h DL=0. A USB device may be detected as a USB-ZIP device if the drive has a partition table containing only one entry. The BIOS may also require the device (not partition but physical device) to be under a certain size (e.g. 512MB or less) or have values in the partition table of 64hds\32secs. These conditions vary from one BIOS to the next! In addition, when a BIOS boots from a device as a USB-ZIP device it does NOT load the first sector MBR code (LBA 0) into memory – instead the BIOS loads the Volume Boot Record code directly into memory and jumps to it by reading the single entry in the partition table to find the start position of the partition (a USB-ZIP drive can thus only contain one partition entry). The BIOS then maps the USB drive to the Int 13h DL=0 call BUT it will always adds the partition start address to any access. Thus a BIOS Int 13h DL=0 call to read cylinder 0, head 0 sector 1 (LBA 0) will actually read the first sector of the partition. The real sector 1 (LBA address 0) cannot be accessed at all. For instance, say the USB-ZIP drive has a partition table with a single entry. The partition table entry indicates that the partition starts at sector 32, then the BIOS would load sector 32 into memory and start to execute the code there. Any attempt to read a sector at CHS 0\0\1 (LBA 0) via a floppy Int 13h DL=0 call (or Extended Int 13h call) from that point onwards, will actually read sector 32. If the boot code attempts to read CHS 0\1\1 (LBA 32) it will actually read the sector located at CHS 0\2\1 (LBA 64) as the BIOS will always add the partition start address on to any access. In this way, the boot code located at the start of the partition is identical to that found on a floppy disk which has no MBR or partition table. Some BIOSes do not support this type of booting and may always boot a USB-ZIP device as a hard disk (i.e. map the USB device to respond to Int 13h DL=80h calls) if they see a valid partition table and MBR. The difference between a USB-ZIP device and a USB-HDD device is very small, both have a master boot record and a valid partition table, however a USB-ZIP device should contain partition boot code that expects to be booting from a ‘floppy drive’ (DL=0) whereas a USB-HDD device should contain partition boot code that expects to be booting from a ‘hard disk drive’ (DL=80h). Many modern BIOSes contain a special menu option to change this behavior.
About ‘Fake’ USB Flash memory pen drivesSee Tutorial #7 - There is a large worldwide problem with ‘fake’ or counterfeit USB flash memory drives being sold via web auction sites and markets, etc. These USB drives often contain faulty memory chips and appear to be larger than they really are. For instance, a ‘fake’ USB drive may be sold as being 16GB and the size reported by Windows may indeed be approx. 16GB, however it may be made with only 2GB of flash memory and the memory chips themselves may be faulty. As you use it, you may not see a problem until you fill it with more than 2GB of files. Then you may lose all of your previous files and the drive may become ‘unformatted’ and totally corrupt. If you suspect you have one of these fake USB drives (or even if you don’t!) run the Quick Test function in RMPrepUSB or use the program H2TESTW.exe (English and German languages are available in H2TESTW). Here is a quick summary of these two utilities: · RMPrepUSB - QuickTest – Very quick but destroys all data on the USB drive. It is not a thorough test and will not detect the odd bad block or corrupt memory cell. Recommended for checking if you have a fake ‘undersized’ UFD as it is very quick. · H2TESTW – Non-destructive (fills the USB pen with large files which can be deleted by you afterwards). It is very slow!!!! Tests every byte except for areas that are ‘filled’ with the files that are already on it (so best to format it before testing so that it is empty). There are also other
utilities available such as the Russian Check Flash (chkflsh).
Download and run the file English.bat for
the English version of this very useful program. Menu BarThe top Menu Bar (in English only) contains functions that are also available by using a key shortcut (as listed in the F1 Help screen) but it also includes some extra functions which are not listed in the F1 Help form. The list below explains what each of these menu functions do (in the latest Beta version): FileView Speed Test results (USBSpeedDP.csv) F6 - Opens the speed test results file which contains decimal point using whatever application is associated with .csv files (e.g. Excel or Calc)
View Speed Test results (USBSpeed.csv) F7 - Opens the speed test results file using whatever application is associated with .csv files (e.g. Excel or Calc)
View File Information Ctrl+I - inspects an image file and displays it's contents in hex bytes. If the first 512 bytes is recognised as an MBR or PBR then extra values are also interpreted Boot from ISO file using QEMU Emulator Ctrl+F11 - User can select an ISO file and optionally create a virtual hard disk and then boot QEMU from the ISO (for instance you can install XP to a virtual hard disk using this option) Make grub4dos ISO from Drive - this makes a bootable ISO file from your grub4dos bootable (USB) drive. It will ask for a volume label and ISO filename and then make a grub4dos bootable ISO from the contents of the selected drive. Boot from Virtual HDD image using QEMU emulator Shift+F11 - Boot from a previously installed virtual hard disk image (for instance, you can install linux to a virtual hard disk using Ctrl+F11 and then boot to the hard disk at any time later using Shift+F11)
Create a 1.44MB MS-DOS Floppy Boot Image - Extracts an MS-DOS boot image from a Windows DLL file present in your Windows OS and creates an IMA file
Get File MD5/CRC32/SHA1 (Alt+F2) Ctrl+C - Runs NirSoft HashMyFiles.exe on the chosen file to display it's MD5 and CRC32 and SHA1 values
Exit RMPrepUSB Ctrl+X - Exits RMPrepUSB and saves the current user settings to the Windows Registry
EditEdit grub4dos menu (Menu.lst) F4 - Load the file \menu.lst into Notepad from the currently selected drive
Edit Speed Test Results (USBSpeedDP.csv) F8 - Loads the file USBSpeedDP.csv intp Notepad from the RMPrepUSB installation folder
DriveExplore Drive F2 - Opens Windows Explorer at the root of the currently selected drive
Refresh Drive List F5 - re-detects all drives and repopulates the drive selection list in RMPrepUSB
Test Drive using QEMU Emulator F11 - Emulates booting from the selected drive using QEMU, a virtual hard disk size and the amount of memory available can be entered by the user first.
Make All Files Contiguous Ctrl+F2 - Runs WinContig on the selected drive. First only .img, .ima and .iso files are made contiguous, then all files on the drive are made contiguous. If there is not enough room to make all files contiguous, the WinContig app will remain for the user to see which files were not made contiguous. Launch WinContig Shift+F2 - Runs WinContig and selects the currently selected drive. This allows the user to run WinContig manually.
View Drive Information Shift+Ctrl+F2 - Reads and displays the user selected drive sectors. If an MBR or PBR is read, some data values will be interpreted for the user.
Format Volume (using Windows) Ctrl+F - This brings up the Windows Format drive Dialogue box. Only for use if RMPrepUSB fails to format a drive or if you want exFAT.
Disk Manager (diskmgmt.msc) Ctrl+K - This brings up the Windows Disk Manager MMC. Useful to assign drive letters to a mounted drive (NTFS formatting in RMPrepUSB will not work unless the drive has a drive latter assigned by Windows).
DiskDoctor Alt+Ctrl+F5 or Ctrl+D - Launches the RMPrepUSB Disk Doctor application for editing, examining and testing a disk drive.
Edit Disk Signature Ctrl+T - Reads and displays the disk signature of the currently selected drive and allows you to write a new one. Clear ReadOnly Status - Runs Diskpart to clear the read-only attributes on the currently selected disk and drive letter.
AutoMount Drives (changes Registry) Ctrl+L - Runs the Windows command Mountvol /e to enable automatic mounting of new volumes Set Windows Accessible Partition Ctrl+O - Allows the user to set any one of four primary partitions on USB Flash drive as the Windows accessible partition.
BootloadersInstall grub4dos Ctrl+G - installs the grub4dos bootloader and copies over the grldr file (same as clicking the Install grub4dos button)
Install Syslinux Ctrl+S - installs syslinux to the currently selected drive using the version of Syslinux.exe present in the RMPrepUSB installation folder
Install WEE Ctrl+W - installs the WEE bootloader to the currently selected drive. The WEE menu will be presented in Notepad to the user first so that it can be changed as required.
Install Std MBR Alt+Ctrl+F2 or Ctrl+B - installs the standard Win 7 MBR boot code to the selected drive. The Disk Signature and partition table are not changed. Install MSDOS Bootloader (FAT16 only) - calls RMBootSect.exe to insatll the MS-DOS FAT16 bootcode to the Partition boot record Install BOOTMGR Bootloader - calls RMBootSect.exe to install the Vista/Win7/8 bootloader to the Partition boot record which loads bootmgr Install NTLDR Bootloader - calls RMBootSect.exe to install the XP bootloader to the Partition boot record which loads ntldr Note: To install the grub4dos bootloader on an exFAT volume, format the drive using the WinPE+exFAT options and answer Yes to the prompt after clicking Prepare Drive. Do NOT use the 'install grub4dos' button. The MBR should be the standard MBR.
SettingsEdit User Config Menu (RMPrepUSB.ini) F9 - If present, this will load the User Configuration menu in Notepad.
Save Current Config to RMPrepUSB.ini F10 or Ctrl+F9 - Appends the current configuration to the end of the ini file.
Load a User Configuration F12 - loads the User Configuration menu and allows the user to select a different preset user configuration
Use ALLDRIVES Mode Alt+F5 or Ctrl+F5 - Toggles ALLDRIVES mode to show or not show non-USB drives (also affects List Large Drives setting - see below)
List Large Drives > 128MiB Ctrl+Z - by default drives larger than 128MiB are not listed by RMPrepUSB - this will toggle this filter
Minimize Desktop during Operation Ctrl+P - Windows may hide some dialogue boxes during operation of RMPrepUSB and the utilities used by RMPrepUSB. Enable this setting so that all other Windows are minimised when RMPrepUSB is run. The Desktop will be restored once the RMPrepUSB command has finished.
HelpQuick Help + Hotkeys F1 - Shows the Usage and Hotkleys help form
User Guide (PDF) Ctrl+F1 - Launches the User Guide pdf using whatever application is associated with PDF files Visit the RMPrepUSB website Ctrl+R - Launches a browser to the RMPrepUSB website
Update Check Ctrl+U - checks the RMPrepUSB website for the latest fully released version. Note that this does not check for the latest Beta version.
About Ctrl+A - Displays the version number of RMPrepUSB
|
|
USB MODEL |
SIZE (MiB) |
Operating System |
Platform |
Seq. Rd/Wr |
SPEED (MiB/s) |
SPEED (MB/s) |
|
Kingston DataTraveler G2 USB Device |
3827 |
Microsoft Windows 7 Professional (6.1.7600) SP0 64-bit |
Intel Corporation (RM plc AZCB835000CB DQ45CB ) |
READ |
21.7 |
23.3 |
|
Kingston DataTraveler G2 USB Device |
3827 |
Microsoft Windows 7 Professional (6.1.7600) SP0 64-bit |
Intel Corporation (RM plc AZCB835000CB DQ45CB ) |
WRITE |
7.7 |
8.2 |
|
HP v135w USB Device |
15423 |
Microsoft Windows 7 Professional (6.1.7600) SP0 64-bit |
Intel Corporation (RM plc AZCB835000CB DQ45CB ) |
READ |
31.3 |
33.6 |
|
HP v135w USB Device |
15423 |
Microsoft Windows 7 Professional (6.1.7600) SP0 64-bit |
Intel Corporation (RM plc AZCB835000CB DQ45CB ) |
WRITE |
11.3 |
12.2 |
|
Verbatim STORE N GO USB Device |
7639 |
Microsoft Windows 7 Professional (6.1.7600) SP0 64-bit |
Intel Corporation (RM plc AZCB835000CB DQ45CB ) |
READ |
29 |
31.2 |
|
Verbatim STORE N GO USB Device |
7639 |
Microsoft Windows 7 Professional (6.1.7600) SP0 64-bit |
Intel Corporation (RM plc AZCB835000CB DQ45CB ) |
WRITE |
9.4 |
10.1 |
|
TakeMS MEM-Drive Smart USB Device |
7711 |
Microsoft Windows 7 Professional (6.1.7600) SP0 64-bit |
Intel Corporation (RM plc AZCB835000CB DQ45CB ) |
READ |
33 |
35.5 |
|
TakeMS MEM-Drive Smart USB Device |
7711 |
Microsoft Windows 7 Professional (6.1.7600) SP0 64-bit |
Intel Corporation (RM plc AZCB835000CB DQ45CB ) |
WRITE |
6.5 |
7 |
Q30 – I can boot from a FAT16 2GB UFD formatted as FAT16 but not from a 3GB or bigger UFD – why not?
A30 – MS-DOS cannot access FAT16 partitions over 2GB (Size=2000MB in RMPrepUSB/RMPartUSB). Set the partition size to 2000 or use FAT32.
Q31 - What is the difference between using the Syslinux radio button in the Boot Options section and the Install Syslinux button after formatting?
A31 - Not a lot! The Boot Option radio button will disable NTFS as a choice and use MSDOS as the OS boot type, then after formatting it will run the syslinux.exe utility to add the syslinux boot code and replace the DOS boot code. The Install Syslinux button just lets you run syslinux on any USB drive at any time without having to format it first, so if you want to try out a syslinux menu after having made a grub4dos USB drive, you can just overwrite the old grub4dos boot code with new syslinux boot code.
Q32 – I want to make a language file for RMPrepUSB, how do I do this?
A32 – The first step is to convert the English.ini file to your own language using a text editor that supports UniCode (such as Notepad). Note that the font name, Locale (LCID) and font sizes are very critical. The file Fonts, CharSets and LCIDs.rtf in the \LANG folder contains information on which settings to use. Under Windows XP, to see some Asian languages, it may be necessary to install the Asian Language pack from the XP CD (using Control Panel – Regional and Languages – Languages – Install Files for East Asian languages). You should always choose the font and LCID suggested in the txt file even if other fonts appear to work, this is because your PC may be localised for your Region but English versions may not use the correct fonts – for instance for Simplified Chinese use SimSun font even though Tahoma may appear to work correctly on your computer, it will not work correctly on European PCs.
If you also wish to translate the RMPrepUSB.pdf file, the original Word .doc file can be downloaded from the RMPrepUSB website.
Once you have made a new .ini file (and pdf file) simply place them in the .\LANG folder. Every time you click on the language drop-down box, your new language file will be re-loaded.
See Tutorial #51 on the RMPrepUSB website.
Q33 – How do I get the latest version of RMPrepUSB?
A33 – Version 2.0.809 and later have a ‘Get Latest Version’ button on the Help form. When you click on this button it will attempt to download a version.txt file from the RMPrepUSB home website. This file contains the version number of the latest fully released and stable version of RMPrepUSB and will download the ZIP file of the latest version to the same folder as RMPrepUSB.exe. You will then need to Exit from RMPrepUSB.exe and unzip the files from the new version and overwrite your current version (or make a new folder if you prefer). The latest Betas can be found at http://sites.google.com/site/rmprepusb. Although they are Betas, they will normally contain improvements and bugfixes and unless otherwise specified, they are better than the current released version.
Q34 – The results from the Speed Test seem very high – are they correct?
A34 – Yes – Chkflsh.exe also gives similar results to RMPrepUSB. The thing to bear in mind is that the figures shown are for a single 63MiB sequential direct access read and write. In the real world, this type of access would not be used, so the read/write figures obtained are ‘best case’ figures for that OS and driver and chipset. This allows you to compare UFDs without needing to worry about how they are formatted (FAT16/FAT32/NTFS) or how the operating system is accessing them. In other words, it is a measure of the USB drive speed and PC hardware but does not test which filesystem is fastest. So provided you use the same PC and OS, you can compare different USB drives fairly even if they are formatted differently. It also means the test is quick! However, note that (for the same UFD) results will vary depending on the Operating System used, the USB driver used and the mainboard, BIOS and chipset used to test it with.
Q35 – I want to boot to DOS as drive A: when using the Boot as FDD setting, but my PC always tries to boot it as C: (and I get a command.com not found error), how can I fix this?
A35 – Prepare your UFD for MS-DOS or FreeDOS drive using RMPrepUSB and the ‘Boot as HDD’ setting, then use the ‘install grub4dos’ button to install grub4dos. Then create a menu.lst file as below (the lines beginning with # are comments and can be omitted):
title MS-DOS (AS FLOPPY) AND HDD as HDD0map (hd0,0)+1 (fd0)# map the first partition of the hard disk as a floppy diskmap (hd0) (hd32)# map the UFD as a virtual cdmap (hd1) (hd0)# map the real hard disk as hard disk 0map --hook# hook Int13 interrupts so all map changes take effectchainloader (fd0)/io.sys# load the io.sys code into memory from the floppy disk (now ufd is fd0)rootnoverify (fd0)# set the file root as the floppy diskmap --floppies=1map --harddrives=1# Tweak BIOS device numbers so DOS sees 1 floppy and 1 hd
(if using FreeDOS replace ‘io.sys’ with ‘kernel.sys’ in the above menu). The above menu re-maps the UFD partition, which appears as a hard disk in the BIOS after booting, to appear as a floppy disk drive.
Q36 – When I boot from a USB device and run ImageX (or another imaging utility) to capture an image, it does not work and refuses to save the image – why?
A36 – You cannot save files larger than 4GB on a FAT32 volume. Try formatting the USB device with the NTFS filesystem. Also try reformatting the USB drive with RMPrepUSB. Also close down all Explorer Windows and quit as many applications as possible before running ImageX.
Q37 – How can I make an image of my Windows hard disk and copy it to another hard disk on another system (or lots of systems)?
A37 – I would recommend booting to WinPE (VistaPE or Win7PE) from a USB drive (of course!) and then using the Microsoft tool ImageX.exe after using sysprep.exe. For a getting started guide see my tutorial on the RMPrepUSB site here.
Q38 – Where has H2TESTW gone?
Q38 – The author has requested that I don’t include a copy in my download and that you download the latest version from his website. Use the Help button on RMPrepUSB and then click on the H2TESTW link.
Q39 – When using grub4dos and loading an ISO file I get a ‘ Error 60: File for drive emulation must be in one contiguous disk area’ error – but it used to work before?
A39 - Typically, you will get the non-contiguous error when you have edited or deleted files on the USB drive and then copied over an iso file or simply overwritten the old iso file with the new iso file. If you get this error when trying to boot an ISO file using grub4dos from a USB Flash Drive, you can run WinContig (hit CTRL+F2) to fix the ISO file, but it is very slow when run on a USB flash drive. A much quicker way to fix the problem is to copy all the files over to your hard disk, run RMPrepUSB again on the UFD to reformat it and then run grub4dos and then copy all the files back again. If this is not possible, then always copy the iso file to the USB drive first, before you edit any files on the USB drive.Q40 – My USB drive is not listed by RMPrepUSB –why not?
A40 – RMPrepUSB should list all USB drives that are over 0 bytes in capacity. U3 USB flash drives may not be listed unless they have been enabled by the U3 Launcher application. If you are running BartPE or Windows PE or WINE under linux with WINE, it is possible that you need the MSVBVM60.DLL (which is normally present in Windows XP and later Windows versions). Copy the file from the \WINPE_EXTRA folder in the full download to the same folder that RMPrepUSB.exe is located in. This dll file is also required for RMPartUSB.exe.
Q41 – When booting grub4dos on some PCs I just get a flashing cursor (or ‘missing – mbr Helper’ message) and no grub4dos menu, but other PCs boot fine – why?
A41 – This is caused by the BIOS code, but can often be fixed by installing grub4dos to the Partition Boot Record (PBR or sometimes called VBR) instead of the Master Boot Record (MBR). When you click on the RMPrepUSB Install grub4dos button, choose the PBR option. Also try changing the Boot to HDD option (some BIOSes don’t like this option, some only boot with it!). This issue should be fixed in v2.1.607 and later and you should be able to install grub4dos to either PBR or MBR.
Q42 – When I load the USBSpeed.csv file in OpenOffice (or Excel), I do not get the proper columns – why?
A42 – This is because Excel takes account of your regional settings (locale) but OpenOffice does not. If USBSpeed.csv does not load properly, try USBSpeedDP.csv which always contains decimal points for numbers and commas for field separators.
In versions before 2.1.503, the format of the CSV file was that each field was separated by a comma, but the number format would be written in your own locale’s format. This meant that for non-US/UK countries (e.g. Germany), you could get a CSV file such as:
aaa,bbb,ccc,ddd,5,6,6,2
instead of
aaa,bbb,ccc,ddd,5.6,6.2
To further complicate the problem, the correct CSV format expected by Excel in non-US/UK countries is to use a semi-colon as a separator and a comma as a decimal point. E.g.
aaa;bbb;ccc;ddd;5,6;6,2
Version 2.1.503 and later of RMPartUSB, now writes two CSV files:
USBSpeed.csv which writes according to the locale on your computer (e.g. in Germany it writes aaa;bbb;ccc;ddd;5,6;6,2) and USBSpeedDP.csv which always writes a CSV file with commas as separators and dots as decimal points (aaa,bbb,ccc,ddd,5.6,6.2). So use USBSpeed.csv if using Excel, or USBSpeedDP.csv if you application always expects commas and decimal points.
Q43 - How can I copy an image onto a USB drive of a different size?
A43 - You cannot re-size an image using RMPrepUSB. So you need to follow these steps:
1. Determine the minimum partition size
required to hold all the files in the image (e.g. say it is 2.7GiB)
2. Set the size in RMPrepUSB to just larger
(say 2.9GiB) and reformat the USB drive to that size
3. Prepare and test the USB drive to make
sure it works on all systems
4. Make a USB-->File image using the PALL setting
5. Now use the File-->USB button to copy the image to all your other USB
drives (which must be at least 2.9GiB in size)
6. If you want to expand the partition and it
is a single NTFS partition (do not use HDD 2PTNS option), then
use Windows Diskpart command as follows:
DISKPART
LIST VOL
SEL VOL J: (assuming J: is the volume letter given to your
USB drive that you want to expand)
EXTEND
If you have a single FAT16 or FAT32 partition or want to use a GUI, try the
free program EASEus
Partition Master for 32-bit Windows which
can be download here.
- On the Image that you have made - Run WinImage then use Image - Defragment - this is fast and efficient.
- BEFORE using the Drive-->File button, clean out the unused disk sectors on the USB drive. Download and install Disk Redactor. Run it on the drive that you are about to take an image of. This process is very slow however! A faster method is to use ImDisk to mount the Image file, run Redactor on the mounted volume and then dismount it.
Q44 - I am booting to BartPE/UBCD4Win and get the XP error ‘PreLogon – File not found’. This does not happen when booting from CD. How do I fix this?
A44 - You probably prepared the OS files on a Vista or Win 7 system. Create a folder on your USB drive under \MININT called \Registration. Copy the file from your Windows Vista/7 hard disk folder C:\Windows\Registration\R000000000001.clb to make the file \MININT\Registration\R000000000001.clb on your USB drive.
Q45 - I get a BSOD when booting BartPe from USB - why?
A45 - Try replacing the ntdetect.com file with the one from W2K3 SP2. Some Dell systems for instance, require this.
Q46 - My (Dell) system does not boot to grub4dos menu after using HDD+Force LBA options – why?
A46 - Some BIOSes do not 'like' the Force LBA option - only try this option if the USB pen will not boot without it.
Q47 - My USB device does not appear in the drive list –why?
A47 - To appear in the device list, the USB drive must appear as a \\physicaldrivex device in Device Manager, must have a size of greater than 0 bytes and must be classed as a USB device. RMPrepUSB v2.1.2 and later have improved USB detection. Note that password protected U3 devices will not appear in the menu unless you have enabled the USB storage device using the U3 Launcher software.
Q48 - My USB Flash drive seems to be faulty, it takes a LONGGGGGGG time to access it even under RMPrepUSB and my system just stops responding. Should I throw it away?
A48 - No! It probably has corrupt data on it and Windows cannot understand it, the USB drive itself is probably fine. You need to wipe the data from the drive but as Windows cannot access the drive, you have to find another way to clean it – see here for details.
Q49 - What is a GiB or MiB or KiB?
A49 - Drive manufacturers use KB to mean 1 thousand bytes (i.e. 1000), but computers (operating systems and applications) often regard 1024 bytes as being equal to '1KB'. To avoid this confusion the new abbreviation KiB was invented. So 1KiB=1024 bytes, 1MiB=1024x1024 bytes or 1048576 bytes, 1GiB=1024x1024x1024 bytes or 1073741824 bytes. This means that a 160GB hard drive may actually appear as 149GiB in Windows (which it still calls 'GB' not ‘GiB’) which is the same as 160GB. RMPrepUSB uses GiB, so a 32GB USB flash drive may appear as 29.8GiB in RMPrepUSB or 29.8GB Windows. Still confused – you would think a computer could display a size correctly wouldn’t you?
Q50 - How do I use RMPrepUSB on a (non-USB) SATA or IDE hard drive?
A50 - Hit CTRL+F5 or ALT+F5 - or use the Start Menu entry for RMPrepUSB ALLDRIVES or open a command prompt (shell) window as an Administrator (right-click and Run as Administrator on Start Menu - Program Files - Accessories - Command Prompt) and then type RMPREPUSB ALLDRIVES. You should then have access to all physical storage drives except floppy drives and CD/DVDs. Take care not to format or install grub4dos to the wrong drive! Press CTRL+F5 or ALT+F5 to toggle the mode off again.
Q51 - I used the syslinux option but I cannot get the syslinux.cfg menu to display - I just get a black screen instead and it seems to hang?A51 - This is probably due to the version of syslinux.exe not matching the version of vesamenu.c32 in your OS files on the USB drive. Try using menu.c32 instead in your syslinux.cfg menu file. If that works then it is a vesamenu.c32 issue. Either find another version of the vesamenu.c32 file or try replacing the syslinux.exe file in the RMPrepUSB menu with another version of syslinux.exe and re-running RMPrepUSB so that syslinux is re-applied to the USB drive. COM32R versions of vesamenu.32 that are dated 2010 will probably require syslinux v4.03 or later so use RMPrepUSB v2.1.604 or later. Syslinux v4+ needs a vesamenu.c32 file in COM32R format. The version of syslinux included with RMPrepUSB versions before 2.1.604 used an older version which requires COM32 format files. Version 2.1.604 and later use syslinux 4.03 (or later) which requires COM32R.
Different versions of syslinux.exe and their .32 files may be found included with later versions of RMPrepUSB downloads in the syslinux folder. If you have version incompatibility problems, use the v4.03 .c32 files in your USB’s syslinux.cfg menu.
Q52 – When I run Quick Size Test capacity test, sometimes it reports an error (e.g. last sector bad) and sometimes it does not. Also, sometimes RMPartUSB seems to pause for 2 minutes before completing – how can I fix this?
A52 – First try disabling your antivirus software or reformat the drive as an HDD or CLEAN it. If you have a USB drive which has been formatted as ‘FDD’ or ‘USBFDD’, then the antivirus software may start scanning it which will interfere with the actions of RMPartUSB. Secondly, reboot Windows to try to clear the error.
A53 – To emulate booting from the USB drive selected in the RMPrepUSB dropdown selection box, just press F11. When choosing the amount of virtual RAM memory to use, RMPrepUSB shows you as the maximum approx. 75% of Windows available memory. If QEMU does not seem to launch, try reducing the virtual memory size to say 32MiB instead of the default 512MiB.
Check you have the two files StartFromUSB.cmd and CreateImg.cmd. These are the two files that are called by RMPrepUSB. If the two cmd files do not appear to work, you can debug them by editing them in notepad and placing the word ‘pause’ at the end of the file. As the command shell is minimized by Windows during running, you will need to find the minimized command shell task and maximise it to see what error messages you get and then press Enter to continue.
The F11 feature allows you to create an empty virtual hard disk or use the existing one. It is always called ‘harddisk.img’ and located in the QEMU folder below the RMPrepUSB application folder – if you want to use your own hard disk image then replace it with your own file. By using a virtual hard disk, you can test OS installation USB drives (e.g. install XP or DOS onto the virtual hard disk).
Q57 – I cannot see any USB drives listed by RMPrepUSB.
A57 – You probably do not have sufficient user (admin) rights. Log in as Administrator and try RMPrepUSB again. If you have a Windows Vista or later system, you can enable the Administrator account by running an Administrator Command prompt (right click on Command Prompt in the Start Menu and select ‘Run as Administrator’) and typing the command NET USER ADMINISTRATOR mypassword and then type NET USER ADMINISTRATOR /ACTIVE:YES. This will enable the administrator account and set the password to ‘mypassword’. Now log in as user Administrator.
Q58 - How do I format as exFAT and install grub4dos to make it bootable.
A58 - Select WinPE and exFAT as shown in Fig. 1 at the top of this page. Set the other options as required and click on 6 Prepare Drive. You will be asked if you want to install the grub4dos bootloader (or the standard BOOTMGR bootloader) to the PBR.
Q59 - exFAT formatting does not work (I am using Windows XP).
A59 - You need to install the exFAT update for Windows XP. If you are using Vista, you will need Service Pack 1.
Q60 - Large USB hard disks are not listed in RMPrepUSB, but flash drive are?
A60. Drives larger than 128GB are not listed by default in RMPrepUSB to prevent you from accidentally formatting your backup drive! Use the Settings menu to list large USB drives (CTRL-Z) or list all drives including internal hard disks (CTRL+F5).
--- o O o ---










