After installing Ubuntu9.10, we know that Ubuntu9.10 uses grub2, which is a test version. The original sudogedit/boot/grub/menu. the lst is useless. The current file is in/boot/grub. run this command under cfg, sudogedit/boot/grub. cfg, of course, you can also manually find this file in the file, and then edit it, grub. cfg is read-only. If you
After installing Ubuntu 9.10, we know that Ubuntu 9.10 uses grub 2, which is a test version. The original sudo gedit/boot/grub/menu. the lst is useless. The current file is in/boot/grub. run this command under cfg, sudo gedit/boot/grub. cfg
Of course, you can also manually find this file in the file and then edit it. grub. cfg is read-only. If this is the first modification, you must first set writable
Sudo chmod 744/boot/grub. after cfg, you don't need to modify it. This is my configuration. Ubuntu 9.10 + Windows 7 only deletes several old kernel boot items, from installing Ubuntu 9.10 to the present, the Linux kernel has been upgraded twice. I think there are too many things above. I usually use Ubuntu. If you need to modify the sequence and enable Windows 7 to start by default, you can change the value 0 in set default = "0" to the location of your Windows 7 instance.
#
# 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, 6)
Search-no-floppy-fs-uuid-set ff9c425b-6834-4564-8b5c-37190a25ace0
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-19-generic "{
Recordfail = 1
If [-n $ {have_grubenv}]; then save_env recordfail; fi
Set quiet = 1
Insmod ext2
Set root = (hd0, 6)
Search-no-floppy-fs-uuid-set ff9c425b-6834-4564-8b5c-37190a25ace0
Linux/boot/vmlinuz-2.6.31-19-generic root = UUID = ff9c425b-6834-4564-8b5c-37190a25ace0 ro quiet splash
Initrd/boot/initrd. img-2.6.31-19-generic
}
Menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode )"{
Recordfail = 1
If [-n $ {have_grubenv}]; then save_env recordfail; fi
Insmod ext2
Set root = (hd0, 6)
Search-no-floppy-fs-uuid-set ff9c425b-6834-4564-8b5c-37190a25ace0
Linux/boot/vmlinuz-2.6.31-19-generic root = UUID = ff9c425b-6834-4564-8b5c-37190a25ace0 ro single
Initrd/boot/initrd. img-2.6.31-19-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 ###
Menuentry "Windows 7 (loader) (on/dev/sda2 )"{
Insmod ntfs
Set root = (hd0, 2)
Search-no-floppy-fs-uuid-set c244b14544b13d4b
Chainloader + 1
}
### 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 ###