Copy (clone) your E2B USB drive
If you have a working E2B USB drive complete with all payloads and configurations files, etc., you can 'clone' it to any other USB drive:
Make sure that the target USB drive is of the same type as the source drive (i.e. 'Removable' or 'Fixed' - see box below) and that you have tested the memory chips in it first (e.g. using FakeFlashTest) if it is a new USB Flash drive.
I highly recommend the SanDisk Extreme USB 3.0/3.1 flash drives (avoid the slower Extreme 'Go') for E2B. Some 'really fast' USB flash drives can be very slow with E2B and when copying lots of small files under Windows (large files are OK).
Backup/Restore/Update E2B drives
If you want to 'synchronise' the files on your existing E2B drives then E2B v1.A7+ contains:
Backup_E2B_drive_to_MASTER.cmd - creates an E2B_MASTER folder on your Desktop containing the contents of the E2B drive
Restore_E2B_drive_from_MASTER.cmd - makes the contents of the E2B drive the same as the contents of E2B_MASTER
- Backup_E2B_drive_to_MASTER.cmd - creates an E2B_MASTER folder on your Desktop containing the contents of the E2B drive
- Restore_E2B_drive_from_MASTER.cmd - makes the contents of the E2B drive the same as the contents of the E2B_MASTER backup folder
These .cmd scripts can be found in the \_ISO\docs\Make_E2B_USB_Drive folder and can be run directly from the USB drive or can be copied to the Desktop.
You can easily edit the two .cmd files if you want to change the backup folder name or path.
WinContig is run after a successful restore to ensure the files are contiguous.
Robocopy is used for maximum speed (needs to be added if using XP).
Clone directly from your E2B USB drive
Starting with E2B v1.88, you can 'clone' your E2B drive onto a different drive using the \MAKE_E2B_USB_DRIVE (run as admin).cmd script that is in the root of the E2B drive that you want to copy.
Note that only the root files and the \_ISO folder are copied, any extra user folders that were added to the root are NOT copied. You will need to copy any of your own folders in the root of the source E2B drive to the target drive afterwards or run UPDATE_E2B_USB_DRIVE.cmd (add it from the download folder to your E2B drive first). For instance \MyFolder and \HBCD would not be copied to the target drive unless you run \UPDATE_E2B_USB_DRIVE.cmd.
Note: If copying a E2B Removable Flash drive to a USB hard drive, you should remove the NOHELPER variable from within the \_ISO\MyE2B.cfg file on the USB HDD or Windows Install ISOs + Helper Flash drives will not work!
How to replicate your E2B USB drive
Tip: Before copying, why not update your E2B USB drive to the latest version of E2B?
The best way to copy your E2B USB drive which contains all your payloads (ISO files, etc.) and menu files, etc. is as follows:
- Copy all the files on your E2B USB drive back to the original E2B download folder on your Windows hard disk - e.g. C:\temp\E2B.
The \System Volume Information folder and \$Recycle.bin folders (if present) should not be copied.
You will now have a backup of your E2B drive which can be replicated onto other USB drives.
- Now you can run the C:\temp\E2B\_ISO\docs\Make_E2B_USB_Drive\MAKE_E2B_USB_DRIVE.cmd script to make more E2B USB drives.
Alternatively, you can run C:\temp\E2B\Make_E2B.exe.
- If you have added your own files or folders to the root, you must now run C:\temp\E2B\UPDATE_E2B_USB_DRIVE.cmd (see Note below).
- Run \MAKE_THIS_DRIVE_CONTIGUOUS.cmd from the target USB drive.
Tip: You can Zip up the C:\temp\E2B folder and send it to your colleagues so they can make the same USB drives too.
Note: When using MAKE_E2B_USB_DRIVE, only the \_ISO folder is copied (and some files in the root). If you have added new folders under the root then these will not be copied to the USB drive. However, once you have made the USB drive, you can run UPDATE_E2B_USB_DRIVE.cmd to copy across all your added folders.
C:\temp\E2B\_ISO << folder will be copied by MAKE_E2B_USB_DRIVE.cmd
C:\temp\E2B\MyPrograms << folder will NOT be copied unless you use UPDATE_E2B_USB_DRIVE.cmd
C:\temp\E2B\Myutil.exe << file will be copied by MAKE_E2B_USB_DRIVE.cmd
UPDATE_E2B_USB_DRIVE.cmd only copies changed or missing files to the USB drive, it does not delete files from the USB drive (does not 'sync' files).
IMPORTANT - if copying to a Fixed-disk drive...
If you copy the \_ISO\MyE2B.cfg file from your E2B USB Removable drive, it may have the NOHELPER variable set inside the MyE2B.cfg file. On Fixed-disk USB drives, the NOHELPER variable will stop Windows ISOs from working correctly (the ISO won't be loaded as a virtual CD).
E2B USB Fixed/hard drives should not have the NOHELPER variable set in the \_ISO\MyE2B.cfg file, so if you want it to work on both types of USB drive, delete the NOHELPER variable from the \_ISO\MyE2B.cfg file. USB HDDs will still need a USB Flash 'Helper' drive to boot Windows Install ISOs and some WinPE ISOs, or you can convert Windows Vista+ ISOs to .imgPTN files.E2B USB when used on a Removable USB drive will boot slightly faster if the NOHELPER variable is set.
Although it is possible to use dd.exe or RMPrepUSB File->Drive and Drive->File to make an exact clone of one E2B USB drive to another USB drive, it is not recommended for several reasons:
- It is slow - all sectors will be copied
- The target drive needs to be at least as big as the E2B source drive you are copying
- If the target drive is bigger than the E2B source drive, you will have inaccessible free space left on the target drive
- If you had fragmented files or deleted files on the source E2B drive, they same layout will be duplicated on the target drive
- If the E2B USB drive was NTFS, the System Volume Information folder will also be duplicated.
- The drive serial number will be the same as the original USB drive - it could 'confuse' Windows or Windows applications if both drives are connected at the same time and have the same ID.
Update an E2B USB drive
The E2B download contains the script file '\UPDATE_E2B_DRIVE.cmd'. If you ensure this file is also present in the C:\temp\E2B folder (see above) then just run it to update any E2B USB drive without needing to reformat and recopy all the files. Note that the 'UPDATE_E2B_DRIVE.cmd' file is not copied to the USB drive.
You may need to run WinContig or \MAKE_THIS_DRIVE_CONTIGUOUS.cmd afterwards to ensure all the files are contiguous. Windows Install ISO files an .VHD files do not usually need to be contiguous however.
Recommended for Easy2Boot (fastest!) - SanDisk Extreme SDCZ880-128G-G46