• Ooops@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      16 hours ago

      It’s doable with a swap file instead. But some filesystems are more supportive than others.

      For example BTRFS doesn’t support swapfiles over multiple devices (so my raid1c3 spanning 3 differently sized disks for example) and also swapfiles must be completely pre-allocated. (On the plus side BTRFS automatically blocks any accidently attempt to backup a subvolume containing a swap file.)

      And no matter the filesystem you need to manually tell the kernel device and physical offset for the file via kernel parameters. Which can again be easier on some than on others (also causing the no-multiple-device filesystem problem mentioned above.

      • redjard@reddthat.com
        link
        fedilink
        arrow-up
        0
        ·
        10 hours ago

        So you shut your pc down like a caveman when you do hardware upgrades or repairs or move apartments?

        • dan@upvote.au
          link
          fedilink
          arrow-up
          0
          ·
          8 hours ago

          Yeah I shut down every day. It boots up fast enough that it’s really not an issue.

    • PervServer@fedinsfw.app
      link
      fedilink
      English
      arrow-up
      0
      ·
      18 hours ago

      Nope, I hibernate with a swap file and it’s in a LUKS partition. Although IIRC that whole setup requires me to use systemd boot.