btrfs-progs: docs: mkfs, implications of DUP on devices
[platform/upstream/btrfs-progs.git] / Documentation / btrfs-select-super.asciidoc
1 btrfs-select-super(8)
2 =====================
3
4 NAME
5 ----
6 btrfs-select-super - overwrite superblock with a backup
7
8 SYNOPSIS
9 --------
10 *btrfs-select-super* -s number dev
11
12 DESCRIPTION
13 -----------
14 *btrfs-select-super* destructively overwrites all copies of the superblock
15 with a specified copy.  This helps with certain cases of damage, especially
16 when barriers were disabled during a power failure.  You can find a valid
17 copy of the superblock with *btrfs check -s*.
18
19 The filesystem specified by `dev` must not be mounted.
20
21 OPTIONS
22 -------
23 -s|--super <superblock>::
24 use <superblock>th superblock copy, valid values are 0 up to 2 if the
25 respective superblock offset is within the filesystem
26
27 SEE ALSO
28 --------
29 `btrfsck check`(8)