救命阿阿阿阿阿阿,怎么恢复Vista引导
发表于 : 2009-03-30 23:34
本来想通过bcdedit增加一个grub for dos,写入内容如下:
先建立一个菜单项
bcdedit /create /d "Grub4Dos" /application bootsector
此时会得到一个字符串,下面用id代替上一命令得到的字符串
bcdedit /set {id} device partition=C:
bcdedit /set {id} path \grldr.mbr
bcdedit /displayorder {id} /addlast
结果重启,直接进Ubuntu了,vista启动项没有了,
menu.list 下有
title 启动 Windows Vista
root (hd0,0)
chainloader +1
title ubuntu 8.10 LiveCD
#find --set-root /Ubuntu
root (hd0,6)
kernel /Xubuntu/vmlinuz boot=casper iso-scan/filename=/Xubuntu/ubuntu-8.10-desktop-i386.iso quiet splash persistent ro locale=zh_CN.UTF-8
initrd /Xubuntu/initrd.gz
boot
也没用,又回到grub。
是不是上面的bcdedit /set {id} device partition=C: 这一句有问题,我的Ubuntu是硬盘livecd,现在有没有办法在linux下恢复bcdedit修改的内容,谢谢阿,救命阿
先建立一个菜单项
bcdedit /create /d "Grub4Dos" /application bootsector
此时会得到一个字符串,下面用id代替上一命令得到的字符串
bcdedit /set {id} device partition=C:
bcdedit /set {id} path \grldr.mbr
bcdedit /displayorder {id} /addlast
结果重启,直接进Ubuntu了,vista启动项没有了,
menu.list 下有
title 启动 Windows Vista
root (hd0,0)
chainloader +1
title ubuntu 8.10 LiveCD
#find --set-root /Ubuntu
root (hd0,6)
kernel /Xubuntu/vmlinuz boot=casper iso-scan/filename=/Xubuntu/ubuntu-8.10-desktop-i386.iso quiet splash persistent ro locale=zh_CN.UTF-8
initrd /Xubuntu/initrd.gz
boot
也没用,又回到grub。
是不是上面的bcdedit /set {id} device partition=C: 这一句有问题,我的Ubuntu是硬盘livecd,现在有没有办法在linux下恢复bcdedit修改的内容,谢谢阿,救命阿