电源故障后无法启动Ubuntu

我的笔记本电脑中的电池已经脱落,当我重新打开笔记本电脑并尝试启动ubuntu时,我遇到了这样的问题:

mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have /sbin/init. No init found. Try passing init=bootarg. BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs) 

在其他论坛中读到可能的修复方法是从实时USB启动Slax OS,以及从终端运行:

 e2fsck -y -f -v /dev/sda1 

大约3个半小时后,该过程完成,所以我重新启动了我的笔记本电脑并尝试再次启动Ubuntu。

我现在面对的是一个略有不同的信息:

 mounting proc on /root/proc failed 

我重新启动了笔记本电脑并从grub菜单中选择了Recovery Mode。 启动到恢复最终失败,并显示以下消息:

 mounting proc on /root/proc failed friendly-recovery pre-start process (186) terminated with status 127 friendly-recovery post-start process (187) terminated with status 127. 

我现在不知道如何继续。 如果这有所不同,我可以通过Slax查看内部硬盘的内容。 我有点像linux-noob所以要温柔!

谢谢

更新:从grub控制台及其输出运行的命令列表

 command: ls output: (hd0) (hd0,msdos2) (hd0,msdos1) command: ls (hd0) output: Device hd0: no known filesystem detected - Total size 1953525168 sectors command: ls (hd0,1) output: Partition hd0,1: Filesystem type ext* - Partition start at 2048 - Total size 1920980992 sectors ( I have a feeling that this is the Ubuntu partition) command: ls (hd0,2) output: Partition hd0,2: no known filesystem detected - Partition start at 1920983040 - Total size 32540672 sectors command: ls (hd0,3) output: error: no such partition 

问题是grub已经忘记了Ubuntu的安装位置。

出现grub时,按c进入grub控制台。 首先确定安装了哪个分区操作系统。您可以通过检查输出来确定它。

步骤1

 ls (hdX,Y) //x is the drive number, and y the partition 

适当地改变x(a,b,c ……等)和y(0,1,2..etc。)的值。 例如(hda,0),(hda,1),直到你没有得到根分区。

一旦你得到正确的x和y,输入这个

第2步

 grub:>> set prefix=(hdX,Y)/boot/grub grub:>> set root=(hdX,Y) grub:>> set grub:>> ls /boot grub:>> insmod /boot/grub/linux.mod grub:>> linux /vmlinuz root=/dev/sdXY ro // x could be a or b or c, and ya number in my case was sda5 grub:>> initrd /initrd.img grub:>> boot 

现在你登录你的ubuntu会话。 输入后

步骤:3

 sudo update-grub 

并重新启动。