ubuntu grub rescue

> ls                                 (找到 /boot )x

 

未单独分 /boot 区,假设一块 harddisk

> set root=(hd0,x)

> set prefix=(hd0,x)/boot/grub

> insmod /boot/grub/normal.mod

> normal

 

单独分区 /boot 假设 (hd0,y)

> set root=(hd0,y)

> set prefix=(hd0,y)/grub

> insmod /grub/normal.mod

> normal

 

进入 ubuntu 后,终端修复 grub

$ sudo -i

# update-grub

# grub-install /dev/sda

 

posted @ 2013-04-07 21:53  moon_cat  Views(151)  Comments(0)    收藏  举报