Results 1 to 50 of 54

Thread: How to EFI install Kali Linux (Beginner Ways)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. Quote Originally Posted by _defalt View Post
    you should download kali weekly image
    What should I do with the legacy Kali OS on my hard drive (that works only under Legacy)? Should I delete the legacy Kali OS or just format the partitions containing it to make way for the new uefi weekly kali install? What's the best way to delete Legacy Kali OS that's on my hard drive?
    Last edited by Make Kali Great Again; 2017-04-08 at 11:13.

  2. #2
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by Make Kali Great Again View Post
    What should I do with the legacy Kali OS on my hard drive (that works only under Legacy)? Should I delete the legacy Kali OS or just format the partitions containing it to make way for the new uefi weekly kali install? What's the best way to delete Legacy Kali OS that's on my hard drive?
    You don't have to erase it if you have already installed. Just install grub in your EFI partition because UEFI reads from EFI boot sector. Boot into kali-live (in legacy or in UEFI doesn't matter but if you boot kali live in UEFI again that problem efi boot files are required). Run these commands after booting kali-live:

    sudo mount /dev/sda* /mnt
    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys /mnt/sys
    sudo mount /dev/sda** /mnt/boot/efi
    sudo chroot /mnt
    grub-install /dev/sda
    exit
    sudo umount /mnt/dev
    sudo umount /mnt/proc
    sudo umount /mnt/sys
    sudo umount /mnt/boot/efi
    sudo umount /mnt

    Replace * in sudo mount /dev/sda* /mnt with your linux partition assigned value. Like mine is /dev/sda5
    Replace ** in sudo mount /dev/sda** /mnt/boot/efi with your EFI partition assigned value. Mine is /dev/sda1
    Use fdisk -l to list all partitions.


    Then switch to UEFI after installation of grub.

  3. Quote Originally Posted by _defalt View Post
    You don't have to erase it if you have already installed. Just install grub in your EFI partition because UEFI reads from EFI boot sector.
    Under disk management in Windows I can see an EFI partition. This was factory shipped as EFI Partition. You mean the code you supplied will install Grub there? Will it be Grub 1 or 2 that's going to install? What should I do with the Grub that was installed on my MBR when I did the legacy install prior? Delete it?

    I log in with my username and password and then type those commands you provided in terminal?
    Last edited by Make Kali Great Again; 2017-04-11 at 12:55.

  4. #4
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by Make Kali Great Again View Post
    Under disk management in Windows I can see an EFI partition. This was factory shipped as EFI Partition. You mean the code you supplied will install Grub there? Will it be Grub 1 or 2 that's going to install? What should I do with the Grub that was installed on my MBR when I did the legacy install prior? Delete it?

    I log in with my username and password and then type those commands you provided in terminal?
    Yeah, grub2 will be installed in EFI partition. You can delete the MBR once you install grub. Grub1 became obsolete long ago before kali rolling was released.

    Don't login to your kali. Disable Legacy BIOS and Secure BOOT and boot kali live from bootable USB and then run those commands.

    Follow my this post to install grub: https://forums.kali.org/showthread.p...l-dummy-failed

  5. Quote Originally Posted by _defalt View Post
    Don't login to your kali. Disable Legacy BIOS and Secure BOOT
    If I disable legacy bios and use uefi it won't read the Live Kali CD. I'm forced to use Legacy
    Quote Originally Posted by _defalt View Post
    and boot kali live from bootable USB
    I'm using a Live Kali CD
    Quote Originally Posted by _defalt View Post
    and then run those commands.
    Run those commands when I get into terminal inside the Live Kali CD?
    Quote Originally Posted by _defalt View Post
    Replace * in sudo mount /dev/sda* /mnt with your linux partition assigned value. Like mine is /dev/sda5
    I have a few linux partitions I created, which one? I have : /dev/sda5 root /dev/sda6 boot /dev/sda 8 home /dev/sda 9 opt

  6. Quote Originally Posted by _defalt View Post
    [B]sudo mount /dev/sda* /mnt
    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys /mnt/sys
    Is there a space before and after --bind?

    Quote Originally Posted by _defalt View Post
    grub-install /dev/sda
    Do I need to be connected online to internet for this bit?
    Prior to this I already had Kali installed on my hard drive.
    Last edited by Make Kali Great Again; 2017-04-19 at 13:35.

  7. Quote Originally Posted by _defalt View Post
    [B]sudo mount /dev/sda* /mnt
    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys /mnt/sys
    sudo mount /dev/sda** /mnt/boot/efi
    sudo chroot /mnt
    grub-install /dev/sda
    After this I got:
    Installing for i386-pc platform
    grub-install warning: This GPT partition label contains no BIOS Boot Partition, embedding won't be possible.
    grub-install warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are Unreliable and their use is discouraged.
    grub-install error: will not proceed with blocklists

Tags for this Thread

Posting Permissions

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