|author||Xin LI <delphij@FreeBSD.org>||2008-04-10 23:49:23 +0000|
|committer||Xin LI <delphij@FreeBSD.org>||2008-04-10 23:49:23 +0000|
Add a new flag, '-C' which enables a special mode that is intended for
catastrophic recovery. Currently, this mode only validates whether a cylindergroup has good signature data, and prompts the user to decide whether to clear it as a whole. This mode is useful when there is data damage on a disk and you are working on copy of the original disk, as fsck_ffs(8) tends to abnormally exit in such case, as a last resort to recover data from the disk.
Notes: svn path=/head/; revision=178088
Diffstat (limited to 'sbin/fsck_ffs/fsck_ffs.8')
1 files changed, 22 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/fsck_ffs.8 b/sbin/fsck_ffs/fsck_ffs.8
index a64c7ce8b5e7..98c97f327c5f 100644
@@ -29,7 +29,7 @@
.\" @(#)fsck.8 8.4 (Berkeley) 5/9/95
-.Dd April 24, 2001
+.Dd April 10, 2008
.Dt FSCK_FFS 8
@@ -38,7 +38,7 @@
.Nd file system consistency check and interactive repair
-.Op Fl BFpfny
+.Op Fl BCFpfny
.Op Fl b Ar block
.Op Fl c Ar level
.Op Fl m Ar mode
@@ -175,6 +175,26 @@ Use the block specified immediately after the flag as
the super block for the file system.
An alternate super block is usually located at block 32 for UFS1,
and block 160 for UFS2.
+.It Fl C
+in 'catastrophic recovery' mode, which will enable certain aggressive
+operations that can make
+to survive with file systems that has very serious data damage, which
+is an useful last resort when on disk data damage is very serious
+to crash otherwise. Be
+.Em very careful
+using this flag, is dangerous if there are data transmission hazards
+because a false positive cylinder group magic number mismatch could
+.Em irrevertible data loss!
+This option implies the
.It Fl c
Convert the file system to the specified level.
Note that the level of a file system can only be raised.