1BTRFS-SELECT-SUPER(8) Btrfs Manual BTRFS-SELECT-SUPER(8)
2
3
4
6 btrfs-select-super - overwrite primary superblock with a backup copy
7
9 btrfs-select-super -s number <device>
10
12 Destructively overwrite all copies of the superblock with a specified
13 copy. This helps in certain cases, for example when write barriers were
14 disabled during a power failure and not all superblocks were written,
15 or if the primary superblock is damaged, eg. accidentally overwritten.
16
17 The filesystem specified by device must not be mounted.
18
19 Note
20 Prior to overwriting the primary superblock, please make sure that
21 the backup copies are valid!
22
23 To dump a superblock use the btrfs inspect-internal dump-super command,
24 or the obsolete command btrfs-show-super.
25
26 Then run the check (in the non-repair mode) using the command btrfs
27 check -s where -s specifies the superblock copy to use.
28
29 Superblock copies exist in the following offsets on the device:
30
31 · primary: 64KiB (65536)
32
33 · 1st copy: 64MiB (67108864)
34
35 · 2nd copy: 256GiB (274877906944)
36
37 A superblock size is 4KiB (4096).
38
40 -s|--super <superblock>
41 use 'superblock’th superblock copy, valid values are 0 1 or 2 if
42 the respective superblock offset is within the device size
43
45 btrfs-inspect-internal(8), btrfsck check(8)
46
47
48
49Btrfs v4.9.1 08/06/2017 BTRFS-SELECT-SUPER(8)