2014-04-02 08:29:18 +00:00
|
|
|
btrfs-check(8)
|
|
|
|
==============
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2014-12-18 15:04:10 +00:00
|
|
|
btrfs-check - check or repair an unmounted btrfs filesystem
|
2014-04-02 08:29:18 +00:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfs check* [options] <device>
|
2014-04-02 08:29:18 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2014-12-18 15:04:10 +00:00
|
|
|
*btrfs check* is used to check or repair an unmounted btrfs filesystem.
|
2014-04-02 08:29:18 +00:00
|
|
|
|
2014-12-18 15:04:10 +00:00
|
|
|
NOTE: Since btrfs is under development, the *btrfs check* capabilities are
|
|
|
|
continuously enhanced. It's highly recommended to read the following btrfs
|
|
|
|
wiki before executing *btrfs check* with '--repair' option: +
|
2014-04-15 07:04:51 +00:00
|
|
|
https://btrfs.wiki.kernel.org/index.php/Btrfsck
|
|
|
|
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfsck* is an alias of *btrfs check* command and is now deprecated.
|
2014-04-16 16:33:44 +00:00
|
|
|
|
2014-04-02 08:29:18 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
2014-05-19 15:08:56 +00:00
|
|
|
-s|--super <superblock>::
|
2014-12-18 15:04:10 +00:00
|
|
|
use <superblock>th superblock copy, valid values are 0 up to 2 if the
|
|
|
|
respective superblock offset is within the fileystem
|
2014-04-02 08:29:18 +00:00
|
|
|
--repair::
|
2014-12-18 15:04:10 +00:00
|
|
|
try to repair the filesystem
|
2014-04-02 08:29:18 +00:00
|
|
|
--init-csum-tree::
|
2014-12-18 15:04:10 +00:00
|
|
|
create a new CRC tree and recalculate all checksums
|
2014-04-02 08:29:18 +00:00
|
|
|
--init-extent-tree::
|
2014-12-18 15:04:10 +00:00
|
|
|
create a new extent tree
|
2014-05-28 11:22:40 +00:00
|
|
|
--check-data-csum::
|
2014-12-18 15:04:10 +00:00
|
|
|
verify checkums of data blocks
|
|
|
|
--qgroup-report::
|
|
|
|
verify qgroup accounting and compare against filesystem accounting
|
2014-10-30 06:34:06 +00:00
|
|
|
--subvol-extents <subvolid>::
|
2014-12-18 15:04:10 +00:00
|
|
|
show extent state for a subvolume
|
|
|
|
--tree-root <bytenr>::
|
|
|
|
use the given bytenr for the tree root
|
2014-04-02 08:29:18 +00:00
|
|
|
|
|
|
|
EXIT STATUS
|
|
|
|
-----------
|
2014-09-19 01:49:59 +00:00
|
|
|
*btrfs check* returns a zero exit status if it succeeds. Non zero is
|
2014-04-02 08:29:18 +00:00
|
|
|
returned in case of failure.
|
|
|
|
|
|
|
|
AVAILABILITY
|
|
|
|
------------
|
2014-05-19 16:04:26 +00:00
|
|
|
*btrfs* is part of btrfs-progs.
|
2014-04-02 08:29:18 +00:00
|
|
|
Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
|
|
|
|
further details.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
`mkfs.btrfs`(8),
|
|
|
|
`btrfs-scrub`(8),
|
|
|
|
`btrfs-rescue`(8)
|