![]() ![]() The bad block scan will be done using a non-destructive read-write test. If any badīlocks are found, they are added to the bad block inode to prevent them from being allocated to a file or directory. c This option causes e2fsck to use badblocks(8) program to do a read-only scan of the device in order to find any bad blocks. If the superblock is not found,Į2fsck will terminate with a fatal error. This option forces e2fsck to only try locating the superblock at a particular blocksize. B blocksize Normally, e2fsck will search for the superblock at various different block sizes in an attempt to find the appropriate block size. The filesystem is not opened read-only, e2fsck will make sure that the primary superblock is updated appropriately upon completion of the filesystem check. If an alternative superblock is specified and The -b option to mke2fs, which specifiesīlocksize of the filesystem must be specified in order for the superblock locations that are printed out to be accurate. Mke2fs program using the -n option to print out where the superblocks were created. Superblock can be found at block 8193 for filesystems with 2k blocksizes, at block 16384 and for 4k blocksizes, at block 32768.Īdditional backup superblocks can be determined by using the For filesystems with 1k blocksizes, a backup The location of the backup superblock is dependent on the filesystem's blocksize. This option is normally used when the primary b superblock Instead of using the normal superblock, use an alternative superblock specified by superblock. It is provided for backwards compatibility only it is suggested that people use -p option Options -a This option does the same thing as the -p option. Really know what they are doing should consider answering this question in any other way. If e2fsck asks whether or not you should check a filesystem which is mounted, the only correct answer is ''no''. However, even if it is safe to do so, the results printed by e2fsck are not valid if theįilesystem is mounted. The only exception is if the -n option is specified, and -c, Note that in general it is not safe to run e2fsck on mounted filesystems. Unless its superblock indicates that further checking is required.ĭevice is the device file where the filesystem is stored (e.g. Hence, for filesystems that use journalling, e2fsck will normally replay the journal and exit, Journal, the file system should be marked as clean. For ext3 and ext4įilesystems that use a journal, if the system has been shut down uncleanly without any errors, normally, after replaying the committed transactions in the E2fsck is used to check the ext2/ext3/ext4 family of file systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |