Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Executing 'grub-install dummy' failed.

  1. #1
    Junior Member
    Join Date
    Apr 2017
    Posts
    7

    Executing 'grub-install dummy' failed.

    I try to dual boot Windows 10 and Kali.
    At the point where i need to install GRUB bootloader I get following error:
    "Unable to install GRUB in dummy
    Executing 'grub-install dummy' failed.
    This is a fatal error."

    I tried this: https://wiki.debian.org/InstallingDe...CIe_SSD/jessie
    At the point where I need to do this: "grub-install --target=x86_64-efi /dev/nvme0n1"
    I get the error: "grub-install: error: cannot open '/boot/efi/EFI/kali/grubx64.efi' : read-only file system."

    To my System:
    - Lenovo ThinkPad Yoga 460
    - 8 GB RAM
    - Intel Core i7-6500U
    - 256 GB Solid-State-Laufwerk, SATA3

    Kali:
    Kali 64 Bit Version: 2016.2
    Win32 to create USB

    Booted in UEFI only, Secure Boot Disabled

    Do you have any idea what I could do?
    I hope this is enough information.

  2. #2
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    619
    You can skip installation of grub. After your installation is complete boot into kali-live and run these commands:

    sudo mount /dev/sda* /mnt
    mount --bind /dev /mnt/dev
    mount --bind /proc /mnt/proc
    mount --bind /sys /mnt/sys
    mount /dev/sda+ /mnt/boot/efi
    mount -o remount,rw /dev/sda+ /mnt/boot/efi
    mkdir /mnt/hostrun
    mount --bind /run /mnt/hostrun
    chroot /mnt
    mkdir /run/lvm
    mount --bind /hostrun/lvm /run/lvm
    grub-install /dev/sda
    update-grub
    exit
    umount /mnt/dev
    umount /mnt/proc
    umount /mnt/sys
    umount /mnt/boot/efi
    umount /mnt/hostrun
    umount /mnt/run/lvm
    umount /mnt


    Replace * in sudo mount /dev/sda* /mnt with your linux filesystem name. Like mine is /dev/sda6
    Replace + in sudo mount /dev/sda+ /mnt/boot/efi with your EFI partition name. Mine is /dev/sda1
    Use fdisk -l to list all partitions.
    Last edited by _defalt; 2017-06-04 at 07:03 PM.

  3. #3
    Junior Member
    Join Date
    Apr 2017
    Posts
    7
    Thanks for your reply... I did what you wrote... I got no error, bit still I can only boot into windows.
    For * I took sda5 which is my Linux file-system. Do I need to take sda6 which is Linux swap?

  4. #4
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    619
    It'll obviously boot into Windows because UEFI boots that OS first whose boot loader is given 1st priority. You have to press F9 or F10 or F8 or F12 or F8 or Esc to open boot menu options. There you will find the option to boot either Windows or kali-linux. Which key is used to open boot menu options depends on your manufacturer. It's similar to opening UEFI settings where you can also change boot priority.

    Are you sure there were no errors reported while running those commands?

    Linux swap would be a wrong choice. What did you chose for **?
    Last edited by _defalt; 2017-04-08 at 04:45 PM.

  5. #5
    Junior Member
    Join Date
    Apr 2017
    Posts
    7
    Yes I know... But the only option which is bootable is Windows.

    For ** i choosed sda1 which is my efi partition.

  6. #6
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    619
    I added one more command into the list. See my edit and repeat the process. Report if you face lvmetad error after the update-grub command.
    Last edited by _defalt; 2017-04-08 at 08:36 PM.

  7. #7
    Junior Member
    Join Date
    Apr 2017
    Posts
    7
    There was a warning which said something like: "can't connect to lvmetdat"

  8. #8
    Junior Member
    Join Date
    Apr 2017
    Posts
    7
    Now i even get an error. grub-install: error: cannot open `/boot/efi/EFI/kali/grubx64.efi': Input/output error.

    I got it to boot once, then i updated kali and grub was gone again after I booted Windows once.

  9. #9
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    619
    Quote Originally Posted by DonTrash View Post
    Now i even get an error. grub-install: error: cannot open `/boot/efi/EFI/kali/grubx64.efi': Input/output error.
    To troubleshoot this error i already added this sudo mount -o remount,rw /dev/sda+ /mnt/boot/efi command, i don't know why it's not working.

    Quote Originally Posted by DonTrash View Post
    There was a warning which said something like: "can't connect to lvmetdat"
    Now to trouble shoot this error i added few more lines. I edited it. See my edit and run the process again.
    Last edited by _defalt; 2017-04-21 at 12:37 PM.

  10. #10
    Junior Member
    Join Date
    Apr 2017
    Posts
    7

    Quote Originally Posted by _defalt View Post
    To troubleshoot this error i already added this sudo mount -o remount,rw /dev/sda** /mnt/boot/efi command, i don't know why it's not working.


    Now to trouble shoot this error i added few more lines. I edited it. See my edit and run the process again.
    That worked fine! Thank you so much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •