在正常状态下误敲 fsck 命令后,果断悲剧。
屏幕错误提示
错误显示类似于:
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.从Ubuntu10.04 live CD引导系统;
2.打开命令行;
3.运行"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
选择Linux所在分区: /dev/sda1。如果/boot单独分区了则选择/boot所在分区。(我个人认为)
4.运行"sudo fsck /dev/sda1"回车;
5.重启电脑,正常引导系统。
虚拟机不知道怎么进 live CD,最后只能重装,以上方法供物理机出现该问题的朋友参考。