Grub/Ubuntu: Couldn't find suitable memory target after kernel upgrade












1














Shortly after the new kernel versions were released for the Spectre and Meltdown issues (perhaps unrelated) I installed the latest kernel update, which at the time was 4.13.0-25.29. As soon as I rebooted I received the Grub error "Couldn't find suitable memory target".



I found that using the previous kernel fixed the problem. So far here is the list of working and broken kernels.



4.13.0-21.24 works

4.13.0-25.29 errors

4.13.0-31.34 errors

4.13.0-32.35 errors



Any ideas of how I can fix this to use the newer kernels without needing to reinstall the OS?



/etc/default/grub:



GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""


/boot/grub/grub.cfg:



# Broken entry (disk UUID has been replaced)
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-[DISK-UUID]' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root [DISK-UUID]
else
search --no-floppy --fs-uuid --set=root [DISK-UUID]
fi
linux /boot/vmlinuz-4.13.0-32-generic.efi.signed root=UUID=[DISK-UUID] ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.13.0-32-generic
}

# Working entry (disk UUID has been replaced)
menuentry 'Ubuntu, with Linux 4.13.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-21-generic-advanced-[DISK-UUID]' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root [DISK-UUID]
else
search --no-floppy --fs-uuid --set=root [DISK-UUID]
fi
echo 'Loading Linux 4.13.0-21-generic ...'
linux /boot/vmlinuz-4.13.0-21-generic.efi.signed root=UUID=[DISK-UUID] ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.13.0-21-generic
}


System Info:




  • Ubuntu 17.10

  • Intel® Core™ i7-5930K CPU @ 3.50GHz × 12

  • GeForce GTX 1080/PCIe/SSE2

  • Gnome 3.26.2

  • OS Type 64-bit

  • Primary Disk m.2 SSD

  • Grub 2.02~beta3-4ubuntu7.1










share|improve this question



























    1














    Shortly after the new kernel versions were released for the Spectre and Meltdown issues (perhaps unrelated) I installed the latest kernel update, which at the time was 4.13.0-25.29. As soon as I rebooted I received the Grub error "Couldn't find suitable memory target".



    I found that using the previous kernel fixed the problem. So far here is the list of working and broken kernels.



    4.13.0-21.24 works

    4.13.0-25.29 errors

    4.13.0-31.34 errors

    4.13.0-32.35 errors



    Any ideas of how I can fix this to use the newer kernels without needing to reinstall the OS?



    /etc/default/grub:



    GRUB_DEFAULT=0
    GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""


    /boot/grub/grub.cfg:



    # Broken entry (disk UUID has been replaced)
    menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-[DISK-UUID]' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root [DISK-UUID]
    else
    search --no-floppy --fs-uuid --set=root [DISK-UUID]
    fi
    linux /boot/vmlinuz-4.13.0-32-generic.efi.signed root=UUID=[DISK-UUID] ro quiet splash $vt_handoff
    initrd /boot/initrd.img-4.13.0-32-generic
    }

    # Working entry (disk UUID has been replaced)
    menuentry 'Ubuntu, with Linux 4.13.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-21-generic-advanced-[DISK-UUID]' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root [DISK-UUID]
    else
    search --no-floppy --fs-uuid --set=root [DISK-UUID]
    fi
    echo 'Loading Linux 4.13.0-21-generic ...'
    linux /boot/vmlinuz-4.13.0-21-generic.efi.signed root=UUID=[DISK-UUID] ro quiet splash $vt_handoff
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-4.13.0-21-generic
    }


    System Info:




    • Ubuntu 17.10

    • Intel® Core™ i7-5930K CPU @ 3.50GHz × 12

    • GeForce GTX 1080/PCIe/SSE2

    • Gnome 3.26.2

    • OS Type 64-bit

    • Primary Disk m.2 SSD

    • Grub 2.02~beta3-4ubuntu7.1










    share|improve this question

























      1












      1








      1







      Shortly after the new kernel versions were released for the Spectre and Meltdown issues (perhaps unrelated) I installed the latest kernel update, which at the time was 4.13.0-25.29. As soon as I rebooted I received the Grub error "Couldn't find suitable memory target".



      I found that using the previous kernel fixed the problem. So far here is the list of working and broken kernels.



      4.13.0-21.24 works

      4.13.0-25.29 errors

      4.13.0-31.34 errors

      4.13.0-32.35 errors



      Any ideas of how I can fix this to use the newer kernels without needing to reinstall the OS?



      /etc/default/grub:



      GRUB_DEFAULT=0
      GRUB_HIDDEN_TIMEOUT=0
      GRUB_HIDDEN_TIMEOUT_QUIET=true
      GRUB_TIMEOUT=10
      GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
      GRUB_CMDLINE_LINUX=""


      /boot/grub/grub.cfg:



      # Broken entry (disk UUID has been replaced)
      menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-[DISK-UUID]' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root [DISK-UUID]
      else
      search --no-floppy --fs-uuid --set=root [DISK-UUID]
      fi
      linux /boot/vmlinuz-4.13.0-32-generic.efi.signed root=UUID=[DISK-UUID] ro quiet splash $vt_handoff
      initrd /boot/initrd.img-4.13.0-32-generic
      }

      # Working entry (disk UUID has been replaced)
      menuentry 'Ubuntu, with Linux 4.13.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-21-generic-advanced-[DISK-UUID]' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root [DISK-UUID]
      else
      search --no-floppy --fs-uuid --set=root [DISK-UUID]
      fi
      echo 'Loading Linux 4.13.0-21-generic ...'
      linux /boot/vmlinuz-4.13.0-21-generic.efi.signed root=UUID=[DISK-UUID] ro quiet splash $vt_handoff
      echo 'Loading initial ramdisk ...'
      initrd /boot/initrd.img-4.13.0-21-generic
      }


      System Info:




      • Ubuntu 17.10

      • Intel® Core™ i7-5930K CPU @ 3.50GHz × 12

      • GeForce GTX 1080/PCIe/SSE2

      • Gnome 3.26.2

      • OS Type 64-bit

      • Primary Disk m.2 SSD

      • Grub 2.02~beta3-4ubuntu7.1










      share|improve this question













      Shortly after the new kernel versions were released for the Spectre and Meltdown issues (perhaps unrelated) I installed the latest kernel update, which at the time was 4.13.0-25.29. As soon as I rebooted I received the Grub error "Couldn't find suitable memory target".



      I found that using the previous kernel fixed the problem. So far here is the list of working and broken kernels.



      4.13.0-21.24 works

      4.13.0-25.29 errors

      4.13.0-31.34 errors

      4.13.0-32.35 errors



      Any ideas of how I can fix this to use the newer kernels without needing to reinstall the OS?



      /etc/default/grub:



      GRUB_DEFAULT=0
      GRUB_HIDDEN_TIMEOUT=0
      GRUB_HIDDEN_TIMEOUT_QUIET=true
      GRUB_TIMEOUT=10
      GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
      GRUB_CMDLINE_LINUX=""


      /boot/grub/grub.cfg:



      # Broken entry (disk UUID has been replaced)
      menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-[DISK-UUID]' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root [DISK-UUID]
      else
      search --no-floppy --fs-uuid --set=root [DISK-UUID]
      fi
      linux /boot/vmlinuz-4.13.0-32-generic.efi.signed root=UUID=[DISK-UUID] ro quiet splash $vt_handoff
      initrd /boot/initrd.img-4.13.0-32-generic
      }

      # Working entry (disk UUID has been replaced)
      menuentry 'Ubuntu, with Linux 4.13.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-21-generic-advanced-[DISK-UUID]' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root [DISK-UUID]
      else
      search --no-floppy --fs-uuid --set=root [DISK-UUID]
      fi
      echo 'Loading Linux 4.13.0-21-generic ...'
      linux /boot/vmlinuz-4.13.0-21-generic.efi.signed root=UUID=[DISK-UUID] ro quiet splash $vt_handoff
      echo 'Loading initial ramdisk ...'
      initrd /boot/initrd.img-4.13.0-21-generic
      }


      System Info:




      • Ubuntu 17.10

      • Intel® Core™ i7-5930K CPU @ 3.50GHz × 12

      • GeForce GTX 1080/PCIe/SSE2

      • Gnome 3.26.2

      • OS Type 64-bit

      • Primary Disk m.2 SSD

      • Grub 2.02~beta3-4ubuntu7.1







      linux ubuntu grub2 linux-kernel






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 11 '18 at 19:53









      Allan Bogh

      1061




      1061






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I just ran into the same issue. It was because my initial ramdisk was too large. I don't know how big is too big, but my new kernel's initrd was about 10 times bigger than the default ones from Ubuntu.



          The solution was to strip the unneeded symbols from the kernel modules. I am not a kernel developer, so symbols in the modules are of no use to me. I found this thread that provided a quick way to strip the symbols: https://unix.stackexchange.com/questions/270390/how-to-reduce-the-size-of-the-initrd-when-compiling-your-kernel



          Once that was done, I rebuilt the initrd and it was close to the same size as the default initrd images. Then I ran update-grub, and then I was able to boot to the new kernel.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1294064%2fgrub-ubuntu-couldnt-find-suitable-memory-target-after-kernel-upgrade%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I just ran into the same issue. It was because my initial ramdisk was too large. I don't know how big is too big, but my new kernel's initrd was about 10 times bigger than the default ones from Ubuntu.



            The solution was to strip the unneeded symbols from the kernel modules. I am not a kernel developer, so symbols in the modules are of no use to me. I found this thread that provided a quick way to strip the symbols: https://unix.stackexchange.com/questions/270390/how-to-reduce-the-size-of-the-initrd-when-compiling-your-kernel



            Once that was done, I rebuilt the initrd and it was close to the same size as the default initrd images. Then I ran update-grub, and then I was able to boot to the new kernel.






            share|improve this answer


























              0














              I just ran into the same issue. It was because my initial ramdisk was too large. I don't know how big is too big, but my new kernel's initrd was about 10 times bigger than the default ones from Ubuntu.



              The solution was to strip the unneeded symbols from the kernel modules. I am not a kernel developer, so symbols in the modules are of no use to me. I found this thread that provided a quick way to strip the symbols: https://unix.stackexchange.com/questions/270390/how-to-reduce-the-size-of-the-initrd-when-compiling-your-kernel



              Once that was done, I rebuilt the initrd and it was close to the same size as the default initrd images. Then I ran update-grub, and then I was able to boot to the new kernel.






              share|improve this answer
























                0












                0








                0






                I just ran into the same issue. It was because my initial ramdisk was too large. I don't know how big is too big, but my new kernel's initrd was about 10 times bigger than the default ones from Ubuntu.



                The solution was to strip the unneeded symbols from the kernel modules. I am not a kernel developer, so symbols in the modules are of no use to me. I found this thread that provided a quick way to strip the symbols: https://unix.stackexchange.com/questions/270390/how-to-reduce-the-size-of-the-initrd-when-compiling-your-kernel



                Once that was done, I rebuilt the initrd and it was close to the same size as the default initrd images. Then I ran update-grub, and then I was able to boot to the new kernel.






                share|improve this answer












                I just ran into the same issue. It was because my initial ramdisk was too large. I don't know how big is too big, but my new kernel's initrd was about 10 times bigger than the default ones from Ubuntu.



                The solution was to strip the unneeded symbols from the kernel modules. I am not a kernel developer, so symbols in the modules are of no use to me. I found this thread that provided a quick way to strip the symbols: https://unix.stackexchange.com/questions/270390/how-to-reduce-the-size-of-the-initrd-when-compiling-your-kernel



                Once that was done, I rebuilt the initrd and it was close to the same size as the default initrd images. Then I ran update-grub, and then I was able to boot to the new kernel.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 18 '18 at 22:07









                Jim Gallagher

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1294064%2fgrub-ubuntu-couldnt-find-suitable-memory-target-after-kernel-upgrade%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕