Not booting anymore

On a default Manjaro installation - this is the encrypted swap partition.

Your root partition will be /dev/nvme0n1p2

When you have wiped your configuration for openswap, you will need to reconfigure your system.

As starter you need to boot a live ISO to gain access to the luks container.

After you have opened your root container you will need edit the following files (copy the file with a .bak extension as precaution)

  • <container>/etc/mkinitcpio.conf - remove openswap and resume from the HOOKS
  • <container>/etc/mkinitcpio.conf - remove the reference in FILES to /crypto_keyfile
  • <container>/etc/default/grub - remove reference to resume partiion
  • <container>/etc/fstab - comment the line referencing swap
  • <container>/etc/crypttab - comment the line referencing the crypto_keyfile

Then rebuild init and rebuild grub configuration

swapoff /dev/mapper/luks-the-id-from-etc-fstab
mkinitcpio -P
update-grub

The above will make your system bootable again.

You would want to switch to systemd instead of udev in /etc/mkinitcpio.conf and create a swapfile to accomodate for the now unused swap partition.

The gain is two fold - the swap is inside the luks container and systemd can work with hibernating to a swapfile inside the container.

See dm-crypt/Swap encryption - ArchWiki for more info

1 Like