在xp里用wubi安装的ubuntu10.04,昨天更新后无法启动了。bios后选择系统,选ubuntu,然后出现错误:
error: unkown command 'loadfont'
error: file not found
后来在ubuntu官方论坛上找到解决办法,讨论此问题的具体地址:
http://ubuntuforums.org/showthread.php?t=1474253
解决办法:
I use wubi, for quick fix, I boot from live CD and then mount windows partition sda2:
sudo mkdir /win
sudo mount /dev/sda2 /win
Then mount virtual disk
sudo mkdir /vdisk
sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk
Then I edit grub.cfg
sudo nano /vdisk/boot/grub/grub.cfg
and comment this lines
#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 with versions of terminal.mod that don't
# # understand terminal_output
# terminal gfxterm
# fi
#fi
save changes and reboot
简述一下,从Live CD或Live USB启动,选试用ubuntu,然后挂载ubuntu的虚拟分区root.disk,编辑其中的grub.cfg文件,注释掉一些句子,保存重启后就可以了。
这里注意,挂载ubuntu文件系统所在windows分区时的命令可能有问题,我用的时候提示没有指定文件系统类型。这时直接从面板上Places上的磁盘挂载好了。
转载于:https://my.oschina.net/arthurdu/blog/148005