'\" t .\" Title: btrfs-check .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 11/22/2014 .\" Manual: Btrfs Manual .\" Source: Btrfs v3.17 .\" Language: English .\" .TH "BTRFS\-CHECK" "8" "11/22/2014" "Btrfs v3\&.17" "Btrfs Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" btrfs-check \- check or repair a btrfs filesystem offline .SH "SYNOPSIS" .sp \fBbtrfs check\fR [options] \fI\fR .SH "DESCRIPTION" .sp \fBbtrfs check\fR is used to check or repair a btrfs filesystem offline\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .sp Since btrfs is under heavy development especially the \fBbtrfs check\fR command, it is \fBhighly\fR recommended to read the following btrfs wiki before executing \fBbtrfs check\fR with \fI\-\-repair\fR option: \m[blue]\fBhttps://btrfs\&.wiki\&.kernel\&.org/index\&.php/Btrfsck\fR\m[] .sp .5v .RE .sp \fBbtrfsck\fR is an alias of \fBbtrfs check\fR command and is now deprecated\&. .SH "OPTIONS" .PP \-s|\-\-super \fI\fR .RS 4 use \*(Aq\*(Aqth superblock copy\&. .RE .PP \-\-repair .RS 4 try to repair the filesystem\&. .RE .PP \-\-init\-csum\-tree .RS 4 create a new CRC tree\&. .RE .PP \-\-init\-extent\-tree .RS 4 create a new extent tree\&. .RE .PP \-\-check\-data\-csum .RS 4 verify checkums of data blocks\&. .RE .SH "EXIT STATUS" .sp \fBbtrfs check\fR returns a zero exit status if it succeeds\&. Non zero is returned in case of failure\&. .SH "AVAILABILITY" .sp \fBbtrfs\fR is part of btrfs\-progs\&. Please refer to the btrfs wiki \m[blue]\fBhttp://btrfs\&.wiki\&.kernel\&.org\fR\m[] for further details\&. .SH "SEE ALSO" .sp \fBmkfs\&.btrfs\fR(8), \fBbtrfs\-scrub\fR(8), \fBbtrfs\-rescue\fR(8)