Edit: including corruption of superblocks

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    1
    ·
    23 days ago

    Corruption should be automatically detected and fixed. The operations will resume on bootup.

    However I wouldn’t push your luck.

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    13
    ·
    23 days ago

    Storage devices can fail at any time for any reason. Always have a backup.

    Fwiw, I think BTRFS is better than ext4 and friends at actually detecting whether a block is corrupted or not.

    • DaPorkchop_@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      22 days ago

      “Better” in the sense that it actually has the ability to check for corruption at all, as all metadata and data are checksummed.

  • Atemu@lemmy.ml
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    23 days ago

    As long as the hardware functions as it should (e.g. respects barriers) and there is no software bug in the stack, no.

    That’s a highly unlikely scenario though. Make backups.

    • ReakDuck@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      23 days ago

      I had some kernel panics here and there… but the last one panic was fatal. Suddenly a lot of /usr/lib/lib<name>.so files were empty and also X11 stopped working…

      • Atemu@lemmy.ml
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        19 days ago

        And also in any other filesystem’s code or the block layers below the filesystem. As I said, unlikely scenario.

  • teawrecks@sopuli.xyz
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    22 days ago

    Since btrfs uses Copy on Write, as long as the data makes it onto disk in tact, any further btrfs operations on the data will be safe against sudden power loss. It might need the opportunity to repair some stuff once power is restored (scrub), but the data (and metadata) should still be there and recoverable, not left in some partial state that can’t be resolved.

  • blackstrat@lemmy.fwgx.uk
    link
    fedilink
    arrow-up
    5
    ·
    22 days ago

    Everyone saying it’ll be fine is speaking theoretically. Practically I can attest to full and total file system corruption under this scenario.

  • GustavoM@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    23 days ago

    As a proud Orange pi zero 3 owner (which I’m using it as a “lab rat” by testing several things, including shutting it down like its a router)…? Nah.