This question is an exact duplicate of:
I just installed Kali Linux (on /dev/sda5) in dual boot with Ubuntu (on /dev/sda2). However, now that I have Kali, Ubuntu takes a few minutes to launch, whereas Kali takes a few seconds, and I would like the contrary. How can I do that ?
- Ubuntu took about 20 seconds to launch before I installed the dual boot.
- I have updated Grub on both partitions, so it looks different if I choose to boot with Ubuntu or Kali in the BIOS.
- The step that seems to take the more time (about two thirds of the time) shows :
a start job is running for dev-disk-by\...a-lot-of-characters...\.device
fstab to have the correct UUID for my swap partition only reduced by half the booting time: Ubuntu still takes a good 45 seconds to launch: so my question is not a duplicate of the questions suggested.
Rebuilding my initramfs (
sudo update-initramfs -u) and then updating grub (
sudo update-grub) did the job: now Ubuntu takes only 10 seconds to launch. Thanks everyone!