I killed my encrypted swap partition (for an Encrypted manjaro KDE install) perhaps without following the proper procedure and I get the message "device dev/disk-by-uuid=xxxxxx-xxxxxxx-xxxxxxx-xxxx does not exist" during boot and the boot process waits a very long time before it progresses and the boot finishes.
xxxxxx-xxxxxxx-xxxxxxx-xxxx is the uuid of the deleted swap partition. It is still being searched for by the boot process. Takes a long time before the “failed” message appears .
Google suggests rebuilding the initrd.img to remove the deleted swap partition, how to do this?
I have already removed the deleted uuid from grub and updated grub and have also done mkinitcpio -P several times but the delay and error message at boot time has not gone. (Delay after encrypted root partition is opened using password by grub)
The swap partition is usually defined in /etc/fstab but if your system is a laptop and you have configured hibernation then it is also referenced /etc/default/grub.
If you edit your default grub - the command to rebuild the config is
sudo grub-mkconfig -o /boot/grub/grub.cfg
And as related to encryption - the file /etc/openswap.conf - comes inito play together with mkinitcpio.conf
Hi linux-aarhus, thanks. I edited openswap.conf and commented out the deleted luks swap partition.
It appears that there would be references to this deleted luks swap partition in some kind of overall reference file probably called conf.d maybe.
After commenting out the deleted luks swap partition in openswap.conf I used the command mkinitcpio. -P and rebooted but the boot process is still looking for the deleted luks swap partition and also knows the uuid.
The system is booting but due to the above it spends almost 90 seconds searching or waiting for the deleted luks swap partition.
Also commented out swap partition in openswap.conf.
I used mkinitcpio -P and the grub-mkconfig command you posted. Updated Grub as well after the above edit.
Reference to this deleted luks swap partition must be there in some other config file. For linux mint it is perhaps config.d (I found this in google search).
What else could be referencing to this deleted luks swap partition in manjaro , because the boot process keeps searching for it?
After all these above edits, during boot, first it says ‘a device or cryptodisk not found, press any key to continue’ then it says ‘device not found’ and then later lists out the uuid of the deleted luks swap partition and waits about 90 seconds and fails to mount it (since it does not exist), then boots into my root normally.
did you remove the reference to encrypt, openswap and resume from mkinitcpio.conf?
/etc/fstab
/etc/default/grub
/etc/mkinitcpio.conf
Some files loses relevance when you remove hooks from mkinitcpio.conf
resume hook is connected to /etc/fstab and /etc/default/grub
While
The /etc/crypttab loses relevance when removing encrypt hook
The /etc/openswap.conf loses relevance when removing openswap hook
After some thought - I think your issue is because you have not removed the mentioned hooks from mkinitcpio.conf - the encrypt hook is referencing crypttab which contains a refererence to the removed luks swap partition uuid.
If your system is still encrypted (I had the understanding you had removed encryption) but you have removed encrypted swap - then you need to keep the encrypt hook - only need to remove openswap and resume hook then the reference in /etc/crypttab.
Thanks, linux-aarhus. I removed all the hooks and references you mentioned (except the encrypt hook yes) and then commented out the deleted swap partition in crypttab.
Problem solved. No errors during boot and boot time has reduced by about 90 seconds.