{"id":3357,"date":"2022-12-20T17:02:26","date_gmt":"2022-12-20T20:02:26","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/btrfsselectsuper-man8\/"},"modified":"2022-12-20T17:02:26","modified_gmt":"2022-12-20T20:02:26","slug":"btrfsselectsuper-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/btrfsselectsuper-man8\/","title":{"rendered":"BTRFS&minus;SELECT&minus;SUPER (man8)"},"content":{"rendered":"<h1 align=\"center\">BTRFS\u2212SELECT\u2212SUPER<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">btrfs-select-super \u2212 overwrite primary superblock with a backup copy<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>btrfs\u2212select\u2212super<\/b> \u2212s number <i><device><\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Destructively overwrite all copies of the superblock with a specified copy. This helps in certain cases, for example when write barriers were disabled during a power failure and not all superblocks were written, or if the primary superblock is damaged, eg. accidentally overwritten.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The filesystem specified by <i>device<\/i> must not be mounted.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b><big>Note<\/big> <br \/> Prior to overwriting the primary superblock, please make sure that the backup copies are valid!<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To dump a superblock use the <b>btrfs inspect\u2212internal dump\u2212super<\/b> command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Then run the check (in the non\u2212repair mode) using the command <b>btrfs check \u2212s<\/b> where <i>\u2212s<\/i> specifies the superblock copy to use.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Superblock copies exist in the following offsets on the device:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 primary: <i>64KiB<\/i> (65536)<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 1st copy: <i>64MiB<\/i> (67108864)<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 2nd copy: <i>256GiB<\/i> (274877906944)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A superblock size is <i>4KiB<\/i> (4096).<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big>\u2212s|\u2212\u2212super <i><superblock><\/i><\/big><\/p>\n<p style=\"margin-left:17%;\"><big>use &#8216;superblock\u2019th superblock copy, valid values are 0 1 or 2 if the respective superblock offset is within the device size<\/big><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><big><b>btrfs\u2212inspect\u2212internal<\/b>(8), <b>btrfsck check<\/b>(8)<\/big><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  btrfs-select-super \u2212 overwrite primary superblock with a backup copy <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,485,4],"class_list":["post-3357","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-btrfs-select-super","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3357"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3357\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}