Hi Everyone,
I've got a Fedora 38 install (upgrade from F37). The install happened
with Anaconda. Anaconda created the compressed memory swap file. I
resized the disk and added a proper swap partition. Now I need to
modify /etc/fstab and disable the compressed memory swap file. In the
screen text below, /dev/nvme0n1p4 is the new partition.
My Google-fu really sucks today. I cannot find a discussion of it.
How do I modify fstab to remove the compressed memory swap file?
Thanks in advance.
---
$ sudo blkid
[sudo] password for jwalton:
/dev/nvme0n1p3: LABEL="fedora_localhost-live"
UUID="c9556f10-0bc7-4018-829f-7a892300b2e0"
UUID_SUB="12db21cb-7e46-4878-a52f-4a8be1e29525" BLOCK_SIZE="4096"
TYPE="btrfs" PARTLABEL="fedora"
PARTUUID="6513b9de-51e5-4714-942f-2d2c315f3a3c"
/dev/nvme0n1p1: UUID="B78D-F611" BLOCK_SIZE="512"
TYPE="vfat"
PARTLABEL="EFI System Partition"
PARTUUID="94c2d79e-02a3-4af8-bb8c-e62a1ebadf47"
/dev/nvme0n1p4: UUID="26b85275-6dc9-4ffa-914c-e992d216a3e6"
TYPE="swap" PARTUUID="5a906783-7377-48b8-ab47-c0f45d861171"
/dev/nvme0n1p2: UUID="27d17ecd-07db-46e6-ace5-6edbfd06724f"
BLOCK_SIZE="4096" TYPE="ext4"
PARTUUID="44d9d521-cf65-414d-ba2b-f69927b5bcab"
/dev/zram0: LABEL="zram0" UUID="823c4078-30b0-489e-8f48-5b818696680d"
TYPE="swap"
$ cat /etc/fstab
# /etc/fstab
# ...
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
UUID=c9556f10-0bc7-4018-829f-7a892300b2e0 /
btrfs subvol=root,compress=zstd:1 0 0
UUID=27d17ecd-07db-46e6-ace5-6edbfd06724f /boot ext4
defaults 1 2
UUID=B78D-F611 /boot/efi vfat
umask=0077,shortname=winnt 0 2
UUID=c9556f10-0bc7-4018-829f-7a892300b2e0 /home
btrfs subvol=home,compress=zstd:1 0 0
$ sudo blkid
[sudo] password for jwalton:
/dev/nvme0n1p3: LABEL="fedora_localhost-live"
UUID="c9556f10-0bc7-4018-829f-7a892300b2e0"
UUID_SUB="12db21cb-7e46-4878-a52f-4a8be1e29525" BLOCK_SIZE="4096"
TYPE="btrfs" PARTLABEL="fedora"
PARTUUID="6513b9de-51e5-4714-942f-2d2c315f3a3c"
/dev/nvme0n1p1: UUID="B78D-F611" BLOCK_SIZE="512"
TYPE="vfat"
PARTLABEL="EFI System Partition"
PARTUUID="94c2d79e-02a3-4af8-bb8c-e62a1ebadf47"
/dev/nvme0n1p4: UUID="26b85275-6dc9-4ffa-914c-e992d216a3e6"
TYPE="swap" PARTUUID="5a906783-7377-48b8-ab47-c0f45d861171"
/dev/nvme0n1p2: UUID="27d17ecd-07db-46e6-ace5-6edbfd06724f"
BLOCK_SIZE="4096" TYPE="ext4"
PARTUUID="44d9d521-cf65-414d-ba2b-f69927b5bcab"
/dev/zram0: LABEL="zram0" UUID="823c4078-30b0-489e-8f48-5b818696680d"
TYPE="swap"