Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Software] More SWAP on LUKS? How?

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
debianforumuser
Posts: 3
Joined: 2024-04-15 21:51

[Software] More SWAP on LUKS? How?

#1 Post by debianforumuser »

how to make swap bigger on luks?
I want 16GB swap

Code: Select all

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 373.8M 1 loop /snap/anbox/186
loop2 7:2 0 105.4M 1 loop /snap/core/16574
loop3 7:3 0 104M 1 loop /snap/core/16928
loop4 7:4 0 63.9M 1 loop /snap/core20/2182
loop5 7:5 0 63.9M 1 loop /snap/core20/2264
loop6 7:6 0 74.1M 1 loop /snap/core22/1033
loop7 7:7 0 74.2M 1 loop /snap/core22/1122
loop8 7:8 0 267.5M 1 loop /snap/firefox/3941
loop9 7:9 0 268.3M 1 loop /snap/firefox/4090
loop10 7:10 0 349.7M 1 loop /snap/gnome-3-38-2004/140
loop11 7:11 0 349.7M 1 loop /snap/gnome-3-38-2004/143
loop12 7:12 0 497M 1 loop /snap/gnome-42-2204/141
loop13 7:13 0 504.2M 1 loop /snap/gnome-42-2204/172
loop14 7:14 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop15 7:15 0 103.2M 1 loop /snap/pac-vs/1
loop16 7:16 0 147M 1 loop /snap/shotcut/1389
loop17 7:17 0 40.4M 1 loop /snap/snapd/20671
loop18 7:18 0 39.1M 1 loop /snap/snapd/21184
loop19 7:19 0 417.9M 1 loop /snap/telegram-desktop/5783
loop20 7:20 0 417.9M 1 loop /snap/telegram-desktop/5791
loop21 7:21 0 310.8M 1 loop
nvme0n1 259:0 0 953.9G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1.7G 0 part /boot
└─nvme0n1p3 259:3 0 951.7G 0 part
└─nvme0n1p3_crypt 252:0 0 951.7G 0 crypt
├─vgkubuntu-root 252:1 0 929.4G 0 lvm /var/snap/firefox/common/host-hunspell
│ /
└─vgkubuntu-swap_1 252:2 0 1.9G 0 lvm [SWAP]

Code: Select all

Filesystem Size Used Avail Use% Mounted on
tmpfs 1.6G 2.6M 1.6G 1% /run
/dev/mapper/vgkubuntu-root 914G 325G 543G 38% /
tmpfs 7.7G 298M 7.4G 4% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
efivarfs 246K 108K 134K 45% /sys/firmware/efi/efivars
/dev/nvme0n1p2 1.7G 301M 1.3G 20% /boot
/dev/nvme0n1p1 511M 6.1M 505M 2% /boot/efi
tmpfs 1.6G 108K 1.6G 1% /run/user/1000

Code: Select all

cat  /etc/crypttab
nvme0n1p3_crypt UUID=5453a2d7-a805-4c46-8830-1b40b4e0820b none luks,discard

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vgkubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p2 during installation
UUID=6e64ffd7-9479-49aa-924e-189f61ea1158 /boot           ext4    defaults        0       2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=E1D2-69BA  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/vgkubuntu-swap_1 none            swap    sw              0       0

User avatar
sunrat
Administrator
Administrator
Posts: 6593
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 502 times

Re: [Software] More SWAP on LUKS? How?

#2 Post by sunrat »

Please use code tags for terminal text.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

dlu2021
Posts: 213
Joined: 2021-08-13 19:55
Location: Minnesota
Has thanked: 7 times
Been thanked: 42 times

Re: [Software] More SWAP on LUKS? How?

#3 Post by dlu2021 »

Is this a Debian install or Kubuntu?

User avatar
pbear
Posts: 384
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 2 times
Been thanked: 63 times

Re: [Software] More SWAP on LUKS? How?

#4 Post by pbear »

Ahem, if you don't know how to research a question like this, you probably shouldn't be using system encryption

Anyhoo, LVM extend swap turns up a bunch of hits. Or you could use a swap file, linux create swap file.

debianforumuser
Posts: 3
Joined: 2024-04-15 21:51

Re: [Software] More SWAP on LUKS? How?

#5 Post by debianforumuser »

this is a kubuntu

Aki
Global Moderator
Global Moderator
Posts: 3080
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 417 times

Re: [Software] More SWAP on LUKS? How?

#6 Post by Aki »

@debianforumuser: Please, use code tags to include commands and/or their logs in the body of a message. I did it for you in the first post.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 666
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 88 times
Been thanked: 110 times

Re: [Software] More SWAP on LUKS? How?

#7 Post by wizard10000 »

Moved to Off-Topic since this isn't a Debian issue.
we see things not as they are, but as we are.
-- anais nin

debianforumuser
Posts: 3
Joined: 2024-04-15 21:51

Re: [Software] More SWAP on LUKS? How?

#8 Post by debianforumuser »

sudo swapon -s
sudo swapoff /dev/dm-2
sudo fallocate -l 16g /swapfile
chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

nano /etc/fstab
/swapfile none swap sw 0 0

*solved*

Post Reply