Swap file resize with LUKS [SOLVED]

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Tupi S30
Level 1
Level 1
Posts: 2
Joined: Fri Jul 30, 2021 1:18 pm

Swap file resize with LUKS [SOLVED]

Post by Tupi S30 »

Dear friends,

For the first time I am using Linux Mint with full disk encryption.

However, after installing the system (20.2), I am not able to resize the swap file.

I can actually perform the resize, but it is undone after the next reboot.

The commands I've always used (to generate a 4gb swap file) are these:

swapoff -a

dd if=/dev/zero of=/swapfile bs=1M count=4096

mkswap /swapfile

swapon /swapfile

I didn't have this problem when I used only the encrypted home folder. So, I ask you guys, how do I make the swap file resize persistent?

Best Regards,

Tupi
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Tupi S30
Level 1
Level 1
Posts: 2
Joined: Fri Jul 30, 2021 1:18 pm

Re: Swap file resize with LUKS

Post by Tupi S30 »

I solved the problem with the swapspace package

Now I have a dynamic swap file 8)
Locked

Return to “Other topics”