[分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
haoyounbbl
帖子: 160
注册时间: 2008-12-24 0:59

[分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

#1

帖子 haoyounbbl » 2009-05-12 16:58

一天了,发了2个帖子,都没人鸟我 :em20
也许老鸟们都不用wubi,新手们都不知道该如何解决吧。
However,我还是自己搞定了。分享一下:


状况:我没有ubuntu的光盘
我是用wubi安装的,今天意外断电后,就进不了ubuntu了。
进去只有命令行,grub>开头的。

按下ESC键,出现以下菜单:

find /ubuntu/disks/boot/grub/menu.lst
find /ubuntu/install/boot/grub/menu.lst
find /menu.lst
find /boot/grub/menu.lst
find /grub/menu.lst
commandline
reoboot
halt

选择那些find所在的行,都无法启动,只有commandline,reboot和halt可以选
可惜不会GRUB的commandline,reboot就重启进XP了,halt就直接关机了


xp下在ubuntu的分区找到menu.lst
变成了

代码: 全选

debug off
hiddenmenu
default 0
timeout 0
fallback 1

title find /ubuntu/disks/boot/grub/menu.lst
   find --set-root --ignore-floppies /ubuntu/disks/boot/grub/menu.lst
   configfile /ubuntu/disks/boot/grub/menu.lst

title find /ubuntu/install/boot/grub/menu.lst
   fallback 2
   find --set-root --ignore-floppies /ubuntu/install/boot/grub/menu.lst
   configfile /ubuntu/install/boot/grub/menu.lst

title find /menu.lst
   fallback 3
   find --set-root --ignore-floppies /menu.lst
   configfile /menu.lst

title find /boot/grub/menu.lst
   fallback 4
   find --set-root --ignore-floppies /boot/grub/menu.lst
   configfile /boot/grub/menu.lst

title find /grub/menu.lst
   fallback 5
   find --set-root --ignore-floppies /grub/menu.lst
   configfile /grub/menu.lst

title commandline
   commandline

title reboot
   reboot

title halt
   halt
知道这些都没有用,正确的应该是这样类型的:

代码: 全选

title      Ubuntu 9.04, kernel 2.6.28-12-generic
root      ()/ubuntu/disks
kernel      /boot/vmlinuz-2.6.28-12-generic root=UUID=CC489CD8489CC31E loop=/ubuntu/disks/root.disk ro quiet splash
initrd      /boot/initrd.img-2.6.28-12-generic

title      Ubuntu 9.04, kernel 2.6.28-12-generic (recovery mode)
root      ()/ubuntu/disks
kernel      /boot/vmlinuz-2.6.28-12-generic root=UUID=CC489CD8489CC31E loop=/ubuntu/disks/root.disk ro  single
initrd      /boot/initrd.img-2.6.28-12-generic

title      Ubuntu 9.04, kernel 2.6.28-11-generic
root      ()/ubuntu/disks
kernel      /boot/vmlinuz-2.6.28-11-generic root=UUID=CC489CD8489CC31E loop=/ubuntu/disks/root.disk ro quiet splash
initrd      /boot/initrd.img-2.6.28-11-generic

title      Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
root      ()/ubuntu/disks
kernel      /boot/vmlinuz-2.6.28-11-generic root=UUID=CC489CD8489CC31E loop=/ubuntu/disks/root.disk ro  single
initrd      /boot/initrd.img-2.6.28-11-generic

title      Ubuntu 9.04, memtest86+
root      ()/ubuntu/disks
kernel      /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title      Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Windows Vista (loader)
rootnoverify   (hd0,0)
savedefault
chainloader   +1
网上看了很多资料,论坛里也看了下,都没有说该怎么解决的
有些说直接更改menu.lst,改成上面那样的,我试了下,没有用
还有的朋友就直接重装了。
因为wubi作为windows下的一个程序,意外的断电可能会导致ubuntu不能运行,这也是wubi安装ubuntu一直以来被批评的一点

重点:仔细看了下ubuntu所在的分区,发现root.disk和swap.disk都不见了
后来想了一下,应该是被扔到回收站了。一般windows磁盘出错,文件消失了,都不是直接从硬盘上消失了,而是被扔到回收站了,而这并不是用显示隐藏文件所能够看到的。

这里我用了7-zip。一种解压工具。使用7-zip后,随便打开一个压缩包,就可以把这个压缩包当作文件管理器来使用,而且它能看到系统隐去的文件。
OK了,来到ubuntu所在的盘,找到被删除的文件。在ubuntu下建立disks文件夹,把找到的root.disk和swap.disk还有boot文件夹放到disks下。把boot-grub下的menu.lst复制出来,替换那个错误的menu.lst。


重启,应该OK了。

除了ubuntu所在盘install的文件夹仍旧出错,不过并不影响系统的使用。
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

Re: [分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

#2

帖子 yaoms » 2009-05-12 17:08

wubi 安装的系统,大家都怎么懂的。因为我们没有用wubi。所以才没什么人回答你阿。
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
头像
haoyounbbl
帖子: 160
注册时间: 2008-12-24 0:59

Re: [分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

#3

帖子 haoyounbbl » 2009-05-12 17:13

yaoms 写了:wubi 安装的系统,大家都怎么懂的。因为我们没有用wubi。所以才没什么人回答你阿。
我想想也是这个原因
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: [分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

#4

帖子 想入非非 » 2009-05-12 19:59

估计你连grub都损坏的时候就没招了 :em06
Ubuntu User
头像
haoyounbbl
帖子: 160
注册时间: 2008-12-24 0:59

Re: [分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

#5

帖子 haoyounbbl » 2009-05-12 20:33

想入非非 写了:估计你连grub都损坏的时候就没招了 :em06
把root.disk提取出来,放到移动硬盘里面
然后重新用wubi在原来的分区里面安装ubuntu,最后替换root.disk,不知道这样的想法可不可行?
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: [分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

#6

帖子 想入非非 » 2009-05-12 20:49

haoyounbbl 写了:
想入非非 写了:估计你连grub都损坏的时候就没招了 :em06
把root.disk提取出来,放到移动硬盘里面
然后重新用wubi在原来的分区里面安装ubuntu,最后替换root.disk,不知道这样的想法可不可行?
我突然发现root.disk能够在linux系统中正常挂载的,能够挂载之后修复就简单了 :em05
你说的办法估计会把home.disk覆盖
Ubuntu User
头像
haoyounbbl
帖子: 160
注册时间: 2008-12-24 0:59

Re: [分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

#7

帖子 haoyounbbl » 2009-05-12 20:59

wubi安装的好像只有root.disk和swap.disk
我觉得root.disk就相当于虚拟机模拟的一个硬盘一样,home这个文件夹在root.disk里。不知道理解的正不正确。

不过root.disk能够挂载读取的话,以后万一出错了,那数据就能够保留下来了。嘿嘿
shaneyao
帖子: 4
注册时间: 2009-04-26 5:39

Re: [分享]wubi安装的ubuntu意外关机后进入不了系统的解决方法

#8

帖子 shaneyao » 2009-05-13 17:27

haoyounbbl 写了:重点:仔细看了下ubuntu所在的分区,发现root.disk和swap.disk都不见了
后来想了一下,应该是被扔到回收站了。一般windows磁盘出错,文件消失了,都不是直接从硬盘上消失了,而是被扔到回收站了,而这并不是用显示隐藏文件所能够看到的。

这里我用了7-zip。一种解压工具。使用7-zip后,随便打开一个压缩包,就可以把这个压缩包当作文件管理器来使用,而且它能看到系统隐去的文件。
OK了,来到ubuntu所在的盘,找到被删除的文件。在ubuntu下建立disks文件夹,把找到的root.disk和swap.disk还有boot文件夹放到disks下。把boot-grub下的menu.lst复制出来,替换那个错误的menu.lst。


重启,应该OK了。

除了ubuntu所在盘install的文件夹仍旧出错,不过并不影响系统的使用。


我装ubuntu的分区上面root.disk和swap.disk是完好的,而且 menu.lis和上面说正确的代码一样, 那怎么办?
我现在启动时选完ubuntu,之后选完boot from Ubuntu 8.04.2, kernel 2.6.24-24-genereic是下面这种情况:

代码: 全选

booting 'Ubuntu 8.04.2, kernel 2.6.24-24-generic'

Filesystem type is ntfs, partition type 0x7
[Linux-bzImage, setup=0x2a00, size=0x1d3078]
[Linux-initrd @ 0x1f8b1000, 0x73ebbd bytes]

Loading, please wait..
  Check root = bootarg cat /proc/cmdline or missing modules, devices: cat/proc/modules ls /dev ALERT! 
/dev/desk/by-uuid/4EE8E33AE8E31f49 does not exist. Dropping to a shell!

BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu12) Built-in shell (ash)
Enter 'help' for a list of built-in commands.


(initramfs) _
[/color]
回复