wubi的错

来源:互联网 发布:linux tomcat 远程调试 编辑:程序博客网 时间:2024/06/06 18:24

事故现场:ubuntu10.04    使用的wubi安装的,在xp下面可以看到按到了D盘下,d:/ubuntu/disk/root.disk    swap.disk   grub   发现grub的内容没有了,

在linux下面用mount -o loop    root.disk   挂载,,,,,,没有用。

在grub  下面挂载 loopback loop0    root.disk    也没有用。。。

linux查看属性也不行,报错是i/o错误。。。。。

最后  拿了一个好的引导放到  grub目录下面:

menuentry "Ubuntu, Linux 2.6.32-38-generic" {
insmod ntfs
set root='(hd0,7)'
search --no-floppy --fs-uuid --set C07AAB777AAB693C
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-38-generic root=UUID=C07AAB777AAB693C loop=/ubuntu/disks/root.disk ro   quiet splash
initrd /boot/initrd.img-2.6.32-38-generic
}


1、建立隐藏目录e:\ubuntu\found.000
2、 把/ubuntu/disks/目录下面的所有文件移动到found.000目录下面
3、重入GRUB,EXIT
4、 重启XP
5、 再把found.000下面的文件移动到/ubuntu/disks目录下面
6、重启进入UBUNTU。

网络的作法,是ok的。。。。。。。





网络的解答:

http://blog.csdn.net/zhangxuyu1118/article/details/7062212

最近 ubutu 10.10, 无法启动,进入GRUB命令状态。

我在forum.ubuntu.org.cn上求救了,帖子链接如下:

http://forum.ubuntu.org.cn/viewtopic.php?f=139&t=357130&p=2581937#p2581937


XP系统,WUBI安装,UBUNTU目录在E盘。

grub> ls
(memdisk) (hd0) (hd0,msdos6) (hd0,msdos5) (hd0,msdos1) //memdisk是怎么回事?

grub>ls (hd0,6)
.... type ntfs UUID xxxxxxxx //获取E盘的UUID

grub>insmod ntfs //ok
grub>set root=(hd0,6) //ok
grub>search --no-floppy --fs-uuid --set=root xxxxxxxxx //ok
grub>loopback loop0 /ubuntu/disks/root.disk //不行了
error:fixup signature not match.

grub>ls (hd0,6)/ubuntu/disks/
boot/ root.disk swap.disk //有root.disk的

grub>ls -l (hd0,6)/ubuntu/disks/
DIR boot/
239392339 swap.disk //竟然没有root.disk!


grub>loopback loop0 /ubuntu/disks/swap.disk

//可以的。


最后看了http://www.fzblog.net/detail/id/426这篇文章后问题解决,感谢风之紫色!


解决方法竟然是这样的:


“我操他妈,这样搞定了:
1、建立隐藏目录e:\ubuntu\found.000
2、 把/ubuntu/disks/目录下面的所有文件移动到found.000目录下面
3、重入GRUB,EXIT
4、 重启XP
5、 再把found.000下面的文件移动到/ubuntu/disks目录下面
6、重启进入UBUNTU。

wubi真的坑爹啊。