path: root/Documentation/btrfs-select-super.asciidoc
diff options
authorAdam Borowski <>2015-09-02 05:00:46 +0200
committerDavid Sterba <>2015-09-02 18:56:54 +0200
commit13be89d82ee9a233a30e7ed1ef09dff242dfcaa6 (patch)
treed133189f5394ceceaf9631e7052c43e46a80b776 /Documentation/btrfs-select-super.asciidoc
parent11b81f475f2c5fa0368ea1297daed1537e4f9816 (diff)
btrfs-progs: doc: document btrfs-select-super(8)
Signed-off-by: Adam Borowski <> Signed-off-by: David Sterba <>
Diffstat (limited to 'Documentation/btrfs-select-super.asciidoc')
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/btrfs-select-super.asciidoc b/Documentation/btrfs-select-super.asciidoc
new file mode 100644
index 00000000..a8d7ef00
--- /dev/null
+++ b/Documentation/btrfs-select-super.asciidoc
@@ -0,0 +1,29 @@
+btrfs-select-super - overwrite superblock with a backup
+*btrfs-select-super* -s number dev
+*btrfs-select-super* destructively overwrites all copies of the superblock
+with a specified copy. This helps with certain cases of damage, especially
+when barriers were disabled during a power failure. You can find a valid
+copy of the superblock with *btrfs check -s*.
+The filesystem specified by `dev` must not be mounted.
+-s|--super <superblock>::
+use <superblock>th superblock copy, valid values are 0 up to 2 if the
+respective superblock offset is within the filesystem
+`btrfsck check`(8)