ubuntu 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引导系统;( 首先用u盘制作一个Ubuntu的live CD(请自行搜索 http://www.linuxidc.com),然后通过u盘启动, 选择try ubuntu, 进入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.出现 Free blocks count wrong for group #3(31232, counted=31224).
Fix?
Y Enter
根据实际情况,可能还需要再执行几次fsck,直到最后提示“clean”为止,表示该文件系统已经完好无损:
6.重启电脑,正常引导系统。

你可能感兴趣的:(电脑故障解决)