Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   e2fsck    ( 8 )

проверьте файловую систему Linux ext2 / ext3 / ext4 (check a Linux ext2/ext3/ext4 file system)

  Name  |  Synopsis  |    Description    |  Options  |  Exit  |  Signals  |  Reporting bugs  |  Environment  |

Описание (Description)

e2fsck is used to check the ext2/ext3/ext4 family of file
       systems.  For ext3 and ext4 file systems that use a journal, if
       the system has been shut down uncleanly without any errors,
       normally, after replaying the committed transactions  in the
       journal, the file system should be marked as clean.   Hence, for
       file systems that use journaling, e2fsck will normally replay the
       journal and exit, unless its superblock indicates that further
       checking is required.

device is a block device (e.g., /dev/sdc1) or file containing the file system.

Note that in general it is not safe to run e2fsck on mounted file systems. The only exception is if the -n option is specified, and -c, -l, or -L options are not specified. However, even if it is safe to do so, the results printed by e2fsck are not valid if the file system is mounted. If e2fsck asks whether or not you should check a file system which is mounted, the only correct answer is ``no''. Only experts who really know what they are doing should consider answering this question in any other way.

If e2fsck is run in interactive mode (meaning that none of -y, -n, or -p are specified), the program will ask the user to fix each problem found in the file system. A response of 'y' will fix the error; 'n' will leave the error unfixed; and 'a' will fix the problem and all subsequent problems; pressing Enter will proceed with the default response, which is printed before the question mark. Pressing Control-C terminates e2fsck immediately.