6 btrfs-select-super - overwrite primary superblock with a backup copy
10 *btrfs-select-super* -s number <device>
14 Destructively overwrite all copies of the superblock
15 with a specified copy. This helps in certain cases, for example when write
16 barriers were disabled during a power failure and not all superblocks were
17 written, or if the primary superblock is damaged, eg. accidentally overwritten.
19 The filesystem specified by 'device' must not be mounted.
21 NOTE: *Prior to overwriting the primary superblock, please make sure that the backup
24 To dump a superblock use the *btrfs inspect-internal
25 dump-super* command, or the obsolete command *btrfs-show-super*.
27 Then run the check (in the non-repair mode) using the command *btrfs check -s*
28 where '-s' specifies the superblock copy to use.
30 Superblock copies exist in the following offsets on the device:
32 - primary: '64KiB' (65536)
33 - 1st copy: '64MiB' (67108864)
34 - 2nd copy: '256GiB' (274877906944)
36 A superblock size is '4KiB' (4096).
40 -s|--super <superblock>::
41 use 'superblock'th superblock copy, valid values are 0 1 or 2 if the
42 respective superblock offset is within the device size
46 `btrfs-inspect-internal`(8),