Detailed description of grub2 functions and operation methods in ubuntu
Source: Internet
Author: User
Grub2 functions and operation methods in ubuntu: grub2jwtusinceversion9.10 (KarmicKoala) // grub2 is used in ubuntu 9.10. Grubversion1.99Ubuntu11.04... grub2 functions and operation methods in ubuntu: grub 2 ubuntu since version 9.10 (Karmic Koala) // grub2 is used from Ubuntu 9.10. Grub version 1.99 Ubuntu 11.04 (Natty Narwhal) improves Improvements GRUB 2's major improvements over the original GRUB include: scripting support including conditional statements and functionsDynamic module loadingRescue modeCustom guest boot menu support and improved splash capabilityBoot LiveCD ISO images directly from hard driveNew configuration file structureNon-x86 platform support (Such as PowerPC) Universal support for UUIDs (not just Ubuntu) in ubuntu, you can run the following command to view the grub version: grub-install-v if only one operating system is installed, ubuntu. By default, the grub startup menu is not displayed. There are two ways to go to the Start menu: Press "SHIFT" or "ESC" to go to the Start menu of grub. In earlier grub versions, the configuration file/boot/grub/menu. lst has been replaced with/boot/grub. cfg. grub. cfg in grub2 and will be updated by some actions. For example, when a kernel is added or removed, or when you simply run the update-grub command. The menu list for listing valid Linux kernels is automatically generated by running update-grub. Grub. cfg will be overwritten during update, but some custom configuration files in the/etc/grub. d/folder can be used, for example, 40_custom. $ Ls/etc/grub. d/00_header 10_linux 20_memtest86 + 40_custom defaults 20_linux_xen 30_os-prober 41_custom the configuration file for changing the menu display settings is:/etc/default/grub [plain] # If you change this file, run 'UPDATE-grub 'afterwards to update #/boot/grub. cfg. # For full documentation of the options in this file, see: # info-f grub-n 'simple configuration' GRUB_DEFAULT = 0 GRUB_HIDDEN_TIMEOUT = 0 GRUB_HIDDEN_TI MEOUT_QUIET = true GRUB_TIMEOUT = 10 GRUB_DISTRIBUTOR = 'lsb _ release-I-s 2>/dev/null | echo Debian 'release = "quiet splash" GRUB_CMDLINE_LINUX = "" # Uncomment enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) # GRUB_BADRAM = "0x012345" 67,0 xfefefefe, 0x89abcdef, 0 xefefefefef "# Uncomment to disable graphical terminal (grub-pc only) # GRUB_TERMINAL = console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command 'vbeinfo' # GRUB_GFXMODE = 640x480 # Uncomment if you don't want GRUB to pass "root = UUID = xxx" parameter to Linux # GRU B _DISABLE_LINUX_UUID = true # Uncomment to disable generation of recovery mode menu entries # GRUB_DISABLE_RECOVERY = "true" # Uncomment to get a beep at grub start # partition = "480 440 1" partition number has been changed now! Now the first partition is 1 rather than 0. The first device/drive still defaults to hd0. If necessary, you can configure it in the device. map file under/boot/grub. When you run the update-grub command, grub automatically finds another operating system. After finding the items, you can find them in grub2's menu. Any changes to the configuration file do not take effect immediately. the update-grub command must be run before it takes effect. File structure ---- File StructureGRUB2 changes the structure level of the Directory. GRUB2 folders include:/etc/grub. d --- include the GRUB2 script/boot/grub --- include the GRUB2 module and the menu File (grub. cfg)/etc/default/grub --- including GRUB2 in user-defined configuration ---- failed ing GRUB 2 startup failure. set the startup menu timeout in security mode: /etc/grub. d/00_header, locate about 236 rows, that is, the content of the make_timeout () function. Set timeout = 0For timeout =-1. if there is no countdown, the Start menu is displayed. For timeout = 0. even if the startup fails, the Start menu is not displayed. For timeout> = 1, the Start menu will be stopped For a certain period of time, which is the number of seconds represented by this number. After the modification, you must run the update-grub command to make the change take effect. After the above changes, grub will still start to the text graphics mode. Therefore, you can modify the content of the/etc/grub. d/10_linux (about 188th rows) file to achieve the corresponding purpose. You also need to run the update-grub command to take effect.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service