unable to install GRUB in dummy on debian stretch in DELL PRECISION 5510











up vote
0
down vote

favorite
1












I am trying do dual-boot my Dell Precision 5510 (1TB PCIe SSD), that came with windows 10, adding Debian stretch.



First, I have disabled fast startup of windows and then and disabled secure boot. Then, when installing Debian from a bootable USB stick, in some moment, it prompt the windows installing grub boot loader. It shows the message looking for other operation systems for around half an hour and finally prompt the window error unable to install grub in dummy, executing grub-install dummy failed, fatal error. Hope someone can give a hand.










share|improve this question






















  • Welcome to SU , are you using a gpt table?
    – GAD3R
    Dec 9 '16 at 18:21










  • Sorry for the answer, explicitly I did not manage anything of a gpt table. But I think that the debian installer manage that when UEFI mode is recognized. If my answer is wrong, please guide me.
    – Erick Chacon
    Dec 9 '16 at 18:29










  • Boot from a Linux Live USB/CD to repair the existing installation , Create a new partition flagged bios_grub Size = 1 M , Then create the chroot environment to reinstall grub , if you don't have a linux live USB reinstall Debian , do not forget to add the bios_grub partition
    – GAD3R
    Dec 9 '16 at 18:38










  • Then, should I finish this installation (I have cancelled that) and then do what you suggest?
    – Erick Chacon
    Dec 9 '16 at 18:57










  • Reinstall the system , Create the swap , root , bios_ grub partition .... the grub bootloader will be installed correctly on your dd
    – GAD3R
    Dec 9 '16 at 19:34















up vote
0
down vote

favorite
1












I am trying do dual-boot my Dell Precision 5510 (1TB PCIe SSD), that came with windows 10, adding Debian stretch.



First, I have disabled fast startup of windows and then and disabled secure boot. Then, when installing Debian from a bootable USB stick, in some moment, it prompt the windows installing grub boot loader. It shows the message looking for other operation systems for around half an hour and finally prompt the window error unable to install grub in dummy, executing grub-install dummy failed, fatal error. Hope someone can give a hand.










share|improve this question






















  • Welcome to SU , are you using a gpt table?
    – GAD3R
    Dec 9 '16 at 18:21










  • Sorry for the answer, explicitly I did not manage anything of a gpt table. But I think that the debian installer manage that when UEFI mode is recognized. If my answer is wrong, please guide me.
    – Erick Chacon
    Dec 9 '16 at 18:29










  • Boot from a Linux Live USB/CD to repair the existing installation , Create a new partition flagged bios_grub Size = 1 M , Then create the chroot environment to reinstall grub , if you don't have a linux live USB reinstall Debian , do not forget to add the bios_grub partition
    – GAD3R
    Dec 9 '16 at 18:38










  • Then, should I finish this installation (I have cancelled that) and then do what you suggest?
    – Erick Chacon
    Dec 9 '16 at 18:57










  • Reinstall the system , Create the swap , root , bios_ grub partition .... the grub bootloader will be installed correctly on your dd
    – GAD3R
    Dec 9 '16 at 19:34













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





I am trying do dual-boot my Dell Precision 5510 (1TB PCIe SSD), that came with windows 10, adding Debian stretch.



First, I have disabled fast startup of windows and then and disabled secure boot. Then, when installing Debian from a bootable USB stick, in some moment, it prompt the windows installing grub boot loader. It shows the message looking for other operation systems for around half an hour and finally prompt the window error unable to install grub in dummy, executing grub-install dummy failed, fatal error. Hope someone can give a hand.










share|improve this question













I am trying do dual-boot my Dell Precision 5510 (1TB PCIe SSD), that came with windows 10, adding Debian stretch.



First, I have disabled fast startup of windows and then and disabled secure boot. Then, when installing Debian from a bootable USB stick, in some moment, it prompt the windows installing grub boot loader. It shows the message looking for other operation systems for around half an hour and finally prompt the window error unable to install grub in dummy, executing grub-install dummy failed, fatal error. Hope someone can give a hand.







linux windows-10 boot debian grub






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 9 '16 at 17:52









Erick Chacon

10113




10113












  • Welcome to SU , are you using a gpt table?
    – GAD3R
    Dec 9 '16 at 18:21










  • Sorry for the answer, explicitly I did not manage anything of a gpt table. But I think that the debian installer manage that when UEFI mode is recognized. If my answer is wrong, please guide me.
    – Erick Chacon
    Dec 9 '16 at 18:29










  • Boot from a Linux Live USB/CD to repair the existing installation , Create a new partition flagged bios_grub Size = 1 M , Then create the chroot environment to reinstall grub , if you don't have a linux live USB reinstall Debian , do not forget to add the bios_grub partition
    – GAD3R
    Dec 9 '16 at 18:38










  • Then, should I finish this installation (I have cancelled that) and then do what you suggest?
    – Erick Chacon
    Dec 9 '16 at 18:57










  • Reinstall the system , Create the swap , root , bios_ grub partition .... the grub bootloader will be installed correctly on your dd
    – GAD3R
    Dec 9 '16 at 19:34


















  • Welcome to SU , are you using a gpt table?
    – GAD3R
    Dec 9 '16 at 18:21










  • Sorry for the answer, explicitly I did not manage anything of a gpt table. But I think that the debian installer manage that when UEFI mode is recognized. If my answer is wrong, please guide me.
    – Erick Chacon
    Dec 9 '16 at 18:29










  • Boot from a Linux Live USB/CD to repair the existing installation , Create a new partition flagged bios_grub Size = 1 M , Then create the chroot environment to reinstall grub , if you don't have a linux live USB reinstall Debian , do not forget to add the bios_grub partition
    – GAD3R
    Dec 9 '16 at 18:38










  • Then, should I finish this installation (I have cancelled that) and then do what you suggest?
    – Erick Chacon
    Dec 9 '16 at 18:57










  • Reinstall the system , Create the swap , root , bios_ grub partition .... the grub bootloader will be installed correctly on your dd
    – GAD3R
    Dec 9 '16 at 19:34
















Welcome to SU , are you using a gpt table?
– GAD3R
Dec 9 '16 at 18:21




Welcome to SU , are you using a gpt table?
– GAD3R
Dec 9 '16 at 18:21












Sorry for the answer, explicitly I did not manage anything of a gpt table. But I think that the debian installer manage that when UEFI mode is recognized. If my answer is wrong, please guide me.
– Erick Chacon
Dec 9 '16 at 18:29




Sorry for the answer, explicitly I did not manage anything of a gpt table. But I think that the debian installer manage that when UEFI mode is recognized. If my answer is wrong, please guide me.
– Erick Chacon
Dec 9 '16 at 18:29












Boot from a Linux Live USB/CD to repair the existing installation , Create a new partition flagged bios_grub Size = 1 M , Then create the chroot environment to reinstall grub , if you don't have a linux live USB reinstall Debian , do not forget to add the bios_grub partition
– GAD3R
Dec 9 '16 at 18:38




Boot from a Linux Live USB/CD to repair the existing installation , Create a new partition flagged bios_grub Size = 1 M , Then create the chroot environment to reinstall grub , if you don't have a linux live USB reinstall Debian , do not forget to add the bios_grub partition
– GAD3R
Dec 9 '16 at 18:38












Then, should I finish this installation (I have cancelled that) and then do what you suggest?
– Erick Chacon
Dec 9 '16 at 18:57




Then, should I finish this installation (I have cancelled that) and then do what you suggest?
– Erick Chacon
Dec 9 '16 at 18:57












Reinstall the system , Create the swap , root , bios_ grub partition .... the grub bootloader will be installed correctly on your dd
– GAD3R
Dec 9 '16 at 19:34




Reinstall the system , Create the swap , root , bios_ grub partition .... the grub bootloader will be installed correctly on your dd
– GAD3R
Dec 9 '16 at 19:34










2 Answers
2






active

oldest

votes

















up vote
0
down vote













For UEFI boot, with GPT, you need not create BIOS BOOT Partition (with BIOS_GRUB flag).
For non-UEFI boot (with BIOS) and with GPT, you need BIOS BOOT Partition.
Read https://wiki.archlinuxjp.org/index.php/GRUB#UEFI_.E3.82.B7.E3.82.B9.E3.83.86.E3.83.A0



I want to know the current boot configuration of your PC.
Boot with Boot-repair and generate Boot-info URL and post the generated URL.






share|improve this answer





















  • This is the result of using boot-repair. dropbox.com/s/b54brzgo2q390kf/…
    – Erick Chacon
    Dec 13 '16 at 16:15




















up vote
0
down vote













There seem to be multiple possible causes for this failure. In my case, Debian installer failed to configure /etc/default/grub correctly. The solution I will describe worked for my particular setup on a Thinkpad 13 Gen 2



Setup




  1. Boot mode is "UEFI Only" (check the corresponding setting in the BIOS Setup).

  2. Factory installed Windows 10 booting, obviously, in UEFI mode (check the "BIOS mode" row in System Information, it should say UEFI).


  3. The disk had 3 partitions:




    1. EFI System Partition

    2. Windows NTFS Partition

    3. Recovery Partition



  4. I wanted to keep Windows for a dual boot, so I shrank the Windows partition to get room for Debian (using the Disk Management tool under Windows).


  5. Ran Debian installation from a USB stick. The installer ran in the UEFI mode (there was a text line on the initial splash screen saying "Debian GNU/Linux UEFI Installer menu).

  6. Partitioned the free space on the disk manually:


    1. Created a 256MB partition for /boot

    2. Created an encrypted volume in the rest of the free space (the encrypted volume is what Debian installer seems to have a problem with during Grub installation later on).

    3. Created 3 LVM logical volumes for root, swap, and home.



  7. The installation ran smoothly until the "Install the Grub Boot Loader on a Hard Disk" step, at which the installer failed with the message: "Unable to install GRUB in dummy. Executing 'grub-install dummy' failed.
    This is a fatal error."

  8. I skipped the Grub installation step and continued the installation with the next step. The installation finished successfully, but on the reboot no Grub screen was displayed and Windows booted.


Solution




  1. Boot from the installation media from which you installed Debian.

  2. In the initial menu, go to Advanced options -> Rescue mode and go through the configuration process for the rescue mode until you get a shell prompt.

  3. In the shell prompt run:
    apt-get install --reinstall grub-efi-amd64

    This should fail with the message
    grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set 'GRUB_ENABLE_CRYPTODISK=y' in file '/etc/default/grub'.

  4. Open /etc/default/grub in an editor (e.g., nano) and add GRUB_ENABLE_CRYPTODISK=y as the last line. Save the file.

  5. Run
    apt-get install --reinstall grub-efi-amd64
    update-grub

  6. Run exit and reboot.


You should now get a Grub menu with the options to boot Debian and Windows.



UPDATE



I found out that Debian installer ignored the separate /boot partition I created and tried to install Grub to the boot directory on the encrypted root partition. This caused the failure. So, instead of editing /etc/default/grub move the contents of the boot directory to a separate unencrypted /boot partition (note that the EFI Partition is mounted into /boot/efi) and then install Grub normally:
apt-get install --reinstall grub-efi-amd64
update-grub



If you use this solution, you will be prompted only once for a password to decrypt your encrypted partition.






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',
    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%2f1154866%2funable-to-install-grub-in-dummy-on-debian-stretch-in-dell-precision-5510%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    For UEFI boot, with GPT, you need not create BIOS BOOT Partition (with BIOS_GRUB flag).
    For non-UEFI boot (with BIOS) and with GPT, you need BIOS BOOT Partition.
    Read https://wiki.archlinuxjp.org/index.php/GRUB#UEFI_.E3.82.B7.E3.82.B9.E3.83.86.E3.83.A0



    I want to know the current boot configuration of your PC.
    Boot with Boot-repair and generate Boot-info URL and post the generated URL.






    share|improve this answer





















    • This is the result of using boot-repair. dropbox.com/s/b54brzgo2q390kf/…
      – Erick Chacon
      Dec 13 '16 at 16:15

















    up vote
    0
    down vote













    For UEFI boot, with GPT, you need not create BIOS BOOT Partition (with BIOS_GRUB flag).
    For non-UEFI boot (with BIOS) and with GPT, you need BIOS BOOT Partition.
    Read https://wiki.archlinuxjp.org/index.php/GRUB#UEFI_.E3.82.B7.E3.82.B9.E3.83.86.E3.83.A0



    I want to know the current boot configuration of your PC.
    Boot with Boot-repair and generate Boot-info URL and post the generated URL.






    share|improve this answer





















    • This is the result of using boot-repair. dropbox.com/s/b54brzgo2q390kf/…
      – Erick Chacon
      Dec 13 '16 at 16:15















    up vote
    0
    down vote










    up vote
    0
    down vote









    For UEFI boot, with GPT, you need not create BIOS BOOT Partition (with BIOS_GRUB flag).
    For non-UEFI boot (with BIOS) and with GPT, you need BIOS BOOT Partition.
    Read https://wiki.archlinuxjp.org/index.php/GRUB#UEFI_.E3.82.B7.E3.82.B9.E3.83.86.E3.83.A0



    I want to know the current boot configuration of your PC.
    Boot with Boot-repair and generate Boot-info URL and post the generated URL.






    share|improve this answer












    For UEFI boot, with GPT, you need not create BIOS BOOT Partition (with BIOS_GRUB flag).
    For non-UEFI boot (with BIOS) and with GPT, you need BIOS BOOT Partition.
    Read https://wiki.archlinuxjp.org/index.php/GRUB#UEFI_.E3.82.B7.E3.82.B9.E3.83.86.E3.83.A0



    I want to know the current boot configuration of your PC.
    Boot with Boot-repair and generate Boot-info URL and post the generated URL.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 13 '16 at 15:42









    Kiyoshi Suzuki

    1




    1












    • This is the result of using boot-repair. dropbox.com/s/b54brzgo2q390kf/…
      – Erick Chacon
      Dec 13 '16 at 16:15




















    • This is the result of using boot-repair. dropbox.com/s/b54brzgo2q390kf/…
      – Erick Chacon
      Dec 13 '16 at 16:15


















    This is the result of using boot-repair. dropbox.com/s/b54brzgo2q390kf/…
    – Erick Chacon
    Dec 13 '16 at 16:15






    This is the result of using boot-repair. dropbox.com/s/b54brzgo2q390kf/…
    – Erick Chacon
    Dec 13 '16 at 16:15














    up vote
    0
    down vote













    There seem to be multiple possible causes for this failure. In my case, Debian installer failed to configure /etc/default/grub correctly. The solution I will describe worked for my particular setup on a Thinkpad 13 Gen 2



    Setup




    1. Boot mode is "UEFI Only" (check the corresponding setting in the BIOS Setup).

    2. Factory installed Windows 10 booting, obviously, in UEFI mode (check the "BIOS mode" row in System Information, it should say UEFI).


    3. The disk had 3 partitions:




      1. EFI System Partition

      2. Windows NTFS Partition

      3. Recovery Partition



    4. I wanted to keep Windows for a dual boot, so I shrank the Windows partition to get room for Debian (using the Disk Management tool under Windows).


    5. Ran Debian installation from a USB stick. The installer ran in the UEFI mode (there was a text line on the initial splash screen saying "Debian GNU/Linux UEFI Installer menu).

    6. Partitioned the free space on the disk manually:


      1. Created a 256MB partition for /boot

      2. Created an encrypted volume in the rest of the free space (the encrypted volume is what Debian installer seems to have a problem with during Grub installation later on).

      3. Created 3 LVM logical volumes for root, swap, and home.



    7. The installation ran smoothly until the "Install the Grub Boot Loader on a Hard Disk" step, at which the installer failed with the message: "Unable to install GRUB in dummy. Executing 'grub-install dummy' failed.
      This is a fatal error."

    8. I skipped the Grub installation step and continued the installation with the next step. The installation finished successfully, but on the reboot no Grub screen was displayed and Windows booted.


    Solution




    1. Boot from the installation media from which you installed Debian.

    2. In the initial menu, go to Advanced options -> Rescue mode and go through the configuration process for the rescue mode until you get a shell prompt.

    3. In the shell prompt run:
      apt-get install --reinstall grub-efi-amd64

      This should fail with the message
      grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set 'GRUB_ENABLE_CRYPTODISK=y' in file '/etc/default/grub'.

    4. Open /etc/default/grub in an editor (e.g., nano) and add GRUB_ENABLE_CRYPTODISK=y as the last line. Save the file.

    5. Run
      apt-get install --reinstall grub-efi-amd64
      update-grub

    6. Run exit and reboot.


    You should now get a Grub menu with the options to boot Debian and Windows.



    UPDATE



    I found out that Debian installer ignored the separate /boot partition I created and tried to install Grub to the boot directory on the encrypted root partition. This caused the failure. So, instead of editing /etc/default/grub move the contents of the boot directory to a separate unencrypted /boot partition (note that the EFI Partition is mounted into /boot/efi) and then install Grub normally:
    apt-get install --reinstall grub-efi-amd64
    update-grub



    If you use this solution, you will be prompted only once for a password to decrypt your encrypted partition.






    share|improve this answer



























      up vote
      0
      down vote













      There seem to be multiple possible causes for this failure. In my case, Debian installer failed to configure /etc/default/grub correctly. The solution I will describe worked for my particular setup on a Thinkpad 13 Gen 2



      Setup




      1. Boot mode is "UEFI Only" (check the corresponding setting in the BIOS Setup).

      2. Factory installed Windows 10 booting, obviously, in UEFI mode (check the "BIOS mode" row in System Information, it should say UEFI).


      3. The disk had 3 partitions:




        1. EFI System Partition

        2. Windows NTFS Partition

        3. Recovery Partition



      4. I wanted to keep Windows for a dual boot, so I shrank the Windows partition to get room for Debian (using the Disk Management tool under Windows).


      5. Ran Debian installation from a USB stick. The installer ran in the UEFI mode (there was a text line on the initial splash screen saying "Debian GNU/Linux UEFI Installer menu).

      6. Partitioned the free space on the disk manually:


        1. Created a 256MB partition for /boot

        2. Created an encrypted volume in the rest of the free space (the encrypted volume is what Debian installer seems to have a problem with during Grub installation later on).

        3. Created 3 LVM logical volumes for root, swap, and home.



      7. The installation ran smoothly until the "Install the Grub Boot Loader on a Hard Disk" step, at which the installer failed with the message: "Unable to install GRUB in dummy. Executing 'grub-install dummy' failed.
        This is a fatal error."

      8. I skipped the Grub installation step and continued the installation with the next step. The installation finished successfully, but on the reboot no Grub screen was displayed and Windows booted.


      Solution




      1. Boot from the installation media from which you installed Debian.

      2. In the initial menu, go to Advanced options -> Rescue mode and go through the configuration process for the rescue mode until you get a shell prompt.

      3. In the shell prompt run:
        apt-get install --reinstall grub-efi-amd64

        This should fail with the message
        grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set 'GRUB_ENABLE_CRYPTODISK=y' in file '/etc/default/grub'.

      4. Open /etc/default/grub in an editor (e.g., nano) and add GRUB_ENABLE_CRYPTODISK=y as the last line. Save the file.

      5. Run
        apt-get install --reinstall grub-efi-amd64
        update-grub

      6. Run exit and reboot.


      You should now get a Grub menu with the options to boot Debian and Windows.



      UPDATE



      I found out that Debian installer ignored the separate /boot partition I created and tried to install Grub to the boot directory on the encrypted root partition. This caused the failure. So, instead of editing /etc/default/grub move the contents of the boot directory to a separate unencrypted /boot partition (note that the EFI Partition is mounted into /boot/efi) and then install Grub normally:
      apt-get install --reinstall grub-efi-amd64
      update-grub



      If you use this solution, you will be prompted only once for a password to decrypt your encrypted partition.






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        There seem to be multiple possible causes for this failure. In my case, Debian installer failed to configure /etc/default/grub correctly. The solution I will describe worked for my particular setup on a Thinkpad 13 Gen 2



        Setup




        1. Boot mode is "UEFI Only" (check the corresponding setting in the BIOS Setup).

        2. Factory installed Windows 10 booting, obviously, in UEFI mode (check the "BIOS mode" row in System Information, it should say UEFI).


        3. The disk had 3 partitions:




          1. EFI System Partition

          2. Windows NTFS Partition

          3. Recovery Partition



        4. I wanted to keep Windows for a dual boot, so I shrank the Windows partition to get room for Debian (using the Disk Management tool under Windows).


        5. Ran Debian installation from a USB stick. The installer ran in the UEFI mode (there was a text line on the initial splash screen saying "Debian GNU/Linux UEFI Installer menu).

        6. Partitioned the free space on the disk manually:


          1. Created a 256MB partition for /boot

          2. Created an encrypted volume in the rest of the free space (the encrypted volume is what Debian installer seems to have a problem with during Grub installation later on).

          3. Created 3 LVM logical volumes for root, swap, and home.



        7. The installation ran smoothly until the "Install the Grub Boot Loader on a Hard Disk" step, at which the installer failed with the message: "Unable to install GRUB in dummy. Executing 'grub-install dummy' failed.
          This is a fatal error."

        8. I skipped the Grub installation step and continued the installation with the next step. The installation finished successfully, but on the reboot no Grub screen was displayed and Windows booted.


        Solution




        1. Boot from the installation media from which you installed Debian.

        2. In the initial menu, go to Advanced options -> Rescue mode and go through the configuration process for the rescue mode until you get a shell prompt.

        3. In the shell prompt run:
          apt-get install --reinstall grub-efi-amd64

          This should fail with the message
          grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set 'GRUB_ENABLE_CRYPTODISK=y' in file '/etc/default/grub'.

        4. Open /etc/default/grub in an editor (e.g., nano) and add GRUB_ENABLE_CRYPTODISK=y as the last line. Save the file.

        5. Run
          apt-get install --reinstall grub-efi-amd64
          update-grub

        6. Run exit and reboot.


        You should now get a Grub menu with the options to boot Debian and Windows.



        UPDATE



        I found out that Debian installer ignored the separate /boot partition I created and tried to install Grub to the boot directory on the encrypted root partition. This caused the failure. So, instead of editing /etc/default/grub move the contents of the boot directory to a separate unencrypted /boot partition (note that the EFI Partition is mounted into /boot/efi) and then install Grub normally:
        apt-get install --reinstall grub-efi-amd64
        update-grub



        If you use this solution, you will be prompted only once for a password to decrypt your encrypted partition.






        share|improve this answer














        There seem to be multiple possible causes for this failure. In my case, Debian installer failed to configure /etc/default/grub correctly. The solution I will describe worked for my particular setup on a Thinkpad 13 Gen 2



        Setup




        1. Boot mode is "UEFI Only" (check the corresponding setting in the BIOS Setup).

        2. Factory installed Windows 10 booting, obviously, in UEFI mode (check the "BIOS mode" row in System Information, it should say UEFI).


        3. The disk had 3 partitions:




          1. EFI System Partition

          2. Windows NTFS Partition

          3. Recovery Partition



        4. I wanted to keep Windows for a dual boot, so I shrank the Windows partition to get room for Debian (using the Disk Management tool under Windows).


        5. Ran Debian installation from a USB stick. The installer ran in the UEFI mode (there was a text line on the initial splash screen saying "Debian GNU/Linux UEFI Installer menu).

        6. Partitioned the free space on the disk manually:


          1. Created a 256MB partition for /boot

          2. Created an encrypted volume in the rest of the free space (the encrypted volume is what Debian installer seems to have a problem with during Grub installation later on).

          3. Created 3 LVM logical volumes for root, swap, and home.



        7. The installation ran smoothly until the "Install the Grub Boot Loader on a Hard Disk" step, at which the installer failed with the message: "Unable to install GRUB in dummy. Executing 'grub-install dummy' failed.
          This is a fatal error."

        8. I skipped the Grub installation step and continued the installation with the next step. The installation finished successfully, but on the reboot no Grub screen was displayed and Windows booted.


        Solution




        1. Boot from the installation media from which you installed Debian.

        2. In the initial menu, go to Advanced options -> Rescue mode and go through the configuration process for the rescue mode until you get a shell prompt.

        3. In the shell prompt run:
          apt-get install --reinstall grub-efi-amd64

          This should fail with the message
          grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set 'GRUB_ENABLE_CRYPTODISK=y' in file '/etc/default/grub'.

        4. Open /etc/default/grub in an editor (e.g., nano) and add GRUB_ENABLE_CRYPTODISK=y as the last line. Save the file.

        5. Run
          apt-get install --reinstall grub-efi-amd64
          update-grub

        6. Run exit and reboot.


        You should now get a Grub menu with the options to boot Debian and Windows.



        UPDATE



        I found out that Debian installer ignored the separate /boot partition I created and tried to install Grub to the boot directory on the encrypted root partition. This caused the failure. So, instead of editing /etc/default/grub move the contents of the boot directory to a separate unencrypted /boot partition (note that the EFI Partition is mounted into /boot/efi) and then install Grub normally:
        apt-get install --reinstall grub-efi-amd64
        update-grub



        If you use this solution, you will be prompted only once for a password to decrypt your encrypted partition.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 24 at 8:59

























        answered Apr 24 at 7:59









        SergiyKolesnikov

        1114




        1114






























            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%2f1154866%2funable-to-install-grub-in-dummy-on-debian-stretch-in-dell-precision-5510%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

            Paul Cézanne

            UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

            Angular material date-picker (MatDatepicker) auto completes the date on focus out