Hi,
Thanks ahead - I’m fairly new to manjaro and know just enough to be dangerous.
I decided to reduce my swap to 2Gb. I used KDE partition manager. Now at boot an error message “…systemd[1]: Failed to activate swap…” and in KDE manager I can’t ‘activate swap’ [under Partition].
# /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>
UUID=E399-98E1 /boot/efi vfat umask=0077 0 2
UUID=f0eb473d-09e4-495d-bb0a-f0742f4e9490 / ext4 defaults,noatime 0 1
UUID=4e432a03-e43d-4614-bcd7-cf7663df34fa swap swap defaults,noatime 0 0
Hi everyone - thanks for help. Although it’s not going to well at the moment.
I read both responses and tried the second solution initially [mkswap]. Nothing happened. So I tried Wollie’s idea. Nope. In fact, now when I boot it takes a long time to start up and complains about a time out looking for a dev.
This sucks! But I will persist. My goal is/was to remove the swap space partition[s] to conserve my sdd. I’d also like to rejoin the [former] swap space back into the main partition. But just getting this machine to boot at a decent speed again is priority.
Oh also - I ran a timeshift taking me back about 1 week. No help.
I would post the errors if I knew how.
Thanks!
K
I read both responses and tried the second solution initially [mkswap]. Nothing happened.
This can’t be true.
Either you get “Permission denied” when you try to run it without sudo
or you get the response what has been done, including the UUID
You will get some response - not just nothing.
If you, like you said, ran: mkswap /dev/nvme0n1p3
which apparently is your swap partition,
then the UUID will have changed!
The UUID changes every time you run that command.
When you run it, it tells you the current UUID - similar to this:
Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
no label, UUID=34c6d7b3-744f-4587-a458-5f3ed7b8dc6c
sudo blkid
will tell you the current UUID as well
This UUID must then be updated in /etc/fstab
The line in /etc/fstab should look like @Wollie said: UUID=34c6d7b3-744f-4587-a458-5f3ed7b8dc6c none swap defaults 0 0
not like this: UUID=34c6d7b3-744f-4587-a458-5f3ed7b8dc6c swap swap defaults 0 0
You could just use the device name - not the UUID - like this:
/dev/nvme0n1p3 none swap defaults 0 0
If/dev/nvme0n1p3 is your swap partition
be careful to choose the correct device when creating the swap space!