Grub4dos Menu Lst Manuals
- PBR-booting to grub4dos from a disk 2. MBR-booting to grub4dos from a disk Stage 1.5 boot code grldr menu.lst Save menu.lst as UTF-8 Details about grub4dos boot Stage 1.5 Chapter 5 - Installing grub4dos Bootlace Grubinst and GrubinstGUI (Windows) grubmenu.exe BootIce RMPrepUSB Exercise 1: Make a bootable grub4dos USB drive (Windows) Exercise 2.
- C: grldr='Start GRUB4DOS' Then copy grldr to C:, and create the GRUB4DOS configuration file at C: menu.lst. Next time you start windows, there is a new option 'Start GRUB4DOS' which can be used to start GRUB for DOS.
- Menu.lst Grub2
- Grub Menu.lst
- Grub Menu.lst Example
- Grub4dos Menu Lst Manuals Download
- Grub4dos Menu Lst Manuals Downloads
Note: This method only applies to Legacy BIOS mode. UEFI mode is not supported.
Linux users with (Legacy) GRUB already installed can use it to boot Grub4dos. Identify the partition containing the GRUB boot files/folder (e.g. Copy grub.exe to the GRUB boot folder. Now add the following entry to your /boot/grub/menu.lst file. /boot/grub/grub.cfg - This is the main configuration file that replaces menu.lst. Unlike menu.lst, this file cannot be edited by hand! I strongly advise against trying to tamper with this file, using chattr command or anything of the sort. /etc/grub.d/ - This new directory contains GRUB scripts. These scripts are building blocks from. Is only installed the Grub4DOS MBR and booting code to your disk, so you still need to manually copy grldr and menu.lst from GRUB4DOS package to your flash disk or hard disk and configure to the menu.lst. Grub4Dos GUI Installer is a small program to help you install GRUB to the master boot record of your Flash Disk or any Hard Disk drive. 4 GNU GRUB Manual 2.04 Have a flexible command-line interface A fairly flexible command-line interface, accessible from the menu, is available to edit any preset commands, or write a new boot command set from scratch. If no configuration file is present, GRUB drops to the command-line.
- Windows Boot Manager
Introduce
When you boot into Windows, there is always a menu to select the Windows operating system that you have installed on your hard drive. If you have only one Windows operating system, the menu will not display and will automatically boot into that operating system.
By editing the Windows Boot Manager menu, we can add or remove any menu if desired. The great thing is that both Grub2 and Grub4Dos from AIO Boot support booting from Windows Boot Manager. This makes it possible to add a menu to Windows Boot Manager without having to install Grub2 or Grub4Dos.
Installing AIO Boot on your hard drive will give you more free space to integrate your packages, as well as faster speeds than a regular USB drive.
Install AIO Boot
First, you need to download and install AIO Boot to any drive you want.
Note:
- Uncheck Auto install Bootloader to skip installation of Grub2. After extracting, you can install Clover and Syslinux from AIOCreator.exe -> Bootloaders.
- Select Use Hard Disk Drive to list all drives in the drop down list.
- Select the drive on which you want to extract the files and install AIO Boot.
- You should create a new partition to install AIO Boot. This makes it easier to manage.
- Use FAT32 format for best support.
- New partitions can be created easily by using the Shrink feature of Disk Management.
- Click OK to proceed with the extraction.
We will now proceed with adding Grub2 nor Grub4Dos menus to Windows Boot Manager.
Windows Boot Manager
We will now use BootICE to add Grub2 and Grub4Dos to Windows Boot Manager. For Windows XP, we just need to add the menu to boot.ini.
Windows 7/8.1/10
The steps below help you add a Grub2 and Grub4Dos menu to BCD of Windows 7/8.1/10.
- Running BootICE, this tool can be found in /AIO/Tools folder or from AIOCreator.exe -> Tools.
- Switch to BCD, select BCD of current system by default and click Easy mode.
- Select Add and then select New RealMode entry (Grub/Linux).
- In the next option, you need to select the following:
- Type: Partition.
- Boot disk: select the disk containing the partition where you extracted AIO Boot.
- Partition: select the partition where you extracted AIO Boot. Here, I extracted to C: drive.
- OS title: enter the name you want the menu to display.
- For Grub2, it could be Grub2.
- For Grub4Dos, it could be Grub4Dos.
- Boot file:
- Grub2: AIOgrubgrub2win
- Grub4Dos: AIOToolsgrub4dosgrldr
- You can adjust the number of seconds in the Timeout (s). The system will automatically boot into the selected menu if it is not selected within the time specified above.
- Click Save current system to save the menu.
- Restart your computer for testing. You will see the menu as shown below:
Windows XP
Unlike Windows 7/ 8.1/10, Windows XP uses the menu in the boot.ini file. Grub2 does not support booting from XP, here I will boot to Grub4Dos and then boot to Grub2.
- The boot.ini file is located on the drive where you installed Windows XP. This file is hidden so we need to show it first.
- Open My Computer, select Tools from the menu, then select Folder Options.
- Switch to View and uncheck Hide protected operating system files (Recommended).
- Click OK to save the options.
- Open boot.ini in the drive where you installed Windows XP. My drive is C:.
- Add the following lines:
- For Grub2:
- For Grub4Dos:
- Copy the following files to the root of the C: drive.
- For Grub2: AIOgrubgrub2xp
- For Grub4Dos: AIOToolsgrub4dosgrldr.
- Save boot.ini file.
- Restart your computer for testing. You will see the menu as shown below:
Good luck!
It is worth noting that some of the Grub4dos commands (e.g. password, fallback, etc) are only used in configuration files – they are not relevant when using the command line. The configuration file is used to script boot options – the default menu is text based, alternatively a splash image can be used.
All commands in the configuration file must be in lower case. All boot options must begin with the command title, which should be followed with the text to be displayed in the boot menu (e.g. title Boot Windows XP will display the text “Boot Windows XP”.
Once the boot menu is displayed the selected menu option can be edited before booting (by pressing the [e] key), however the edits take place in memory and are not written to the configuration file.
Sample menu.lst file (included with Grub4dos download) -
Menu.lst Grub2
NOTE - all lines starting with # are comments - they are not processed.
Display Options
Menu colours can be set using the following command syntax (See also APPENDIX - Commands section here). Default is white text on a black background, with current option being black text within a white highlight -
It is also possible to use a background image with a menu, using either the splashimage command or the gfxmenu package. Both of these options must be used in a configuration file and cannot be used from a command line. gfxmenu requires external files/packages and is much more complex than using the splashimage command, however it does support .jpg images. For gfxmenu usage, see here.
If using the splashimage command, the image will need to be in the .xpm format (which can be compressed with gzip) and must be 640x480 pixels with a maximum of 14 colours. For instructions on creating a splash image see next section (here). To display splash image splash.xpm.gz (in current root directory) the following entry should be used in menu.lst -
To display splash image splash.xpm.gz (saved in 1st partition on 1st hard disk drive) the following entry should be used -
By default the foreground colour (all of the menu text and the highlight for the currently selected option) will be white and the background colour (the highlighted text within the currently selected option) will be black. To change these colours use the following menu.lst entry -
foreground=RRGGBB
background=RRGGBB
Where RR is red, GG is green, and BB blue. Numbers must be in hexadecimal. In the following example the menu text and highlight for the selected option will be displayed in Blue (hex decimal value 0033FF) and the selected option will have Red (hex decimal value FF3300) text – refer to figure 2. below.
foreground=0033FF
background=FF3300
Adding (Help) Messages to Menu Entries
Grub4dos will display the following message beneath any available menu options -
Press 'e' to edit the commands before booting, or 'c' for a command line.
It is possible to replace the above text with a user defined entry specific to individual menu items. Any message must be appended to the title line of the menu entry. Text to add should be preceeded by n. As an example, the following menu.lst entry -
find --set-root /dos.img
map --mem /dos.img (fd0)
root (fd0)
chainloader +1
Will display the menu in figure 3. -
To add the message 'Load DOS.img floppy disk image into RAM' to the menu.lst entry for title MS DOS - edit the entry, changing title MS DOS to title MS DOSnLoad DOS.img floppy disk image into RAM. The new menu.lst entry -
find --set-root /dos.img
map --mem /dos.img (fd0)
root (fd0)
chainloader +1
Will display the menu in figure 4. -
Multiple lines can be added to the message by adding additional n (new line) entries/commands. E.g. title MS DOSnLoad DOS.img floppy disk image into RAMnMount as (fd0) and boot from the image Will display the following text/message at the bottom of the menu screen -
Mount as (fd0) and boot from the image
Other commands can be used for the displayed message/text. The following is from README_GRUB4DOS.txt -
Press 'e' to edit the commands before booting, or 'c' for a command line.to -
Press 'p' to gain privileged control.
The user enters the [p] key to gain privileged control, followed by the specified password – which in the preceding example is administrator.
It is possible to use an encrypted password by using the command password --md5 followed by the encrypted password – in the following case “$1$ZjU0$k107noL9DOaClJEu6n6f91” is an encryption of administrator.
timeout 10
default /default
password --md5 $1$ZjU0$k107noL9DOaClJEu6n6f91
title........
WARNING - do not generate your 'md5 hash” password using another program as it is unlikely to be compatible with Grub4dos (see here). To ensure compatibility use the md5crypt command from within Grub4dos - see below.
To create an encrypted password, boot Grub4dos and press [c] to access a command line interface, then type the command md5crypt - this will prompt you to enter a password and will output the chosen password as an md5 hash (see figure 5. below).
It is also possible to restrict access to individual menu items when a password has been set by using the lock command, until the user enters the correct password (using [p] key to gain privileged control, followed by the password) any menu items designated with 'lock' will not be accessible -
timeout 10
default /default
title........
lock
Alternatively the password command can be used to protect individual menu entries by specifying the password command within the entry – e.g.
timeout 10
default /default
title........
password password2
md5 hash’s can also be used within menu entries. Different menu entries within the same configuration file can be protected with different passwords - whilst still using a password entry at the start of the configuration file forcing the user to enter a password to Press 'p' to gain privileged control - e.g.
timeout 10
default /default
password --md5 $1$ZjU0$k107noL9DOaClJEu6n6f91
title........
password mypassword
Using Submenus
It is possible to create sub menus by using the configfile command, followed by the filename of the configuration file you want to load. E.g. menu.lst contents –
timeout 10
password --md5 $1$ZjU0$k107noL9DOaClJEu6n6f91
title Boot Options
lock
find --set-root /submenu.lst
configfile /submenu.lst
Will load submenu.lst. The submenu.lst configuration file follows the same format as menu.lst – a new menu colour scheme can be specified, default boot entry can be set, etc. Adding an option to return to the previous menu is recommended, to avoid being 'stuck' in the submenu.