cross-posted from: https://programming.dev/post/9319044

Hey,

I am planning to implement authenticated boot inspired from Pid Eins’ blog. I’ll be using pam mount for /home/user. I need to check integrity of all partitions.

I have been using luks+ext4 till now. I am hesistant hesitant to switch to zfs/btrfs, afraid I might fuck up. A while back I accidently purged ‘/’ trying out timeshift which was my fault.

Should I use zfs/btrfs for /home/user? As for root, I’m considering luks+(zfs/btrfs) to be restorable to blank state.

  • BCsven
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    9 months ago

    There is btrfs-check --repair to fix corruption

      • BCsven
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        9 months ago

        That is a caveat with OS disk tools. Even partition resizing gives this warning, as does Windows checkdisk…something about unnessary disk checks ahould be avoided as they can create issues where none might have existed, so only run when you suspect a problem.

        But as lemann pointed out in this thread btrfs scrub is less risky