ubuntu 启动出现initramfs错误

转自: http://hi.baidu.com/listentowindy/item/ede08ddf93a4f0d4251f40a0

/错误信息
mount: mounting /dev/disk/by-uuid/***************************** on /root
failed: Invalid argument
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target file system doesn’t have /sbin/init
No init found. Try passing init= bootarg

Busybox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)
Enter ‘help’ for a list of built-in commands
(initramfs) _

解决过程:

1,插入ubuntu CD并选择”体验模式“或者”拯救模式“,由于我进入体验模式后忘记了用户名和密码,只能进入拯救模式了,只有根据提示选择就好。

2,进入模式后,输入:sudo fdisk  -l 

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: **********

Device Boot Start End Blocks Id System
/dev/sda1 * 1 30238 242886703+ 83 Linux
/dev/sda2 30239 30401 1309297+ 5 Extended
/dev/sda5 30239 30401 1309266 82 Linux swap / Solaris

 获取挂载文件分区吧应该是。


3,我这里就是/dev/sda1然后运行 sudo  fsck /dev/sda1

4,重启 ,现在已经可以正常使用ubuntu了

以上步骤在网上找的,我这样做还不行,就执行了mount命令,把我的安装ubuntu的分区挂载,然后再umout。最后,再fsck一下,重启,就可以了。然后,我进入系统,再update grub,并且重新安装它。

你可能感兴趣的:(ubuntu 启动出现initramfs错误)