NAME | SYNOPSIS | DESCRIPTION | EXIT CODE | SEE ALSO | COLOPHON

BTRFSCK(8)                 System Manager's Manual                BTRFSCK(8)

NAME         top

       btrfsck - check and repair of a Btrfs filesystem

SYNOPSIS         top

       btrfsck [options] <device>

DESCRIPTION         top

       btrfsck is used to check and optionally repair of a Btrfs filesystem.
       Now, it can only be run on an unmounted FS. Considering it is not
       well-tested in real-life situations yet. if you have a broken Btrfs
       filesystem, btrfsck may not repair but cause aditional damages.
       <device> is the device file where the filesystem is stored.

       Options

       -s,--super <superblock>
            specify which superblock copy that you want to use.

       --repair
            try to repair the filesystem.

       --init-csum-tree
            create a new CRC tree.

       --init-extent-tree
            create a new extent tree.

EXIT CODE         top

       btrfsck will return 0 exit code if no error happened.  Other exit
       code means some problems happened.

       This is free software: you are free  to  change  and  redistribute
       it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO         top

       mkfs.btrfs(8), btrfs(8)

COLOPHON         top

       This page is part of the btrfs-progs (btrfs filesystem tools)
       project.  Information about the project can be found at 
       ⟨https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories⟩.
       If you have a bug report for this manual page, see 
       ⟨https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#How_do_I_report_bugs_and_issues.3F⟩.
       This page was obtained from the project's upstream Git repository
       (git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git)
       on 2014-07-09.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-to-
       date source for the page, or you have corrections or improvements to
       the information in this COLOPHON (which is not part of the original
       manual page), send a mail to man-pages@man7.org

                                                                  BTRFSCK(8)