无法修复grub
发表于 : 2009-02-23 12:17
前几天重装了xp 我就拿出7.10的live cd来修复grub (我的系统是xp+ubuntu8.10)
(分区是 一个dell的诊断程序 ,xp,xp的d盘,然后逻辑分区 (swap, / ,/home) )
我也试过在 输入 root(hd0, 以后按tab键 试了每一个分区都不行
没办法我又去找了grub4dos 然后把 menu.lst复制到c盘下
引导xp没有问题 但是引导ubuntu 就出现Error 15:File not found
然后我把引导 xp的那个选项改成root (hd0,6) 得到错误Error 12 : Invalid device requested
我的menu.lst
不知道是什么问题 大家帮我看下
(分区是 一个dell的诊断程序 ,xp,xp的d盘,然后逻辑分区 (swap, / ,/home) )
代码: 全选
sudo grub
代码: 全选
grub> find /boot/grub/stage1
Error 15: File not found
grub> root (hd0,6)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
没办法我又去找了grub4dos 然后把 menu.lst复制到c盘下
引导xp没有问题 但是引导ubuntu 就出现Error 15:File not found
然后我把引导 xp的那个选项改成root (hd0,6) 得到错误Error 12 : Invalid device requested
我的menu.lst
代码: 全选
title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid 77bcfcdc-509c-4153-8e75-eb198bd3c832
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=77bcfcdc-509c-4153-8e75-eb198bd3c832 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 77bcfcdc-509c-4153-8e75-eb198bd3c832
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=77bcfcdc-509c-4153-8e75-eb198bd3c832 ro single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, kernel 2.6.27-9-generic
uuid 77bcfcdc-509c-4153-8e75-eb198bd3c832
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=77bcfcdc-509c-4153-8e75-eb198bd3c832 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 77bcfcdc-509c-4153-8e75-eb198bd3c832
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=77bcfcdc-509c-4153-8e75-eb198bd3c832 ro single
initrd /boot/initrd.img-2.6.27-9-generic
title Ubuntu 8.10, memtest86+
uuid 77bcfcdc-509c-4153-8e75-eb198bd3c832
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Dell Utility Partition
root (hd0,1)
savedefault
makeactive
chainloader +1