Swap Partition not added to Fstab after Manjaro Gnome install

Hi everyone,
I was experiencing extremely frequent irrecoverable system freezes on my freshly installed Manjaro Gnome system. One day I was just checking the details of all my partitions and found that my swap status was “Not Active”. So I checked the fstab file and sure enough, there wasn’t an entry for the swap partition. I added the swap partition to the fstab file and the freezes haven’t occurred since. BTW, my swap partition is on a different disk compared to my other partitions so that might have something to do with this but I can confirm that I correctly chose, labelled and formatted the swap partition during setup.

$ sudo inxi -Fxxxz
System:    Kernel: 5.15.7-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 Console: pty pts/0 wm: gnome-shell DM: GDM 41.0
           Distro: Manjaro Linux base: Arch Linux
Machine:   Type: Convertible System: HP product: HP Pavilion x360 Convertible 14m-dw1xxx v: N/A serial: <filter> Chassis:
           type: 31 serial: <filter>
           Mobo: HP model: 87F4 v: 39.32 serial: <filter> UEFI: AMI v: F.36 date: 08/30/2021
Battery:   ID-1: BAT0 charge: 35.8 Wh (100.0%) condition: 35.8/35.8 Wh (100.0%) volts: 12.8 min: 11.6
           model: Hewlett-Packard Primary type: Li-ion serial: <filter> status: Unknown cycles: 354
           Device-1: hid-0018:04F3:2B55.0002-battery model: ELAN2513:00 04F3:2B55 serial: N/A charge: N/A status: N/A
CPU:       Info: Quad Core model: 11th Gen Intel Core i5-1135G7 bits: 64 type: MT MCP arch: Tiger Lake rev: 1 cache:
           L1: 320 KiB L2: 5 MiB L3: 8 MiB
           flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38720
           Speed: 1070 MHz min/max: 400/4200 MHz volts: 0.7 V ext-clock: 100 MHz Core speeds (MHz): 1: 1170 2: 1070 3: 1167
           4: 1127 5: 1105 6: 1068 7: 1257 8: 1253
Graphics:  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Hewlett-Packard driver: i915 v: kernel
           bus-ID: 0000:00:02.0 chip-ID: 8086:9a49 class-ID: 0300
           Device-2: Chicony HP Wide Vision HD Camera type: USB driver: uvcvideo bus-ID: 3-6:3 chip-ID: 04f2:b6bb
           class-ID: 0e02 serial: <filter>
           Display: server: X.org 1.21.1.1 compositor: gnome-shell driver: loaded: modesetting alternate: fbdev,vesa
           resolution: <missing: xdpyinfo>
           Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:     Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl
           bus-ID: 0000:00:1f.3 chip-ID: 8086:a0c8 class-ID: 0401
           Sound Server-1: ALSA v: k5.15.7-1-MANJARO running: yes
           Sound Server-2: sndio v: N/A running: no
           Sound Server-3: JACK v: 1.9.19 running: no
           Sound Server-4: PulseAudio v: 15.0 running: yes
           Sound Server-5: PipeWire v: 0.3.40 running: yes
Network:   Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel bus-ID: 0000:00:14.3 chip-ID: 8086:a0f0 class-ID: 0280
           IF: wlo1 state: up mac: <filter>
Bluetooth: Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-10:5 chip-ID: 8087:0026 class-ID: e001
           Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
RAID:      Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd v: 0.6 port: N/A bus-ID: 0000:00:0e.0
           chip-ID: 8086:9a0b rev: class-ID: 0104
Drives:    Local Storage: total: 504.19 GiB used: 222.18 GiB (44.1%)
           ID-1: /dev/nvme0n1 vendor: Intel model: HBRPEKNX0202AH size: 476.94 GiB speed: 15.8 Gb/s lanes: 2 type: SSD
           serial: <filter> rev: HPS2 temp: 39.9 C scheme: GPT
           ID-2: /dev/nvme1n1 vendor: Intel model: HBRPEKNX0202AHO size: 27.25 GiB speed: 15.8 Gb/s lanes: 2 type: SSD
           serial: <filter> rev: HPS3 temp: 54.9 C scheme: GPT
Partition: ID-1: / size: 475.93 GiB used: 221.8 GiB (46.6%) fs: btrfs dev: /dev/dm-0
           mapped: luks-b52f8539-8a9e-4a29-b840-4b91bad920c6
           ID-2: /boot/efi size: 1022 MiB used: 712 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p2
           ID-3: /home size: 475.93 GiB used: 221.8 GiB (46.6%) fs: btrfs dev: /dev/dm-0
           mapped: luks-b52f8539-8a9e-4a29-b840-4b91bad920c6
           ID-4: /var/log size: 475.93 GiB used: 221.8 GiB (46.6%) fs: btrfs dev: /dev/dm-0
           mapped: luks-b52f8539-8a9e-4a29-b840-4b91bad920c6
Swap:      ID-1: swap-1 type: partition size: 27.25 GiB used: 384.8 MiB (1.4%) priority: -2 dev: /dev/nvme1n1p1
Sensors:   System Temperatures: cpu: 55.0 C mobo: 0.0 C
           Fan Speeds (RPM): N/A
Info:      Processes: 341 Uptime: 44m wakeups: 2923 Memory: 7.41 GiB used: 3.62 GiB (48.9%) Init: systemd v: 249 Compilers:
           gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1606 Shell: Zsh (sudo) v: 5.8 default: Bash v: 5.1.12
           running-in: gnome-terminal inxi: 3.3.09

Thanks

Looks like it’s being used. What’s the output of:

cat /etc/fstab

You can enable it with Gnome Disk utility

Yes, as I wrote, I did add it to the fstab when I found out. I am not asking for a solution but rather reporting this so the devs can find out why swap was not added to fstab during the install.

I have made a manual partioning and added a “mount point” for the swap partition.
Works as expected.

Was your swap on a different drive?

systemd automagically mounts swap even if not defined on fstab

https://systemd.io/DISCOVERABLE_PARTITIONS/

Is PARTUUID the same as Part Type UUID? If yes, then my swap partition’s PARTUUID doesn’t match the one in the systemd documentation.

No - partition uuid is different from partitiontype uuid

paritition uuid changes on formating or repartitioning - but partitiontype stays the same (that is unless you deliberately change it or filesystem corruption occur) - it can be set or changed by a GPT partition manager - such as cgdisk or parted - only when the device is unmounted.

for the curios

lsblk -o name,uuid,partuuid,parttype,parttypename

I checked and my parttype uuid is correct but for some reason, it was still not being automatically started by systemd.

NAME         UUID                                 PARTUUID                             PARTTYPE                             PARTTYPENAME
nvme1n1p1    edd4adea-3629-422e-8377-af29179218a9 bb6b0fff-72df-b144-995d-88fa51ef5338 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f Linux swap

And just something off-topic, I noticed that the inxi -Fxxxz says my display server is X.org but Gnome settings says wayland.