e2fsck Flashcards
1
Q
e2fsck
A
e2fsck is used to check the ext2/ext3/ext4 family of file systems.
![](https://s3.amazonaws.com/brainscape-prod/system/cm/313/399/105/a_image_thumb.png?1591471843)
2
Q
e2fsck
- p, -a
- b
- B
- c
- C fd
- d
A
- p, -a, Auto repair (preen) the fs.
- b superblock, Use superblock input instead of the normal.
- B blocksize, Set the program to look for the superblock at a particular blocksize.
- c, Causes e2fsck to use the badblocks program to scan a device.
- C fd, Completion information.
- d, Print debugging.
3
Q
e2fsck
- D
- E
- f
- F
- j
- k
A
- D, Optimize directories.
- E extended_options, Set extended options.
- f, Force check.
- F, Flush the filesystems device buffer cache.
- j external-journal, Set the pathname where the external-journal is located.
- k, Combined with -c any existing bad blocks in the bad blocks list will be preserved.
4
Q
e2fsck
- l
- L
- n
- t
- v
- y
- z undo_file
A
- l filename, Add the block numbers from file to list of bad blocks.
- L filename, Set the bad blocks list to be the list of blocks specified by filename.
- n, Open the filesystem read only and assume no to all questions.
- t, Print missing timing statistics.
- v, Verbose
- y, Assume yes to all questions.
- z undo_file, Before overwriting a file system block, write the old contents of the block to an undo file.
5
Q
e2fsck -E [EXTENDED OPTIONS]
journal_ only
fragcheck
discard
nodiscard
no_optimize_extents
optimize_extents
A
inode_count_fullmap
no_inode_count_fullmap
readahead_kb
bmap2extent
fixes_only
unshare_blocks