Announcement

Collapse
No announcement yet.

Initramfs problem causing slow boot time [SOLVED]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Initramfs problem causing slow boot time [SOLVED]

    So I had 24.04 running like a dream. Then I decided to dual boot with Ubuntu 24.04. I think I made the mistake of allowing Ubuntu to format my swap partition. So I has to edit Kubuntu's fstab file to match the new swap ID. (something I've done numerous times before with new installs). Now Kubuntu takes about 4 times longer to boot, and when I run "sudo update-initramfs -u" I get this error:
    Generating /boot/initrd.img-6.8.0-51-generic
    cryptsetup: ERROR: Couldn't resolve device
    UUID=d809dfe9-628b-44b9-beec-e8536bdaa2ef
    The strange thing is, that UUID doesn't exist on my system. Any ideas?

    #2
    Look in /etc/initramfs-tools/conf.d/ and see if you have a file named resume

    It likely contains: RESUME=UUID=d809dfe9-628b-44b9-beec-e8536bdaa2ef

    Edit it to the new UUID and then run update-initramfs again

    Code:
    sudo update-initramfs -k all -u
    And yes, moving forward, it is best to simply not reformat a SWAP partition or start using SWAP files instead.

    Please Read Me

    Comment


      #3
      Hi. Thanks for your reply. No that file doesn't exist. The only file in conf.d is calamares-safe-initramfs.conf which doesn't look like it contains anything of consequence.

      Comment


        #4
        What about /etc/crypttab? Is the swap defined in there?

        Please Read Me

        Comment


          #5
          Some of this might help:

          https://unix.stackexchange.com/quest...g-in-initramfs

          Please Read Me

          Comment


            #6
            Nothing in /etc/crypttab
            I checked out the link, but nothing on my system is encrypted, so not sure that it applies?

            Comment


              #7
              Originally posted by Rainmaker View Post
              So I had 24.04 running like a dream. Then I decided to dual boot with Ubuntu 24.04. I think I made the mistake of allowing Ubuntu to format my swap partition. So I has to edit Kubuntu's fstab file to match the new swap ID. (something I've done numerous times before with new installs). Now Kubuntu takes about 4 times longer to boot, and when I run "sudo update-initramfs -u" I get this error:

              The strange thing is, that UUID doesn't exist on my system. Any ideas?
              Try to use the following command on terminal:

              sudo blkid

              Maybe it can show something.

              Comment


                #8
                Thanks all for your suggestions so far. So this is where I'm at.
                "sudo blkid" shows no UUID=d809dfe9-628b-44b9-beec-e8536bdaa2ef.
                I've also done a search of the /etc & /boot folders, again, no UUID present in any file with that number.
                So, I've got no idea where initramfs is picking up that UUID from in the 1st place, or how to stop the boot delay.
                Any more suggestions would be welcome.
                ​​

                Comment


                  #9
                  Wow. I've finally managed to solve this:
                  In the /etc/default/grub file, the rogue UUID was showing in the GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" line. I removed the entry to look as it does here. then ran update-grub & update-initramfs -u, rebooted, and the issue has gone.
                  Thank you everyone for your help & input.

                  Comment

                  Working...
                  X