You are not logged in.

#1 2022-07-27 15:25:21

pololo
Member
Registered: 2021-09-25
Posts: 3

Setting up hibernation on an encrypted btrfs system

Hello, I have some questions about hibernation in an encrypted system that uses btrfs where a swap file is stored.

  1. Is there a difference in performance when using systemd-based initramfs with its hooks instead of common (busybox)? I found some information about the differences between them in this topic

  2. I did everything as in this official guide, I mean, I added the resume hook in my initramfs image and all that, but I get a floating number for resume_offset. Is it ok?

    The result of the script

    sudo ./btrfs_map_physical /swap/swapfile
    FILE OFFSET     FILE SIZE       EXTENT OFFSET   EXTENT TYPE     LOGICAL SIZE    LOGICAL OFFSET  PHYSICAL SIZE   DEVID   PHYSICAL OFFSET
    0               134217728       0               regular         134217728       1104150528      134217728       1       2186280960

    The values that I got (2,186,280,960 / 134,217,728 = 16.2890625)

    resume=2186280960
    resume_offset=16.2890625

    Or should I just use 16?

Last edited by pololo (2022-07-27 18:14:31)

Offline

Board footer

Powered by FluxBB