GRUB Edit Mode
Edited Saturday, October 02 2010
This web-page is part of a larger site giving examples of how to
install Windows+Ubuntu Linux operating systems 'dual boot' in a
computer. Illustrated Dual Boot HomePage
|GRUB's Edit Mode is
a very convenient and useful feature for GRUB users. |
You can use GRUB's edit mode to edit your GRUB menu entry 'on the fly'!
is most useful when you want to add some special kernel parameters at
the last minute or when an operating system's boot entry just
needs one or two small corrections before booting.
|GNU GRUB is a work in progress and the information in this website is incomplete and may be wrong and/or out of date. Please consult the official GNU GRUB 1.98-r2692 manual. |
GNU GRUB Menu
GNU GRUB version 1.98-1ubuntu7
|Ubuntu, with Linux 2.6.32-25-generic
Ubuntu, with Linux 2.6.32-25-generic (recovery mode)
Memory test (memtest86+)
|Use the up or down arrow keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, or 'c' for a command-line.
computer should automatically boot into GRUB's Menu mode if you had
another operating system in the computer before you installed Ubuntu.
/boot/grub/grub.cfg is the configuration file
for the GRUB Menu. It contains the settings which determine the GRUB
Menu's appearance and behaviour.
there's only one or two small changes you need to make in
the lines from your grub.cfg before you can get your operating system
GRUB's 'Edit' mode is helpful when
you want to temporarily over-ride settings in your /boot/grub/grub.cfg
or append something (like a
kernel option), to the end of a line in a boot stanza just for one
boot-up. Using 'Edit' mode can often be faster and easier than using
GRUB in CLI mode. The changes only apply to the current boot-up and won't be saved permanently.
How to enter 'Edit Mode'.
Press your 'e' key from your GRUB Menu to switch into 'Edit Mode'.
Use your 'Esc' key to return to the GRUB menu.
- Use your up or down arrow keys while in Menu Mode to select a line (title) representing a boot entry you want to edit.
- Press your 'e' key from a GRUB menu to switch into 'Edit Mode'.
Edit Mode you can use your left-arrow or right-arrow keys to move
the _ (cursor) to select the characters or spaces you want to edit.
type in the normal manner to add special information (kernel options)
or replace any wrong or out of date information in your boot entry
- Remember, 'tab completion' is a useful feature
- Press 'ctrl' + 'x' to boot
GNU GRUB version 1.98-1ubuntu7
search --no-floppy --fs-uuid --set 2ea0ae64a-7104-4545-b405-5633fdad70bd
linux /boot/vmlinuz-18.104.22.168-generic root=UUID=2ea0ae64a-7104-4545-b405-5633fdad70bd ro quiet splash
Emacs-like screen editing is supported. TAB lists available
completions. Press C-x ('x' with Ctrl) to boot, C-c ('c' with Ctrl) for
a command-line or ESC to return menu.
|'ctrl' + 'alt' + 'del'||reboot immediately|
|'c'||(from the GRUB menu) = change into CLI mode|
|'tab'||'tab completion' - GRUB will try to guess what the user is trying to type and autocomplete the word|
- works in CLI mode or edit mode - extremely useful
|'tab','tab'||Have GRUB guess what the user is trying to type and offer a list of possibilities - works in CLI mode or edit mode -
extremely useful |
|'esc'||(from CLI or edit mode) = change to menu mode (main menu)|
|down arrow||(in menu) = move the cursor down a line|
|up arrow||(in menu) = move the cursor up a line|
|'e'||(from the GRUB menu) = enter edit mode (edit the selected entry)|
|left or right arrow||(in edit mode) = move the cursor left or right - to select what to edit|
|'ctrl' + 'x'||(from edit mode) = boot the selected entry|
|'ctrl' + 'c'||(from edit mode) = switch to CLI mode|
|'Print Screen SysRq'||make the BIOS beep|
Links you should see:
_ BootOptions - Ubuntu Community Documentation
_ 10 boot time parameters you should know about the Linux kernel - NixCraft
_ Linux Kernel Documentation :: kernel-parameters.txt -
_ Ubuntu - How To Edit Boot Time Parameters - grumpymole
_ Temporarily Edit the GRUB Menu - Legacy GRUB Page - Illustrated Dual Boot Site