Skip to main content
Topic: Swap shows 0 Kb. But created 9 GB partition as swap durin Artix runit install (Read 719 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Swap shows 0 Kb. But created 9 GB partition as swap durin Artix runit install

Code: [Select]
sudo fdisk -l
gives below output
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WD PC SN740 SDDQMQD-512G-1201          
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A6166BDD-953B-482F-95EC-991AABD87B18

Device            Start        End   Sectors   Size Type
/dev/nvme0n1p1     2048    1050623   1048576   512M EFI System
/dev/nvme0n1p2  1050624   19924991  18874368     9G Linux swap
/dev/nvme0n1p3 19924992 1000206866 980281875 467.4G Linux filesystem

but htop shows no swap 0K/0K

Please help to resolve ? This is first time fresh installation, I have setup many useful application and then noticed there is no swap.

Note: This is on Artix with runit on KDE plasma

Re: Swap shows 0 Kb. But created 9 GB partition as swap durin Artix runit install

Reply #1
Please post
/etc/fstab

 

Re: Swap shows 0 Kb. But created 9 GB partition as swap durin Artix runit install

Reply #2
Sir, I solved it by reinstalling Artix and carefully creating manual partitions with all the flags set.

But I looked at /etc/fstab before reinstall and it had 3 lines. One for swap with entry, something like tmpfs for swap and 0 0 at the end of line.