Ubuntu9.10 repair Windows boot

Source: Internet
Author: User
Ubuntu9.10 uses grub2 (not sure if it is 2). the grub boot configuration file is no longer a menu. lst is/boot/grub. cfg. This file is read-only by default. Therefore, you must change it to sudochmod + w/boot/grub before modification. cfg. Add the following content to sudogedit/boot/grub. cfg.

Ubuntu 9.10 uses grub2 (not sure if it is 2). Unlike the previous grub boot configuration files of different versions
/Boot/grub. cfg. This file is read-only by default. Therefore, you must change it to writable before modification.

Sudo chmod + w/boot/grub. cfg

Then you can modify it. Add the following content to it:

Sudo gedit/boot/grub. cfg

The added content is as follows:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by/usr/sbin/grub-mkconfig using templates
# From and settings from/etc/default/grub
#
### BEGIN/etc/grub. d/00_header ###
Set default = 0
Set timeout = 5
Set root = (hd0, 7)
Search -- fs-uuid -- set 28d5eac5-c42c-49ef-8537-0b280ff87de1
If loadfont/usr/share/grub/ascii. 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
### END/etc/grub. d/00_header ###
### BEGIN/etc/grub. d/05_debian_theme ###
Set menu_color_normal = cyan/blue
Set menu_color_highlight = white/blue
### END/etc/grub. d/05_debian_theme ###
### BEGIN/etc/grub. d/10_linux ###
Menuentry "Ubuntu, linux 2.6.30-8-generic "{
Set root = (hd0, 7)
Search -- fs-uuid -- set 28d5eac5-c42c-49ef-8537-0b280ff87de1
Linux/boot/vmlinuz-2.6.30-8-generic root = UUID = 28d5eac5-c42c-49ef-8537-0b280ff87de1 ro quiet splash
Initrd/boot/initrd. img-2.6.30-8-generic
}
Menuentry "Ubuntu, linux 2.6.30-8-generic (recovery mode )"{
Set root = (hd0, 7)
Search -- fs-uuid -- set 28d5eac5-c42c-49ef-8537-0b280ff87de1
Linux/boot/vmlinuz-2.6.30-8-generic root = UUID = 28d5eac5-c42c-49ef-8537-0b280ff87de1 ro single
Initrd/boot/initrd. img-2.6.30-8-generic
}
### END/etc/grub. d/10_linux ###
### BEGIN/etc/grub. d/20_memtest86 + ###
Menuentry "Memory test (memtest86 + )"{
Linux/boot/memtest86 +. bin
}
Menuentry "Memory test (memtest86 +, serial console 115200 )"{
Linux/boot/memtest86 +. bin console = ttyS0, 115200n8
}
### END/etc/grub. d/20_memtest86 + ###
Menuentry "Windows XP Pro "{
Set root = (hd0, 1)
Chainloader + 1
}
### BEGIN/etc/grub. d/30_os-prober ###
### END/etc/grub. d/30_os-prober ###
### BEGIN/etc/grub. d/40_custom ###
# This file is an example on how to add custom entries
### END/etc/grub. d/40_custom ###

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.