开机后,硬件检测完毕,加载系统文件,提示如下错误:
Couldn’t find ext2 superblock, trying magic number in superblock while trying to open /dev/sdi The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt ,and you might try running e2fsck with an alternate superblock: e2fsck –b 8193 <device>
Is a directory while trying to open/ [FAILED]
***An error occurred during the file system check.\
***Dropping you to a shell; the system will reboot
***When you leave the shell
Give root password for maintenance( or type Control-D to continue):
解决步骤:输入root密码登入修复模式
1.登入后执行命令 mke2fs -n /dev/sdi 提示时按y确定 查看分区信息最后一行的数字就是超级快所在,随便用一个
2.然后输入命令 fsck -b 查到的数字 /dev/sdi 修复
返回下面的结果时修复成功
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/sdi was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdi: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdi: 11/26104 files (9.1% non-contiguous), 8966/104388 blocks
3.重新格式化,慎用,如上述操作还是没有返回第二步的执行成功显示,则请输入 mkfs.ext3 /dev/sdi 提示时按y确定,这两条命令执行完后重启服务器
如果mount命令发现有的分区变成了ro
可以试试先umount后再mount
更详细的请参看:http://blog.sina.com.cn/s/blog_709df8c80100ldup.html
转载于:https://blog.51cto.com/sw5720/1612227