tl;dr
/etc/fstab
. You need to comment out the lines that mount swap partitions. Ideally you should do this before deleing the swap partition/etc/initramfs-tools/conf.d/resume
(with sudo) and comment out the swap partition/etc/crypttab
if you had an encrypted swap partition/etc/default/grub
if you had hibernation enabled for Ubuntu/etc/fstab
first, comment out the swap entries, and then delete the swap partition.Editing /etc/fstab
afterwards didn’t really fix the slow boot issue for me.
Upon installing a virtualization package with apt
i came across this warning:
1W: initramfs-tools configuration sets RESUME=UUID=2854a8db-6494-41d0-9cff-974714bb0b00
2W: but no matching swap device is available.
The initramfs is an cpio archive. At boot time, the kernel unpacks that archive into ram, mounts and uses it as initial root file system. From there on the mounting of the real root file system occurs in user space.
resume
The resume hook tries to autodetect the resume partition and uses the first swap
partition as valid guess. It is possible to set the RESUME variable in
/etc/initramfs-tools/conf.d/resume. The boot variable noresume overrides it.
I had originally created the Swap partition (a partition and no a swapfile), because a swap partition is required to be able to hibernate an Ubuntu system..
1sudo nano /etc/initramfs-tools/conf.d/resume
#RESUME=UUID=2854a8db-6494-41d0-9cff-974714bb0b00
Additionally, you can also try re-configuring the initramfs-tools
, but i didn’t need to do so.
1sudo dpkg-reconfgure initramfs-tools
You should also check your GRUB file for a resume
entry
1sudo nano /etc/default/grub
You can either updated or remove the UUID
value
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=ad6fb579-9cdb-4b29-8977-f9aa9ee57e6f"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
and then
1sudo update-grub