{
    "mode": "man",
    "parameter": "BTRFS-SELECT-SUPER",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/BTRFS-SELECT-SUPER/8/json",
    "generated": "2026-11-12T04:50:26Z",
    "synopsis": "btrfs-select-super -s number <device>",
    "sections": {
        "NAME": {
            "content": "btrfs-select-super - overwrite primary superblock with a backup copy\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "btrfs-select-super -s number <device>\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Destructively  overwrite  all  copies of the superblock with a specified copy.  This helps in\ncertain cases, for example when write barriers were disabled during a power failure  and  not\nall  superblocks  were  written,  or  if the primary superblock is damaged, e.g. accidentally\noverwritten.\n\nThe filesystem specified by device must not be mounted.\n",
            "subsections": [
                {
                    "name": "NOTE:",
                    "content": "Prior to overwriting the primary superblock, please make sure that the backup  copies  are\nvalid!\n\nTo dump a superblock use the btrfs inspect-internal dump-super command.\n\nThen  run the check (in the non-repair mode) using the command btrfs check -s where -s speci‐\nfies the superblock copy to use.\n\nSuperblock copies exist in the following offsets on the device:\n\n• primary: 64KiB (65536)\n\n• 1st copy: 64MiB (67108864)\n\n• 2nd copy: 256GiB (274877906944)\n\nA superblock size is 4KiB (4096).\n"
                }
            ]
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-s|--super <N>",
                    "content": "use Nth superblock copy, valid values are 0 1 or 2 if the respective superblock offset\nis within the device size\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "btrfs(8)\n\n\n6.6.3                                       Mar 31, 2024                       BTRFS-SELECT-SUPER(8)",
            "subsections": []
        }
    },
    "summary": "btrfs-select-super - overwrite primary superblock with a backup copy",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "use Nth superblock copy, valid values are 0 1 or 2 if the respective superblock offset is within the device size"
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "btrfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/btrfs/8/json"
        }
    ]
}