Error numbers

Note: If you have too many ‘set’ variables in your \_ISO\MyE2B.cfg file, it can cause many different grub4dos errors to occur in various menus. Try without a MyE2B.cfg file to check if it still gives you an error. 

1   ERR_BAD_FILENAME  Filename must be either an absolute pathname or blocklist
2   ERR_BAD_FILETYPE  Bad file or directory type
3   ERR_BAD_GZIP_DATA  Bad or corrupt data while decompressing file
4   ERR_BAD_GZIP_HEADER  Bad or incompatible header in compressed file
5   ERR_BAD_PART_TABLE  Partition table invalid or corrupt
6   ERR_BAD_VERSION  Mismatched or corrupt version of stage1/stage2
7   ERR_BELOW_1MB  Loading below 1MB is not supported
8   ERR_BOOT_COMMAND  Kernel must be loaded before booting
9   ERR_BOOT_FAILURE  Unknown boot failure
10   ERR_BOOT_FEATURES  Unsupported Multiboot features requested
11   ERR_DEV_FORMAT  Unrecognized device string or you omitted the required DEVICE part (e.g. '(hd0,0)' or '(cd)') which should precede the filename.
12   ERR_DEV_VALUES  Invalid device requested
13   ERR_EXEC_FORMAT  Invalid or unsupported executable format
14   ERR_FILELENGTH  Filesystem compatibility error cannot read whole file
15   ERR_FILE_NOT_FOUND  File not found 15
16   ERR_FSYS_CORRUPT  Inconsistent filesystem structure
17   ERR_FSYS_MOUNT  Cannot mount selected partition
18   ERR_GEOM  Selected cylinder exceeds maximum supported by BIOS
19   ERR_NEED_LX_KERNEL  Linux kernel must be loaded before initrd
20   ERR_NEED_MB_KERNEL  Multiboot kernel must be loaded before modules
21   ERR_NO_DISK  Selected disk does not exist 21
22   ERR_NO_PART  No such partition
23   ERR_NUMBER_PARSING  Error while parsing number
24   ERR_OUTSIDE_PART  Attempt to access block outside partition
25   ERR_READ  Disk read error
26   ERR_SYMLINK_LOOP  Too many symbolic links
27   ERR_UNRECOGNIZED  Unrecognized command
28   ERR_WONT_FIT  Selected item cannot fit into memory
29   ERR_WRITE  Disk write error
30   ERR_BAD_ARGUMENT  Invalid argument
31   ERR_UNALIGNED  File is not sector aligned
32   ERR_PRIVILEGED  Must be authenticated
33   ERR_DEV_NEED_INIT  Device not initialized yet
34   ERR_NO_DISK_SPACE  No spare sectors on the disk
35   ERR_NUMBER_OVERFLOW  Overflow while parsing number
36   ERR_DEFAULT_FILE  Invalid DEFAULT file format. Please copy a valid DEFAULT file from the grub4dos release and try again. Also note that the DEFAULT file must be uncompressed. 36
37   ERR_DEL_MEM_DRIVE  You should delete other mem drive first or use `--mem' option to force the deletion
38   ERR_DISABLE_A20  Failed to turn off Gate A20!
39   ERR_DOS_BACKUP  GRUB was not booted from DOS or the backup copy of DOS at physical\naddress 0x200000 is corrupt
40   ERR_ENABLE_A20  Failed to turn on Gate A20!
41   ERR_EXTENDED_PARTITION  Extended partition table is invalid or its CHS values conflict with the BPB in a logical partition
42   ERR_FILENAME_FORMAT  The leading DEVICE of the filename to find must be stripped off\n\tand DIR for set-root must begin in a slash(/).
43   ERR_HD_VOL_START_0  The BPB hidden_sectors should not be zero for a hard-disk partition boot sector
44   ERR_INT13_ON_HOOK  The int13 handler already on hook
45   ERR_INT13_OFF_HOOK  The int13 handler not yet on hook
46   ERR_INVALID_BOOT_CS  Invalid boot CS. Should be between 0 and 0xFFFF
47   ERR_INVALID_BOOT_IP  Invalid boot IP. Should be between 0 and 0xFFFF
48   ERR_INVALID_FLOPPIES  Invalid floppies. Should be between 0 and 2
49   ERR_INVALID_HARDDRIVES  Invalid harddrives. Should be between 0 and 127
50   ERR_INVALID_HEADS  Invalid heads. Should be between 0 and 256(0 means auto)
51   ERR_INVALID_LOAD_LENGTH  Invalid load length. Should be between 512 and 0xA0000
52   ERR_INVALID_LOAD_OFFSET  Invalid load offset. Should be between 0 and 0xF800
53   ERR_INVALID_LOAD_SEGMENT  Invalid load segment. Should be between 0 and 0x9FFF
54   ERR_INVALID_SECTORS  Invalid sectors. Should be between 0 and 63(0 means auto)
55   ERR_INVALID_SKIP_LENGTH  Invalid skip length. Should be less than the file size
56   ERR_INVALID_RAM_DRIVE  Invalid ram_drive. Should be between 0 and 254
57   ERR_IN_SITU_FLOPPY  Only hard drives could be mapped in situ.
58   ERR_IN_SITU_MEM  Should not use --mem together with --in-situ.
59   ERR_MD_BASE  When mapping whole mem device at a fixed location you must specify --mem to a value > 0.
60   ERR_NON_CONTIGUOUS  File for drive emulation must be in one contiguous disk area
61   ERR_MANY_FRAGMENTS Too many fragments
62   ERR_NO_DRIVE_MAPPED  Refuse to hook int13 because of empty drive map table
63   ERR_NO_HEADS  The number of heads must be specified. The `--heads0' option tells map to choose a value(but maybe unsuitable) for you
64   ERR_NO_SECTORS  The number of sectors per track must be specified. The `--sectors-per-track0' option tells map to choose a value(but maybe unsuitable) for you
65   ERR_PARTITION_TABLE_FULL  Cannot use --in-situ because the partition table is full(i.e. all the 4 entries are in use).
66   ERR_RD_BASE  RD_BASE must be sector-aligned and non-zero for mapping at a fixed location
67   ERR_SPECIFY_GEOM  Should not specify geometry when mapping a whole drive or when emulating a hard disk with a logical partition
68   ERR_SPECIFY_MEM  Should not specify `--mem' when mapping a whole drive
69   ERR_SPECIFY_RESTRICTION  Options --read-only --fake-write and --unsafe-boot are mutually exclusive. Should not specify them repeatedly.
70   ERR_MD5_FORMAT  Unrecognized md5 string. You must create it using the MD5CRYPT command.
71   ERR_WRITE_GZIP_FILE  Attempt to write a gzip file
72   ERR_FUNC_CALL  Invalid function call
73   ERR_INTERNAL_CHECK  Internal check failed. Please report this bug.
74   ERR_KERNEL_WITH_PROGRAM  Kernel cannot load if there is an active process
75   ERR_HALT  Halt failed.
76   ERR_PARTITION_LOOP  Too many partitions.
77   ERR_NOT_ENOUGH_MEMORY  Not enough memory
78   ERR_NO_VBE_BIOS  VBE not detected.
79   ERR_BAD_VBE_SIGNATURE  VESA signature not present.
80   ERR_LOW_VBE_VERSION  VBE version too old. Must be 2.0+.
81   ERR_NO_VBE_MODES  No modes detected for 24/32 bits per pixel.
82   ERR_SET_VBE_MODE  Set VBE mode failed.
83   ERR_SET_VGA_MODE  Set VGA mode failed.
84   ERR_LOAD_SPLASHIMAGE  Failed loading splashimage.
85   ERR_UNIFONT_FORMAT  Wrong unifont format.
86   ERR_DIVISION_BY_ZERO  Division by zero 86
1    ERR_BAD_FILENAME  Filename must be either an absolute pathname or blocklist
2    ERR_BAD_FILETYPE  Bad file or directory type
3    ERR_BAD_GZIP_DATA  Bad or corrupt data while decompressing file
4    ERR_BAD_GZIP_HEADER  Bad or incompatible header in compressed file
5    ERR_BAD_PART_TABLE  Partition table invalid or corrupt
6    ERR_BAD_VERSION  Mismatched or corrupt version of stage1/stage2
7    ERR_BELOW_1MB  Loading below 1MB is not supported
8    ERR_BOOT_COMMAND  Kernel must be loaded before booting
9    ERR_BOOT_FAILURE  Unknown boot failure
10   ERR_BOOT_FEATURES  Unsupported Multiboot features requested
11   ERR_DEV_FORMAT  Unrecognized device string or you omitted the required DEVICE part which should lead the filename.
12   ERR_DEV_VALUES  Invalid device requested
13   ERR_EXEC_FORMAT  Invalid or unsupported executable format (not bootable) - the ISO(?) you are trying to boot from is not bootable - maybe it is an Update CD instead of an Install CD\DVD? Maybe BIOS has the 128GB USB drive limit bug and file is too far on drive?
14   ERR_FILELENGTH  Filesystem compatibility error cannot read whole file
15   ERR_FILE_NOT_FOUND  File not found [check filename does not contain non-standard characters such as ( or % or = or & ]
16   ERR_FSYS_CORRUPT  Inconsistent filesystem structure (maybe due to 128GB-limit BIOS bug?)
17   ERR_FSYS_MOUNT  Cannot mount selected partition
18   ERR_GEOM  Selected cylinder exceeds maximum supported by BIOS
19   ERR_NEED_LX_KERNEL  Linux kernel must be loaded before initrd
20   ERR_NEED_MB_KERNEL  Multiboot kernel must be loaded before modules
21   ERR_NO_DISK  Selected disk does not exist
22   ERR_NO_PART  No such partition
23   ERR_NUMBER_PARSING  Error while parsing number
24   ERR_OUTSIDE_PART  Attempt to access block outside partition
25   ERR_READ  Disk read error (make sure file is contiguous)
26   ERR_SYMLINK_LOOP  Too many symbolic links
27   ERR_UNRECOGNIZED  Unrecognized command
28   ERR_WONT_FIT  Selected item cannot fit into memory (file may not be contiguous) - if using map --mem, also add --top if not enough contiguous upper memory (use displaymem to check)
29   ERR_WRITE  Disk write error
30   ERR_BAD_ARGUMENT  Invalid argument
31   ERR_UNALIGNED  File is not sector aligned
32   ERR_PRIVILEGED  Must be authenticated
33   ERR_DEV_NEED_INIT  Device not initialized yet
34   ERR_NO_DISK_SPACE  No spare sectors on the disk
35   ERR_NUMBER_OVERFLOW  Overflow while parsing number
36   ERR_DEFAULT_FILE  Invalid DEFAULT file format. Please copy a valid DEFAULT file from the grub4dos release and try again. Also note that the DEFAULT file must be uncompressed.
37   ERR_DEL_MEM_DRIVE  You should delete other mem drive first or use `--mem' option to force the deletion
38   ERR_DISABLE_A20  Failed to turn off Gate A20!
39   ERR_DOS_BACKUP  GRUB was not booted from DOS or the backup copy of DOS at physical address 0x200000 is corrupt
40   ERR_ENABLE_A20  Failed to turn on Gate A20!
41   ERR_EXTENDED_PARTITION  Extended partition table is invalid or its CHS values conflict with the BPB in a logical partition
42   ERR_FILENAME_FORMAT  The leading DEVICE of the filename to find must be stripped off and DIR for set-root must begin in a slash(/).
43   ERR_HD_VOL_START_0  The BPB hidden_sectors should not be zero for a hard-disk partition boot sector
44   ERR_INT13_ON_HOOK  The int13 handler already on hook
45   ERR_INT13_OFF_HOOK  The int13 handler not yet on hook
46   ERR_INVALID_BOOT_CS  Invalid boot CS. Should be between 0 and 0xFFFF
47   ERR_INVALID_BOOT_IP  Invalid boot IP. Should be between 0 and 0xFFFF
48   ERR_INVALID_FLOPPIES  Invalid floppies. Should be between 0 and 2
49   ERR_INVALID_HARDDRIVES  Invalid harddrives. Should be between 0 and 127
50   ERR_INVALID_HEADS  Invalid heads. Should be between 0 and 256 (0 means auto)
51   ERR_INVALID_LOAD_LENGTH  Invalid load length. Should be between 512 and 0xA0000
52   ERR_INVALID_LOAD_OFFSET  Invalid load offset. Should be between 0 and 0xF800
53   ERR_INVALID_LOAD_SEGMENT  Invalid load segment. Should be between 0 and 0x9FFF
54   ERR_INVALID_SECTORS  Invalid sectors. Should be between 0 and 63 (0 means auto)
55   ERR_INVALID_SKIP_LENGTH  Invalid skip length. Should be less than the file size
56   ERR_INVALID_RAM_DRIVE  Invalid ram_drive. Should be between 0 and 254
57   ERR_IN_SITU_FLOPPY  Only hard drives could be mapped in situ.
58   ERR_IN_SITU_MEM  Should not use --mem together with --in-situ.
59   ERR_MD_BASE  When mapping whole mem device at a fixed location you must specify --mem to a value > 0.
60   ERR_NON_CONTIGUOUS  File for drive emulation must be in one contiguous disk area
61   ERR_MANY_FRAGMENTS Too many fragments
62   ERR_NO_DRIVE_MAPPED  Refuse to hook int13 because of empty drive map table
63   ERR_NO_HEADS  The number of heads must be specified. The `--heads0' option tells map to choose a value (but maybe unsuitable) for you
64   ERR_NO_SECTORS  The number of sectors per track must be specified. The `--sectors-per-track0' option tells map to choose a value (but maybe unsuitable) for you
65   ERR_PARTITION_TABLE_FULL  Cannot use --in-situ because the partition table is full (i.e. all the 4 entries are in use).
66   ERR_RD_BASE  RD_BASE must be sector-aligned and non-zero for mapping at a fixed location
67   ERR_SPECIFY_GEOM  Should not specify geometry when mapping a whole drive or when emulating a hard disk with a logical partition
68   ERR_SPECIFY_MEM  Should not specify `--mem' when mapping a whole drive
69   ERR_SPECIFY_RESTRICTION  Options --read-only --fake-write and --unsafe-boot are mutually exclusive. Should not specify them repeatedly.
70   ERR_MD5_FORMAT  Unrecognized md5 string. You must create it using the MD5CRYPT command.
71   ERR_WRITE_GZIP_FILE  Attempt to write a gzip file
72   ERR_FUNC_CALL  Invalid function call
73   ERR_INTERNAL_CHECK  Internal check failed. Please report this bug.
74   ERR_KERNEL_WITH_PROGRAM  Kernel cannot load if there is an active process
75   ERR_HALT  Halt failed.
76   ERR_PARTITION_LOOP  Too many partitions.
77   ERR_NOT_ENOUGH_MEMORY  Not enough memory
78   ERR_NO_VBE_BIOS  VBE not detected.
79   ERR_BAD_VBE_SIGNATURE  VESA signature not present.
80   ERR_LOW_VBE_VERSION  VBE version too old. Must be 2.0+.
81   ERR_NO_VBE_MODES  No modes detected for 24/32 bits per pixel.
82   ERR_SET_VBE_MODE  Set VBE mode failed.
83   ERR_SET_VGA_MODE  Set VGA mode failed.
84   ERR_LOAD_SPLASHIMAGE  Failed loading splashimage.
85   ERR_UNIFONT_FORMAT  Wrong unifont format.
86   ERR_DIVISION_BY_ZERO  Division by zero 
 
 grub error numbers
Here is an interpretation of the grub4dos error codes based on the grub error code documentation (they may not be 100% correct for grub4dos but may help).
 
1 : Filename must be either an absolute filename or blocklist
This error is returned if a file name is requested which doesn't fit the syntax/rules listed in the section Filesystem syntax and semantics.
2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.
3 : Bad or corrupt data while decompressing file
This error is returned if the run-length decompression code gets an internal error. This is usually from a corrupt file.
4 : Bad or incompatible header in compressed file
This error is returned if the file header for a supposedly compressed file is bad.
5 : Partition table invalid or corrupt
This error is returned if the sanity checks on the integrity of the partition table fail. This is a bad sign.
6 : Mismatched or corrupt version of stage1/stage2
This error is returned if the install command is pointed to incompatible or corrupt versions of the stage1 or stage2. It can't detect corruption in general, but this is a sanity check on the version numbers, which should be correct.
7 : Loading below 1MB is not supported
This error is returned if the lowest address in a kernel is below the 1MB boundary. The Linux zImage format is a special case and can be handled since it has a fixed loading address and maximum size.
8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence without having a kernel to start.
9 : Unknown boot failure
This error is returned if the boot attempt did not succeed for reasons which are unknown.
10 : Unsupported Multiboot features requested
This error is returned when the Multiboot features word in the Multiboot header requires a feature that is not recognized. The point of this is that the kernel requires special handling which GRUB is likely unable to provide.
11 : Unrecognized device string
This error is returned if a device string was expected, and the string encountered didn't fit the syntax/rules listed in the section Filesystem syntax and semantics.
12 : Invalid device requested
This error is returned if a device string is recognizable but does not fall under the other device errors.
13 : Invalid or unsupported executable format
This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD). If an ISO file is being booted, the ISO is probably not bootable or is corrupt.
14 : Filesystem compatibility error, cannot read whole file
Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.
15 : File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.
16 : Inconsistent filesystem structure
This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB. If using a Virtual Machine and a .vmdk file for the E2B USB drive, it can be caused by invalid parameters used within the .vmdk file. Re-make the .vmdk file or if using DavidB's VMUB utility, re-select the USB drive for your VM so that the .vmdk file is recreated on the next run. If you see this message when booting from a real system, but not when booting from QEMU or VBox for some payload files, then suspect the BIOS has the 137GB USB bug - it cannot access files beyond 137GB on the USB disk.
17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
18 : Selected cylinder exceeds maximum supported by BIOS
This error is returned when a read is attempted at a linear block address beyond the end of the BIOS translated area. This generally happens if your disk is larger than the BIOS can handle (512MB for (E)IDE disks on older machines or larger than 8GB in general).
19 : Linux kernel must be loaded before initrd
This error is returned if the initrd command is used before loading a Linux kernel. Similar to the above error, it only makes sense in that case anyway.
20 : Multiboot kernel must be loaded before modules
This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of location of such modules to a non-Multiboot-aware kernel.
21 : Selected disk does not exist
This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.
22 : No such partition
This error is returned if a partition is requested in the device part of a device- or full file name which isn't on the selected disk.
23 : Error while parsing number
This error is returned if GRUB was expecting to read a number and encountered bad data.
24 : Attempt to access block outside partition
This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk or a bug in the code handling it in GRUB (it's a great debugging tool).
25 : Disk read error
This error is returned if there is a disk read error when trying to probe or read data from a particular disk.
26 : Too many symbolic links
This error is returned if the link count is beyond the maximum (currently 5), possibly the symbolic links are looped.
27 : Unrecognized command
This error is returned if an unrecognized command is entered into the command-line or in a boot sequence section of a configuration file and that entry is selected.
28 : Selected item cannot fit into memory
This error is returned if a kernel, module, or raw file load command is either trying to load its data such that it won't fit into memory or it is simply too big. If a file is not contiguous, E2B may try to load it into memory.
29 : Disk write error
This error is returned if there is a disk write error when trying to write to a particular disk. This would generally only occur during an install of set active partition command.
30 : Invalid argument
This error is returned if an argument specified to a command is invalid.
31 : File is not sector aligned
This error may occur only when you access a ReiserFS partition by block-lists (e.g. the command @command{install}). In this case, you should mount the partition with the `-o notail' option.
32 : Must be authenticated
This error is returned if you try to run a locked entry. You should enter a correct password before running such an entry. 
60: File not contiguous
The file has been split into several different places on the drive. For E2B, most payload files and most ext2 files need to be contiguous. Run WinContig or Defraggler to make all files on the drive contiguous. 

New! Ventoy for Easy2Boot v1.0.97 now released!

 

eBooks available (in PDF format)

Easy-to-read eBooks are available in PDF format (each eBook is over 100 pages) – rated 4.5/5 stars.
Learn the secrets of Legacy and UEFI USB booting and then make your perfect multiboot USB drive.
E2B eBook #1 includes instructions on how to remove the E2B 5-second start-up delay blue screen.

E2B is unique in that it uses partition images which allows you to directly boot from Secure Boot images (no need to disable Secure Boot or run MOK manager or modify your UEFI BIOS).

Most eBooks are over 100 pages long, contain original content and step-by-step exercises which are suitable for both the beginner or the more experienced user.
Customer reviews are located at bottom of each eBook product page and multi-buy discounts are available when you buy more than one eBook. Please also visit RMPrepUSB.com and the E2B Forum.
Subscribe to my blog for the latest news, tips, USB boot articles and free eBook updates.