This error usually occurs because How to Repair a corrupt E2B USB drive
If you have accidentally corrupted your E2B USB drive, DON'T PANIC! - here is how to fix it.
Note: If prompted by Windows to format the drive - DO NOT FORMAT IT!
'Sector at LBA30 appears to contain code' error
See end of this page...
ERROR: PARTITION TABLE ENTRY #4 (Type=7) MUST BE EMPTY!
Normal E2B USB drives use only Partitions 1 and 2, Partitions 3 and 4 should be unused.
Partition 4 must be unused on E2B USB drives - just answer the questions to erase partition 4.
Partition 3 is also normally unused on an E2B USB drive.
Only erase these partitions if you are sure that they do not contain wanted files!
Some ISO and payload files can cause partitions 3 or 4 to be created each time they are run - look them up in the 'List of tested payloads' page for more details.
For all other errors...
First - unplug the USB drive - reboot your system - reconnect the USB drive.
1. Can you see any files on the USB drive? - If YES then goto A below.
2. (no files on drive) - If you have ever used .imgPTN files, then sector 30 and 60 should contain a copy of the E2B MBR sector.
If you have never used .imgPTN files then LBA1 should contain a backup sector.
Use RMPrepUSB - Drive Info - 30 to view backup sector LBA30 of the USB drive.
Are the last two bytes on the 01F0 line 55 AA ? e.g.
You should now be able to see the E2B USB drive contents.
Tip: If this frightens you and you have used .imgPTN files, then instead run the .\MPI_Tool_Pack_Plus_CloverLite_0xx\csm\e2b\RestoreE2B (run as admin).cmd script from the MPI Tool Pack download. This should restore the original E2B partition table.
Now, re-install grub4dos using:
2.3 RMPrepUSB - Ctrl+B to install the standard MBR boot code and then...
RMPrepUSB - Install grub4dos - Y=MBR - cancel copy of grldr if prompted.
2.3.1 Now we install grub4dos to the PBR - so run...
RMPrepUSB - Install grub4dos - N=PBR - cancel copy of grldr if prompted.
2.4 Now check the filesystem of the USB drive - right-click on the drive letter - Properties - Tools - Check.
From an Admin command prompt (type cmd if in Powershell) run chkdsk U: /f where U: is the USB drive letter.
The USB drive should now be restored. If E2B is not working correctly, try the Update E2B Drive command in the E2B download. E2B v1.99 and later has a bug fix for issues when the CSM menu option 0 (Boot to E2B Menu) does not work.
If you cannot find any backup sector, run TESTDISK to try to recover any important files that may still be on there and then re-make the E2B USB drive from scratch.
If Update E2B Drive does not fix the problem and you suspect file corruption has occurred, then copy the entire contents of the E2B download folder to the E2B USB drive so that it overwrites all the E2B files on the USB drive.
'Cannot find GRLDR' error
First unplug and then re-connect the USB drive.
Ensure the file \glrdr is present.
Use Explorer - (right-click) - Properties - Tools - Check to repair the drive.
If you still get this error:
1. Copy all files and folders from the E2B USB drive to a temporary empty folder on your system hard drive (except Windows protected folders)
2. Use the latest E2B download or Make_E2B.exe to make a new E2B drive
3. Copy all your files back to the USB drive
4. Run Update E2B Drive (from the Make_E2B.exe GUI or using the .cmd file in the download) to ensure the E2B drive has the correct E2B files
- o O o -
A. If you can see some files on the E2B USB drive...
First check and fix the filesystem of the USB drive - right-click on the USB drive letter - Properties - Tools - Check.
Then, from an Admin command prompt (type cmd if in Powershell) run chkdsk U: /f where U: is the USB drive letter.
Next, if you see a \_ISO folder go to B, if you see a \e2b folder goto C, if you don't see either folder goto D.
B. (\_ISO folder present)
The USB drive has probably lost it's boot sectors.
Run RMPrepUSB - Ctrl+B to install a standard MBR.
Then run RMPrepUSB - Install grub4dos - Y=MBR - cancel copy of grldr if prompted
Now follow 2.3/1 (update PBR section) and 2.4 above.
C. (\e2b folder present)
The USB drive has probably been switched to a .imgPTN image.
Use \e2b\SWITCH_E2B.exe - Restore E2B Partitions to restore the E2B partitions.
If no partition is listed by SWITCH_E2B.exe, the USB drive probably no longer contains a grub4dos MBR or grub4dos boot code, so you can run \e2b\RestoreE2B_32_64.cmd as Administrator. This should restore the E2B partition(s).
If not try running RMPrepUSB - Ctrl+B to install a standard MBR. Then run RMPrepUSB - Install grub4dos - Y=MBR - cancel copy of grldr if prompted.
Also, use RMPrepUSB - File Info - \e2b\MBR.bin - 0 to examine the contents of \e2b\MBR.bin on the E2B drive, it should have an NTFS partition and a type 21 partition, something like this:
If it has an NTFS partition at 2048, restore that file to the MBR using RMPrepUSB - File>Drive - \e2b\MBR.BIN - 0 - 0 - 0. If you get a 'File read error' from RMPartUSB, copy the MBR.BIN file to a folder on your C: drive and try the command again using the copied file.
Once the E2B partition(s) are restored, follow 2.3, 2.3.1 and 2.4 above.
D. (no E2B folders/files present)
If you don't recognise any E2B files, the drive may have been reformatted accidentally by an OS installer!
This may mean that you have lost all or many of your E2B files!
Follow 2.1, 2.2, 2.3 and 2.4 or run TESTDISK to try to recover any important files that may still be on there and then re-make the E2B USB drive from scratch.
Repair a corrupt persistence partition?
If the persistence file is corrupt, a linux ISO may not fully boot unless you first delete the persistence file.
You can try to repair the persistence file as follows:
First, attempt to boot from E2B with persistence so that E2B adds the xxxx-rw persistence file into the partition table.
Do not reboot to the E2B menu.
If offered a choice in the Linux boot menu, boot without persistence or in safe mode. Otherwise, boot from a LiveCD or other LiveCD media and then connect the E2B drive.
/dev/sdX3 should be the persistence partition (where X is drive letter for E2B drive). Use the commands sudo lsblk, sudo fdisk -l, sudo blkid and df to check what device name the USB drive has been given..
To repair, type:
sudo e2fsck -p -n /dev/sdX3
PROBLEM: Sector at LBA30 appears to contain code or grub4dos not installed - please reformat using RMPrepUSB.
E2B requires that sector 30 (LBA30) is unused and that grub4dos is installed to the MBR with LBA1 as the backup sector.
E2B thinks that possibly sector LBA30 is in use on your drive. This usually happens if the drive was not freshly formatted (e.g. using RMPrepUSB), or perhaps another bootloader such as grub or grub2 has been installed accidentally onto the E2B USB drive.
If you have or update to E2B v1.B0 or later (2019-03) then do the following:
1. Boot to E2B Main Menu
2. Press SHIFT+P and enter the menu password (default = easy2boot)
3. Press SHIFT+C to get to the grub4dos console
4. Type fix30 and press Y and [ENTER] to fix LBA30 and LBA60
Alternatively use RMPrepUSB...
First use RMPRepUSB to install grub4dos to the MBR (do not overwrite the /grldr file).
If it is booting to grub4dos and E2B correctly, you can fix this by over-writing LBA30 and LBA60 with the contents of LBA0 as follows using RMPrepUSB.
1. Select the E2B USB drive in the Drive List box in RMPrepUSB