Let's take a look at how my GRUB is added to my question 4: Linux general technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by Rcx1z1h1
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by/usr/sbin/grub-mkconfig using templates
# From/etc/grub. d and settings from/etc/default/grub
#
### BEGIN/etc/grub. d/00_header ###
If [-s/boot/grub/grubenv]; then
Have_grubenv = true
Load_env
Fi
Set default = "0"
If [$ {prev_saved_entry}]; then
Saved_entry =$ {prev_saved_entry}
Save_env saved_entry
Prev_saved_entry =
Save_env prev_saved_entry
Fi
Insmod ext2
Set root = (hd0, 8)
Search -- no-floppy -- fs-uuid -- set c6db5d45-9989-4122-b3a7-2dda71adc3ff
If loadfont/usr/share/grub/unicode. pf2; then
Set gfxmode = 640x480
Insmod gfxterm
Insmod vbe
If terminal_output gfxterm; then true; else
# For backward compatibility with versions of terminal. mod that don't
# Understand terminal_output
Terminal gfxterm
Fi
Fi
If [$ {recordfail} = 1]; then
Set timeout =-1
Else
Set timeout = 10
Fi
### END/etc/grub. d/00_header ###
### BEGIN/etc/grub. d/05_debian_theme ###
Set menu_color_normal = white/black
Set menu_color_highlight = black/white
### END/etc/grub. d/05_debian_theme ###
### BEGIN/etc/grub. d/10_linux ###
Menuentry "Ubuntu, Linux 2.6.31-14-generic "{
Recordfail = 1
If [-n $ {have_grubenv}]; then save_env recordfail; fi
Set quiet = 1
Insmod ext2
Set root = (hd0, 8)
Search -- no-floppy -- fs-uuid -- set c6db5d45-9989-4122-b3a7-2dda71adc3ff
Linux/boot/vmlinuz-2.6.31-14-generic root = UUID = c6db5d45-9989-4122-b3a7-2dda71adc3ff ro quiet splash
Initrd/boot/initrd. img-2.6.31-14-generic
}
Menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode )"{
Recordfail = 1
If [-n $ {have_grubenv}]; then save_env recordfail; fi
Insmod ext2
Set root = (hd0, 8)
Search -- no-floppy -- fs-uuid -- set c6db5d45-9989-4122-b3a7-2dda71adc3ff
Linux/boot/vmlinuz-2.6.31-14-generic root = UUID = c6db5d45-9989-4122-b3a7-2dda71adc3ff ro single
Initrd/boot/initrd. img-2.6.31-14-generic
}
### END/etc/grub. d/10_linux ###
### BEGIN/etc/grub. d/20_memtest86 + ###
Menuentry "Memory test (memtest86 + )"{
Linux16/boot/memtest86 +. bin
}
Menuentry "Memory test (memtest86 +, serial console 115200 )"{
Linux16/boot/memtest86 +. bin console = ttyS0, 115200n8
}
### END/etc/grub. d/20_memtest86 + ###
### BEGIN/etc/grub. d/30_os-prober ###
If [$ {timeout }! =-1]; then
If keystatus; then
If keystatus -- shift; then
Set timeout =-1
Else
Set timeout = 0
Fi
Else
If sleep -- interruptible 3; then
Set timeout = 0
Fi
Fi
Fi
### END/etc/grub. d/30_os-prober ###
### BEGIN/etc/grub. d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type
# Menu entries you want to add after this comment. Be careful not to change
# The 'exec tail' line above.
### END/etc/grub. d/40_custom ### BEGIN certificate ------------------------------------ ### BEGIN/etc/grub. d/30_os-prober ###
Menuentry "Microsoft Windows XP Professional (on/dev/sda1 )"{
Insmod fat
Set root = (hd0, 1)
Search -- no-floppy -- fs-uuid -- set 4a6e-1b85
Drivemap-s (hd0) $ {root}
Chainloader + 1
My Ubuntu may have occupied (hd0, 0) by myself. This is automatically repaired... I hope you can see it a bit ~~
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