Installing GRUB to Moved OS on New SSD & EFI Errors?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I'm trying to migrate to a new SSD that I installed in the second laptop drive bay.



I've followed the typical tutorial (How to move Ubuntu to an SSD) and boot-repair can't see grub under the advanced options. When I attempted to boot using F9 and selected "Ubuntu", I got the GRUB minimal option screen.



I've copied my filesystem over using cp. Since I'm using btrfs, this means that /dev/sdc (The SSD) currently has @ and @home on it.



Quick snapshot of lsblk:



kubuntu@kubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.7G 1 loop /rofs
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 512M 0 part
├─sda2 8:2 0 931G 0 part
└─sda3 8:3 0 2M 0 part
sdb 8:16 0 22.4G 0 disk
└─sdb1 8:17 0 3.8G 0 part
sdc 8:32 0 465.8G 0 disk /mnt
sde 8:64 1 14.9G 0 disk /cdrom
├─sde1 8:65 1 1.8G 0 part
└─sde2 8:66 1 2.3M 0 part
sdf 8:80 1 7.5G 0 disk
└─sdf1 8:81 1 7.5G 0 part
sr0 11:0 1 1024M 0 rom


/dev/sda1 contains my EFI partition on my old mechanical HDD.



I'm currently on the Kubuntu live USB and am trying to get grub to install on the moved filesystem. It is complaining about the EFI though.



Here's what I've tried so far to install grub (As boot-repair doesn't seem to work):



kubuntu@kubuntu:~$ sudo mount /dev/sdc /mnt
kubuntu@kubuntu:~$ sudo mount /dev/sda1 /mnt/@/boot/efi/
kubuntu@kubuntu:~$ grub-install --boot-directory=/mnt/@/boot --bootloader-id=Kubuntu --target=x86_64-efi --efi-directory=/mnt/@/boot/efi
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.


How should I proceed?



EDIT 0:
I performed sudo apt-get install --reinstall grub-efi and installed the packages: grub-efi-amd64 grub-efi-amd64-bin. This led to a different outcome on grub:



kubuntu@kubuntu:/mnt$ sudo grub-install --boot-directory=/mnt/@/boot --bootloader-id=Kubuntu  --target=x86_64-efi --efi-directory=/mnt/@/boot/efi
Installing for x86_64-efi platform.
Installation finished. No error reported.


Not sure if it'll boot. I guess I'll check back.










share|improve this question































    0















    I'm trying to migrate to a new SSD that I installed in the second laptop drive bay.



    I've followed the typical tutorial (How to move Ubuntu to an SSD) and boot-repair can't see grub under the advanced options. When I attempted to boot using F9 and selected "Ubuntu", I got the GRUB minimal option screen.



    I've copied my filesystem over using cp. Since I'm using btrfs, this means that /dev/sdc (The SSD) currently has @ and @home on it.



    Quick snapshot of lsblk:



    kubuntu@kubuntu:~$ lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    loop0 7:0 0 1.7G 1 loop /rofs
    sda 8:0 0 931.5G 0 disk
    ├─sda1 8:1 0 512M 0 part
    ├─sda2 8:2 0 931G 0 part
    └─sda3 8:3 0 2M 0 part
    sdb 8:16 0 22.4G 0 disk
    └─sdb1 8:17 0 3.8G 0 part
    sdc 8:32 0 465.8G 0 disk /mnt
    sde 8:64 1 14.9G 0 disk /cdrom
    ├─sde1 8:65 1 1.8G 0 part
    └─sde2 8:66 1 2.3M 0 part
    sdf 8:80 1 7.5G 0 disk
    └─sdf1 8:81 1 7.5G 0 part
    sr0 11:0 1 1024M 0 rom


    /dev/sda1 contains my EFI partition on my old mechanical HDD.



    I'm currently on the Kubuntu live USB and am trying to get grub to install on the moved filesystem. It is complaining about the EFI though.



    Here's what I've tried so far to install grub (As boot-repair doesn't seem to work):



    kubuntu@kubuntu:~$ sudo mount /dev/sdc /mnt
    kubuntu@kubuntu:~$ sudo mount /dev/sda1 /mnt/@/boot/efi/
    kubuntu@kubuntu:~$ grub-install --boot-directory=/mnt/@/boot --bootloader-id=Kubuntu --target=x86_64-efi --efi-directory=/mnt/@/boot/efi
    grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.


    How should I proceed?



    EDIT 0:
    I performed sudo apt-get install --reinstall grub-efi and installed the packages: grub-efi-amd64 grub-efi-amd64-bin. This led to a different outcome on grub:



    kubuntu@kubuntu:/mnt$ sudo grub-install --boot-directory=/mnt/@/boot --bootloader-id=Kubuntu  --target=x86_64-efi --efi-directory=/mnt/@/boot/efi
    Installing for x86_64-efi platform.
    Installation finished. No error reported.


    Not sure if it'll boot. I guess I'll check back.










    share|improve this question



























      0












      0








      0








      I'm trying to migrate to a new SSD that I installed in the second laptop drive bay.



      I've followed the typical tutorial (How to move Ubuntu to an SSD) and boot-repair can't see grub under the advanced options. When I attempted to boot using F9 and selected "Ubuntu", I got the GRUB minimal option screen.



      I've copied my filesystem over using cp. Since I'm using btrfs, this means that /dev/sdc (The SSD) currently has @ and @home on it.



      Quick snapshot of lsblk:



      kubuntu@kubuntu:~$ lsblk
      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      loop0 7:0 0 1.7G 1 loop /rofs
      sda 8:0 0 931.5G 0 disk
      ├─sda1 8:1 0 512M 0 part
      ├─sda2 8:2 0 931G 0 part
      └─sda3 8:3 0 2M 0 part
      sdb 8:16 0 22.4G 0 disk
      └─sdb1 8:17 0 3.8G 0 part
      sdc 8:32 0 465.8G 0 disk /mnt
      sde 8:64 1 14.9G 0 disk /cdrom
      ├─sde1 8:65 1 1.8G 0 part
      └─sde2 8:66 1 2.3M 0 part
      sdf 8:80 1 7.5G 0 disk
      └─sdf1 8:81 1 7.5G 0 part
      sr0 11:0 1 1024M 0 rom


      /dev/sda1 contains my EFI partition on my old mechanical HDD.



      I'm currently on the Kubuntu live USB and am trying to get grub to install on the moved filesystem. It is complaining about the EFI though.



      Here's what I've tried so far to install grub (As boot-repair doesn't seem to work):



      kubuntu@kubuntu:~$ sudo mount /dev/sdc /mnt
      kubuntu@kubuntu:~$ sudo mount /dev/sda1 /mnt/@/boot/efi/
      kubuntu@kubuntu:~$ grub-install --boot-directory=/mnt/@/boot --bootloader-id=Kubuntu --target=x86_64-efi --efi-directory=/mnt/@/boot/efi
      grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.


      How should I proceed?



      EDIT 0:
      I performed sudo apt-get install --reinstall grub-efi and installed the packages: grub-efi-amd64 grub-efi-amd64-bin. This led to a different outcome on grub:



      kubuntu@kubuntu:/mnt$ sudo grub-install --boot-directory=/mnt/@/boot --bootloader-id=Kubuntu  --target=x86_64-efi --efi-directory=/mnt/@/boot/efi
      Installing for x86_64-efi platform.
      Installation finished. No error reported.


      Not sure if it'll boot. I guess I'll check back.










      share|improve this question
















      I'm trying to migrate to a new SSD that I installed in the second laptop drive bay.



      I've followed the typical tutorial (How to move Ubuntu to an SSD) and boot-repair can't see grub under the advanced options. When I attempted to boot using F9 and selected "Ubuntu", I got the GRUB minimal option screen.



      I've copied my filesystem over using cp. Since I'm using btrfs, this means that /dev/sdc (The SSD) currently has @ and @home on it.



      Quick snapshot of lsblk:



      kubuntu@kubuntu:~$ lsblk
      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      loop0 7:0 0 1.7G 1 loop /rofs
      sda 8:0 0 931.5G 0 disk
      ├─sda1 8:1 0 512M 0 part
      ├─sda2 8:2 0 931G 0 part
      └─sda3 8:3 0 2M 0 part
      sdb 8:16 0 22.4G 0 disk
      └─sdb1 8:17 0 3.8G 0 part
      sdc 8:32 0 465.8G 0 disk /mnt
      sde 8:64 1 14.9G 0 disk /cdrom
      ├─sde1 8:65 1 1.8G 0 part
      └─sde2 8:66 1 2.3M 0 part
      sdf 8:80 1 7.5G 0 disk
      └─sdf1 8:81 1 7.5G 0 part
      sr0 11:0 1 1024M 0 rom


      /dev/sda1 contains my EFI partition on my old mechanical HDD.



      I'm currently on the Kubuntu live USB and am trying to get grub to install on the moved filesystem. It is complaining about the EFI though.



      Here's what I've tried so far to install grub (As boot-repair doesn't seem to work):



      kubuntu@kubuntu:~$ sudo mount /dev/sdc /mnt
      kubuntu@kubuntu:~$ sudo mount /dev/sda1 /mnt/@/boot/efi/
      kubuntu@kubuntu:~$ grub-install --boot-directory=/mnt/@/boot --bootloader-id=Kubuntu --target=x86_64-efi --efi-directory=/mnt/@/boot/efi
      grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.


      How should I proceed?



      EDIT 0:
      I performed sudo apt-get install --reinstall grub-efi and installed the packages: grub-efi-amd64 grub-efi-amd64-bin. This led to a different outcome on grub:



      kubuntu@kubuntu:/mnt$ sudo grub-install --boot-directory=/mnt/@/boot --bootloader-id=Kubuntu  --target=x86_64-efi --efi-directory=/mnt/@/boot/efi
      Installing for x86_64-efi platform.
      Installation finished. No error reported.


      Not sure if it'll boot. I guess I'll check back.







      boot grub2 18.04 uefi kubuntu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 18 at 3:11







      Sarah Szabo

















      asked Feb 18 at 2:04









      Sarah SzaboSarah Szabo

      411921




      411921






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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%2faskubuntu.com%2fquestions%2f1119105%2finstalling-grub-to-moved-os-on-new-ssd-efi-errors%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1119105%2finstalling-grub-to-moved-os-on-new-ssd-efi-errors%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

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents