
134
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-l file
Consult file for a list of bad blocks, in addition to checking for
others.
-n Ensure that no changes are made to the filesystem. When
queried, answer “no.”
-p “Preen.” Repair all bad blocks noninteractively.
-s Byte-swap the filesystem if necessary to standard (little-
endian) byte-order.
-t Display timing statistics.
-v Verbose.
-y When queried, answer “yes.”
-B size
Expect to find the superblock at size; if it’s not there, exit.
-C filedescriptor
Write completion information to the specified filedescriptor.If
0, print a completion bar.
-D Optimize directories by reindexing, sorting, and compressing
them where possible.
-F Flush buffer caches before checking.
-L file
Consult file for list of bad blocks instead of checking file-
system for them.
-S Byte-swap the filesystem.
e2image
e2image [option] device file
System administration command. Store disaster recovery data for
ext2 filesystem on device to image file file. Weekly filesystem
images can be an important part of a disaster recovery plan.
Option
-r Create a raw image file that can be checked and debugged
using filesystem utilities such as e2fsck or debugfs. Raw
images are created as sparse files. Either compress the image
file before moving it, or use the --sparse=always option when
copying it with cp.
--sparse ...