XP System Install ubuntu10.04 cannot start XP

Source: Internet
Author: User
Tags uuid
First look at System Monitor, open the partition of the XP system, the list will be updated and note the UUID for the Red line position.

Enter Ubuntu10.04, in the terminal type the following command, sudo gedit/boot/grub.cfg contrast the following to modify the corresponding XP startup, save exit, and then OK!
---------------------------------The following is the content of grub.cfg:-------------------------------#
# Don't 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 $prefix/grubenv]; Then
Load_env
Fi # #如果要开机默认启动项为XP, then here set default is changed to XP start number, for example, here is 4, that is: Set default= "4"
Set default= "0"
If [${prev_saved_entry}]; Then
Set Saved_entry=${prev_saved_entry}
Save_env Saved_entry
Set prev_saved_entry=
Save_env Prev_saved_entry
Set Boot_once=true
Fi

function Savedefault {
If [-Z ${boot_once}]; Then
Saved_entry=${chosen}
Save_env Saved_entry
Fi
}

function Recordfail {
Set recordfail=1
If [-N ${have_grubenv}]; Then if [-Z ${boot_once}]; Then save_env Recordfail; Fi Fi
}
Insmod ext2
Set root= ' (hd0,8) '
Search--no-floppy--fs-uuid--set 27cc65d6-0513-4f68-8c42-901f871052ae
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 and versions of terminal.mod that don ' t
# Understand Terminal_output
Terminal Gfxterm
Fi
Fi
Insmod ext2
Set root= ' (hd0,8) '
Search--no-floppy--fs-uuid--set 27cc65d6-0513-4f68-8c42-901f871052ae
Set locale_dir= ($root)/boot/grub/locale
Set Lang=zh
Insmod GetText
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/light-gray
### End/etc/grub.d/05_debian_theme ###

### Begin/etc/grub.d/10_linux ###
Menuentry ' Ubuntu, with Linux 2.6.32-21-generic '--class ubuntu--class gnu-linux--class GNU--class os {
Recordfail
Insmod ext2
Set root= ' (hd0,8) '
Search--no-floppy--fs-uuid--set 27cc65d6-0513-4f68-8c42-901f871052ae
Linux/boot/vmlinuz-2.6.32-21-generic root=uuid=27cc65d6-0513-4f68-8c42-901f871052ae ro Quiet Splash
Initrd/boot/initrd.img-2.6.32-21-generic
}
Menuentry ' Ubuntu, with Linux 2.6.32-21-generic (recovery mode) '--class Ubuntu--class gnu-linux--class GNU--class os {
Recordfail
Insmod ext2
Set root= ' (hd0,8) '
Search--no-floppy--fs-uuid--set 27cc65d6-0513-4f68-8c42-901f871052ae
Echo ' Loading Linux 2.6.32-21-generic ... '
Linux/boot/vmlinuz-2.6.32-21-generic root=uuid=27cc65d6-0513-4f68-8c42-901f871052ae RO Single
Echo ' Loading initial ramdisk ... '
Initrd/boot/initrd.img-2.6.32-21-generic
}
### End/etc/grub.d/10_linux ###

### begin/etc/grub.d/20_memtest86+ ###
Menuentry "Memory Test (memtest86+)" {
Insmod ext2
Set root= ' (hd0,8) '
Search--no-floppy--fs-uuid--set 27cc65d6-0513-4f68-8c42-901f871052ae
Linux16/boot/memtest86+.bin
}
Menuentry "Memory Test (memtest86+, serial console 115200)" {
Insmod ext2
Set root= ' (hd0,8) '
Search--no-floppy--fs-uuid--set 27cc65d6-0513-4f68-8c42-901f871052ae
Linux16/boot/memtest86+.bin CONSOLE=TTYS0,115200N8
}
### end/etc/grub.d/20_memtest86+ ###

# #这里加入XP启动项参数 ↓### Begin/etc/grub.d/30_os-prober ### menuentry "Windows XP (on/dev/sda1)" { insmod NTFS set root= ' (hd0,1) ' Search--no-floppy--fs-uuid--set b2cc3f5fcc3f1cd3 # #刚才抄下的UUID放这里! Chainloader +1 }### End/etc/grub.d/30_os-prober ###

### Begin/etc/grub.d/40_custom ###
# This file provides a easy way to add custom menu entries. Simply Type the
# menu entries you want to add after this comment. Be careful
# the ' EXEC tail ' line above.
### End/etc/grub.d/40_custom ###

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.