您的位置:首页 > 大数据 > 人工智能

Ubuntu:mount of filesystem failed解决办法

2012-03-11 10:10 295 查看
原文地址:http://blogt.chinaunix.net/space.php?uid=23381466&do=blog&id=2230928

今天一开机,ubantu 就黑屏,显示:

1 mount of filesystem failed

2 a maintenance shell will now be started.

3 Control-D will terminate this shell and re-try

4 root@ubantu:~#

后来查了一下,据说这是 an odd issue that rarely happens,不过解决方法也很简单:

首先列出 linux 的分区:

fdisk -l

我的输出是这样的:

01 Disk /dev/sda: 80.0 GB, 80032038912 bytes

02 255 heads, 63 sectors/track, 9730 cylinders

03 Units = cylinders of 16065 * 512 = 8225280 bytes

04 Disk identifier: 0xcf62cf62

05

06 Device Boot Start End Blocks Id System

07 /dev/sda1 * 1 2805 22531131 7 HPFS/NTFS

08 /dev/sda2 2806 9730 55625062+ f W95 Ext'd (LBA)

09 /dev/sda5 2806 5355 20482843+ 7 HPFS/NTFS

10 /dev/sda6 5356 8160 22531131 7 HPFS/NTFS

11 /dev/sda7 8161 8344 1477948+ 82 Linux swap / Solaris

12 /dev/sda8 8345 9001 5277321 83 Linux

13 /dev/sda9 9002 9730 5855661 83 Linux

可以看到 Linux 分区在 /dev/sda8 和 /dev/sda9 ,然后用下面的命令修复:

1 fsck.ext4 /dev/sda8

2 fsck.ext4 /dev/sda9

注意这是针对 ext4 文件系统的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: