
Set the keyboard type
By default, grub4dos assumes a standard American QWERTY-USA keyboard is in use.
Tip: If Make_E2B.exe picks the wrong keyboard for your keyboard\language, make your E2B USB drive using the Make_E2B_USB_Drive.cmd button or edit the \_ISO\MyE2B.cfg file to use the correct keyboard translation file or run "\_ISO\docs\Make_E2B_USB_Drive\Make_MyE2B.cfg.cmd" from the E2B drive to make a new MyE2B.cfg file.
You can set the type of keyboard that is in use by adding a 'set KBD=' line to the \_ISO\MyE2B.cfg file.
Various keyboard translation code batch files exist in the \_ISO\e2b\grub folder (KBD_xxxxxx.g4b).
Use one of the lines below in your MyE2B.cfg file:
set KBD=KBD_AZERTY.g4b
set KBD=KBD_FRENCH.g4b
set KBD=KBD_GERMAN.g4b
set KBD=KBD_ITALIANO.g4b
set KBD=KBD_JAPAN_106.g4b
set KBD=KBD_LATIN_USA.g4b
set KBD=KBD_LATIN_USA.g4b
set KBD=KBD_QWERTY_UK.g4b
set KBD=KBD_QWERTZ.g4b
set KBD=KBD_QWERTZ_HUN.g4b
set KBD=KBD_SPANISH.G4B
set KBD=KBD_QWERTY_USA.g4b (default - no need to specify)
Note: If you have any lines of grub4dos code in the MyE2B.cfg file which require user keyboard input (e.g. password input), you should also run the KBD_xxxx.g4b file after setting the KBD variable, e.g.
set KBD=KBD_QWERTY_UK.g4b
set KBD=KBD_QWERTY_UK.g4b
...
###set KBD=KBD_AZERTY.g4b
###set KBD=KBD_FRENCH.g4b
###set KBD=KBD_GERMAN.g4b
###set KBD=KBD_ITALIANO.g4b
###set KBD=KBD_JAPAN_106.g4b
###set KBD=KBD_QWERTY_UK.g4b
###set KBD=KBD_QWERTZ.g4b
###set KBD=KBD_SPANISH.G4B
###set KBD=KBD_QWERTY_UK.g4b
if not "%KBD%"=="" call /%grub%/%KBD%
A useful reference for different keyboard layouts can be found here.
The BIOS scan codes for a standard keyboard are listed here (note: Alt+\ is actually 2b00 and some other Alt+codes are not listed).
grub4dos key names used in these files must consist of letters, numbers and the following special words (case sensitive):
escape (Esc), exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%), minus (-), underscore (_), equal (=), parenleft ((), backspace (backspace key), ctrlbackspace, tab (Tab key), bracketleft ([), braceleft ({), bracketright (]), braceright (}), enter (Enter key), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~), backslash (\), bar (|), comma (,), less (<), period (.) , greater (>), question (?), space, delete (Del), F1-F10, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, shiftF1-shiftF10, ctrlF1-ctrlF10.
escape (Esc), exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%), minus (-), underscore (_), equal (=), parenleft ((), backspace (backspace key), ctrlbackspace, tab (Tab key), bracketleft ([), braceleft ({), bracketright (]), braceright (}), enter (Enter key), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~), backslash (\), bar (|), comma (,), less (<), period (.) , greater (>), question (?), space, delete (Del), F1-F10, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, shiftF1-shiftF10, ctrlF1-ctrlF10.
Note: Recent versions of grub4dos from 2019-05-10 (E2B v1.B1c+) also have these key names for the Alt+ (same as AltGr+ and Ctrl+Alt+) key combinations by preceding the unshifted character with 'A': A0-A9, Aa-Az, Aequal, Abracketright, etc,. Also the single extra oem102 key (between the left-shift key and the z key) can be specified using oem102 and shiftoem102. e.g. For Hungarian keyboard, setkey at Av will produce @ when AltGr+v is typed, setkey less shiftoem102 will produce < when the shift+oem102 key is pressed. Note that not all these scan codes work correctly under QEMU or VBox.
#reset all key mappings
setkey
#reset the at (@) key mapping
setkey at at
e.g. how to use the grub4dos setkey command - setkey NEW_KEY USA_KEY
#print & if user types shift+1 (!)
setkey ampersand exclam
#swap Z and Y for QWERTZ kbd
setkey z y
setkey y z
setkey Z Y
setkey Y Z
setkey less oem102
setkey greater shiftoem102
setkey at Av
setkey at Av
Note: Virtual Machines such as QEMU and Virtual Box do not support all key combinations on all keyboards. Test the keyboard on a real system if you find some keys are not correctly translated. VMWare works OK.
Choosing Passwords and Hotkeys
If you are also defining menu hotkeys, or changing the default password, remember that different systems may have different keyboards connected and that some notebooks do not have a full keyboard (e.g. F11 and F12 may be missing or may not generate the correct scan codes).
For instance, on a QWERTZ keyboard, a user would need to enter easz2boot instead of easy2boot or press the Z key instead of Y=Yes.
If you have a AZERTY keyboard and you do not set the keyboard type in E2B, you would need to type eqsy"boot.
On a UK keyboard, the user must enter "fred instead of @fred.
For this reason, you may want to pick a password that works on a wide range of keyboards and avoid such characters as a,z,y,q,m,w,z,@,",#,£, F11,F12 and so on - using a PIN number is one option but on an AZERTY keyboard the user must use the number pad keys (or press SHIFT+number key if using the number keys above the letters).
Recommended for Easy2Boot (fastest flash drive!)
SanDisk Extreme SDCZ880-128G-G46
- Home
- Start & Intro
- Quick Setup Guide >>>
- DOWNLOADS >>>
- YouTube videos
- Tutorials and How To's
-
Make a USB Drive >>>
- Make a multi-partition E2B USB drive using RMPrepUSB
- Use an existing USB HDD for E2B
- Use LINUX to make an E2B drive + defrag
- How to Update E2B
- How to make a WINHELPER USB Flash Drive (fix 'Required DVD drive driver is missing')
- Multiple partitions on a USB Flash drive
- Using other partitions or drives
- Backup/Restore/Copy (clone) any E2B USB drive
- Make and burn an E2B DVD
- Using E2B with a Zalman/IODD
- Add E2B to your own grub4dos USB drive
- How to remove E2B
- E2B Menu System
- UEFI booting from E2B
-
How to add Payload Files and Use E2B >>>
- Make files CONTIGUOUS
- File Extensions recognised by E2B
- UEFI+MBR and how to make .imgPTN files
- MakePartImage and how to change the CSM Menu
- UEFI-Multiboot and rEFInd
- Using SWITCH_E2B with .imgPTN files
- Using the \_ISO\AUTO folder
-
WINDOWS payloads >>
- E2B USB HDD - Installing Windows with a 'WinHelper' drive
- Windows XP Install ISOs
- Install XP 32-bit + disk drivers (DPMS)
- Windows XP 64-bit
- Install XP using WinPE (one step process)
- Add XP Install ISOs using WinSetupFromUSB
- Windows Vista/7 Install ISOs
- UEFI boot from Windows 7 Install ISOs
- Windows 8/10 Install ISOs
- Unattended Installs
- XMLtoE2B.exe (Unattend.XML files)
- Adding >4GB Windows Install ISOs using .imgPTN files
- Automating Windows Installs from .imgPTN files
- Split_WinISO
- Add Windows ISOs to partition 2
- Windows AIO ISOs
- WindowsToGo
- WinNTSetup
- WinLite10 XML files
- SDI_CHOCO (install drivers, apps and updates) >>
- .VHD and .WIM files
- PassPass (bypass the Windows Password)
- Hack Windows Account Passwords (UtilMan.exe)
- Windows 2000
- Windows 98
- Multipoint Server
- Add the latest XP drivers (DPMS)
- Add a Windows Install menu entry
- LINUX payloads >>
- MSDart ERD ISOs
- WinBuilder, Medicat, Gandalf and WinPE ISOs
- Hirens/Strelec/DLC/F4 ISOs
- DOS (MS-DOS and FreeDOS)
- HAIKU
- MAC OS X
- FreeBSD
- MOVE_IMGPTN
- List of tested ISOs\payloads (with instructions)
-
Configure E2B >>>
- Menu settings (quick reference)
- E2B Menu Demo
- E2B_Editor
- E2B files and folders explained
- MyE2B.cfg - E2B configuration file >>
- Change the payload menu entries and help text using a .txt file
- Change the order of the menu entries
- Change the background wallpaper
- Different background wallpaper for each menu
- Default Menu and Timeout
- Change the Language, Headings, Menu and text
- Changing the default E2B menu entry order
- 'Change File Extension' prompt (Auto-Suggest)
- Change the Keyboard Layout
- About .mnu files
- Sample .mnu files
- PimpMyDrive.cmd
- Reduce the E2B messages
- Add a new Sub-Menu folder
- Stamps, Animation and Tunes
- Draw lines and boxes on the screen
- Write text/time/date to the menu screen
- Global Hotkeys
- Themes (Skins)
- Fonts
- Speeding up E2B (inc. FASTLOAD)
- One Single Menu
- The E2B F1 Help menu
- Add your own Help Menu
- Add Help text files (.help)
- Add Windows Install ISOs to the Main Menu
- Change the Windows Install Menu
- Passwords and Security
- Hide Payloads and Menu Entries
- Guest Mode
- GFX Boot Menus
- Dual Booting
- Change the CSM .imgPTN Menu
- Configure Clover
- Right-to-Left Languages
- Create new language files
- How to modify LOADISO.CMD (Repair message)
- Count number of boots
- UEFI - useful things know!
-
FAQ, Info, TroubleShooting, QEMU and Virtual Machines >>>
- 'File Not Contiguous' and 'Too Many Fragments' Errors
- 137GB 'BAD BIOS' bug
- TroubleShooting E2B
- E2B Error Messages
- Grub4dos Error Numbers
- Common problems with payload files
- Repair a corrupt E2B drive
- Known Issues and Bugs
- Slow and buggy BIOSes
- How E2B Works
- QEMU and Virtual Machines >>
- Using VBOX with a WinHelper USB drive
- Debugging E2B
- CONTIG.ISO
- ISOBOOT
- WIMBOOT (iPXE)
- grub4dos
- Useful resources
- Removable v. Fixed
- Gallery
- Guestbook
- Forum
- Blog
- a1ive grub2 File Manager (MBR+UEFI)
- Add Ventoy
- Site Map
- eBooks
- Contact Me >>>
- Donate
- Licensing
- Privacy policy (GDPR)
- Bespoke design service
- Grub2 Menu System (UEFI_GRUB2_PTN2)