ubuntu10.10 从wubi迁移到硬盘成功

刚刚迁移配置完毕纪念一下。。。。。
首先按照这个地址操作一边
http://marz.is-programmer.com/posts/19916.html

操作结束之后重启会发现grub引导错误。无法进入操作系统。
下面就进行一些操作和配置就可以进入了。。
1进入wubi安装的ubuntu。在磁盘实用工具中找到分区迁移的物理分区,然后加载这个这个磁盘。
2使用root用户编辑/boot/grub/menu.lst文件。(当然建议备份一下)
3内容为:

# This is a divider, added to separate the menu items below from the Debian
# ones.

title unknownos                     #在grub菜单上显示的名字
root (hd0,4)                           #加载的位置只改逗号后面的数字这个就是你磁盘分区的sdaX-1
makeactive
chainloader +1
boot


title Windows 7 (loader)
root (hd0,0)
makeactive
chainloader +1
boot
修改为:

title Ubuntu-on-/dev/sda4
root (hd0,2)
kernel (hd0,2)/vmlinuz root=/dev/sda3
initrd (hd0,2)/initrd.img
boot


title Windows 7 (loader)
root (hd0,0)
makeactive
chainloader +1
boot

重启选择就可以用了。。然后重新挂载交换分区google一下就会知道。还有分区的时候ext4,我用的是这个。
posted @ 2011-04-01 16:58  莫烦恼  阅读(698)  评论(0编辑  收藏  举报