安装ubuntukylin14.04后无法进入xp - Ubuntu Kylin 知识库管理系统
欢迎使用Ubuntu Kylin 知识库管理系统,如果已是论坛用户,即可直接登入,无需注册!
找回密码
注册

安装ubuntukylin14.04后无法进入xp

+1 投票
各位大侠:

小弟第一次安装ubuntu kylin14.04,选择与windows xp并存的方式,安装成功后系统启动时进入了选择操作系统的界面,xp选项排在最后,但选择xp系统按回车后界面又再次回到选择界面,选择其他选项则能正常进入相应操作,请问该问题应如何解决?

先谢谢各位!
最新提问 6月 21, 2014 作者: oqyneil (130 分)

2 个回答

0 投票
可以贴一下你的grub.cfg么?

 

/boot/grub/grub.cfg
最新回答 6月 21, 2014 作者: hnuzhoulin (340 分)
谢谢您的帮助,我的grub.cfg文件内容为:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  09eb8076-d9c8-46c1-8003-c950802bb778
else
  search --no-floppy --fs-uuid --set=root 09eb8076-d9c8-46c1-8003-c950802bb778
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=zh_CN
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  09eb8076-d9c8-46c1-8003-c950802bb778
else
  search --no-floppy --fs-uuid --set=root 09eb8076-d9c8-46c1-8003-c950802bb778
fi
insmod tga
if background_image /boot/grub/ubuntu_kylin_grub_bg.tga; then
  true
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu Kylin GNU/Linux' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-09eb8076-d9c8-46c1-8003-c950802bb778' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos8'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  09eb8076-d9c8-46c1-8003-c950802bb778
    else
      search --no-floppy --fs-uuid --set=root 09eb8076-d9c8-46c1-8003-c950802bb778
    fi
    linux    /boot/vmlinuz-3.13.0-24-generic root=UUID=09eb8076-d9c8-46c1-8003-c950802bb778 ro locale=zh_CN quiet splash $vt_handoff
    initrd    /boot/initrd.img-3.13.0-24-generic
}
submenu 'Ubuntu Kylin GNU/Linux 高级选项' $menuentry_id_option 'gnulinux-advanced-09eb8076-d9c8-46c1-8003-c950802bb778' {
    menuentry 'Ubuntu Kylin GNU/Linux,Linux 3.13.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-advanced-09eb8076-d9c8-46c1-8003-c950802bb778' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos8'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  09eb8076-d9c8-46c1-8003-c950802bb778
        else
          search --no-floppy --fs-uuid --set=root 09eb8076-d9c8-46c1-8003-c950802bb778
        fi
        echo    '载入 Linux 3.13.0-24-generic ...'
        linux    /boot/vmlinuz-3.13.0-24-generic root=UUID=09eb8076-d9c8-46c1-8003-c950802bb778 ro locale=zh_CN quiet splash $vt_handoff
        echo    '载入初始化内存盘...'
        initrd    /boot/initrd.img-3.13.0-24-generic
    }
    menuentry 'Ubuntu Kylin GNU/Linux, with Linux 3.13.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-recovery-09eb8076-d9c8-46c1-8003-c950802bb778' {
        recordfail
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos8'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  09eb8076-d9c8-46c1-8003-c950802bb778
        else
          search --no-floppy --fs-uuid --set=root 09eb8076-d9c8-46c1-8003-c950802bb778
        fi
        echo    '载入 Linux 3.13.0-24-generic ...'
        linux    /boot/vmlinuz-3.13.0-24-generic root=UUID=09eb8076-d9c8-46c1-8003-c950802bb778 ro recovery nomodeset locale=zh_CN
        echo    '载入初始化内存盘...'
        initrd    /boot/initrd.img-3.13.0-24-generic
    }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos8'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  09eb8076-d9c8-46c1-8003-c950802bb778
    else
      search --no-floppy --fs-uuid --set=root 09eb8076-d9c8-46c1-8003-c950802bb778
    fi
    knetbsd    /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos8'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  09eb8076-d9c8-46c1-8003-c950802bb778
    else
      search --no-floppy --fs-uuid --set=root 09eb8076-d9c8-46c1-8003-c950802bb778
    fi
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Microsoft Windows XP Professional (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-CE78412378410C21' {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  CE78412378410C21
    else
      search --no-floppy --fs-uuid --set=root CE78412378410C21
    fi
    parttool ${root} hidden-
    drivemap -s (hd0) ${root}
    chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# 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 /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
诶,这个歌貌似没问题啊,有可能是安装ubuntu的时候xp那边的引导被搞掉了。

 

最最需要试一下个就是先 sudo update-grub

这个会尝试重建启动项的,如果还是不行就自己手动重建xp的启动再重建grub:

1.先找个PE盘,进去系统后点开diskgenius,然后点硬盘导航条里面的重建主引导记录,这样xp肯定能启动了,但是你看不到ubuntu了。

2.xp可以启动后,再用你原来安装ubuntukylin的方式进到ubuntukylin试用而不安装里面,

看下页:
grub-install
新版的grub-install命令指定安装目录时不再使用--root-directory选项,改为 --boot-directory选项,安装文件不是安装在指定目录的 /boot/grub下,而是安装在指定目录的 /grub下,具体用法为
grub-install --boot-directory=DIR Install-Device
举个例子说明,如果 /boot分区为 sda7,/ 分区为 sda8,在使用 livecd 模式修复grub2到mbr时使用的命令为
代码:
sudo mount /sda8 /mnt云,编程,linux,cluster; l: F- m. N! N" S' U; @5 `
sudo mount /sda7 /mnt/boot! H0 Y8 [0 h0 q  y9 @& n
sudo grub-install --boot-directory=/mnt/boot /dev/sda

sudo mount /dev/sda7 /mnt
sudo grub-install --boot-directory=/mnt /dev/sda

而对于只有 / 分区(假设为 /dev/sda7) ,没有 /boot单独分区的,使用命令为
代码:
sudo mount /dev/sda7 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda

谢谢您耐心的回复,昨晚尝试过使用sudo update-grub进行修复,没有解决问题,网上也没有搜到有用的方法,原本打算今晚使用xp安装盘运行fixboot命令看看能不能修复xp启动,不知道fixboot命令与diskgenius重建主引导记录的效果是否一样?启动起xp后再按您的方法运行一下grub-install试试yes

才来逛这边的论坛,不知道你先恢复了XP 再用easyboot工具做个引导项可以不

我的是win7装完可以用,不过不小心引导修复了。后面ubuntu进不去是用那个工具修复的可以进了
0 投票
Buy Periactin Weight Gain Pills Propecia Vorher Nachher Bilder ****** Remoxy Amoxicillin Bangladesh Buy Strattera Atomoxetine Usa Online Order Original Propecia Cialis Funcionamiento Comprar Propecia Online
最新回答 5月 6, 2017 作者: 匿名
...