1。输入命令,查找root所在分区是多少:
mount |grep "on"
2. 然后用命令fsck修复
fsck-y /dev/sda2(root所在分区)
注:-y 选项指定检测每个文件是自动输入yes
3。fsck修复boot分区
fsck -y/dev/sda1
3。reboot重启ok
fsck.ext4 [-panyrcdfvtDFV] [-b superblock] [-B blocksize]
[-I inode_buffer_blocks] [-P process_inode_size]
[-l|-L bad_blocks_file] [-C fd] [-j external_journal]
[-E extended-options] device
Emergency help:
-p Automatic repair (no questions)
-n Make no changes to the filesystem
-y Assume "yes" to all questions
-c Check for bad blocks and add them to the badblock list
-f Force checking even if filesystem is marked clean
-v Be verbose
-bsuperblock Use alternative superblock
-Bblocksize Force blocksize when looking for superblock
-j external_journal Setlocation of the external journal
-lbad_blocks_file Add tobadblocks list
-Lbad_blocks_file Set badblockslist