Results 1 to 2 of 2

Thread: [HELP] Installing Kali on a machine with NO OS (GRUB seems to be the issue)..output of fdisk present

  1. #1
    Join Date
    2018-Jun
    Posts
    2

    [HELP] Installing Kali on a machine with NO OS (GRUB seems to be the issue)..output of fdisk present

    Hi everyone,

    All I want to do is install the latest Kali 18.2 on my machine that has no OS. The reason why it has no OS is because I wiped out windows 10 a few months ago and I successfully managed to install Kali 2017 on it. It was a pain as a I had to disable/enable legacy/secure boot and it was a lot of configuration. Nonetheless I was happy until yesterday. I wanted to install insomnia and I had to update all my packages as a dependancy was missing. When I restarted my laptop I was greeted with a black screen telling me BootDevice Not Found, Please install an operating system on your hard drive. Please see image 1 for this screen.
    image 1: https://pasteboard.co/HoPtey2.jpg

    I have then installed the latest Kali distro and wrote it on my USB using ROSA IMAGE WRITER ( I read somewhere online that it kept the grub intact or something), the previous win32diskwriter kept telling me during installation grub is missing, whereas the ROSA IMAGE WRITER installed grub correctly and (falsely) got me excited as I thought that was the issue. So I re-installed Kali it on my machine ( I actually installed it God knows how many times with different configurations, its bad enough all my work suddenly disappeared) to no avail.

    I have installed it under different BIOS settings:
    ```
    Secure Boot Load: Enabled, Legacy: Disabled
    Secure Boot Load: Disabled, Legacy: Enabled
    Secure Boot Load: Disabled, Legacy: Disabled
    Secure Boot Load: Enabled, Legacy: Enabled
    ```
    Same issue.

    Also, during installation there was an Install the GRUB boot loader on a hard disk as a master boot loader (image 2) and I ran it with both yes and then, when it failed, with no.

    image 2: https://pasteboard.co/HoPsa2u.jpg

    My USB folder structure looks like:
    ```
    USB/efi/boot/bootia32.efi
    USB/efi/boot/bootx64.efi
    ```
    and that's it? No grub.cfg anywhere. Is that normal?

    Also, I can't run commands like grub-install or update-grub, so something like this wouldn't work for me:
    ```
    mount /dev/sda* /mnt
    mount --bind /dev /mnt/dev
    mount --bind /proc /mnt/proc
    mount --bind /sys /mnt/sys
    mkdir /mnt/sys/firmware/efi/efivars
    mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
    mkdir /mnt/boot/efi
    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

    ```

    Please also find attached output of my disk -l
    https://pasteboard.co/HoPqjSr.jpg

    There is also no efi there, is that also normal?
    Please kindly help me on making this laptop solely kali linux, i really do not want to go back to windows

    Thank you !

    PS this is similar to post
    https://forums.kali.org/showthread.p...D+dual+booting
    but we have some differences and I would love it if @_defalt could reply to this as he is the reason why I made an account today : )

    I would very much appreciate any suggestions.

    Thank you for taking the time to read this.

  2. #2
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    928
    It looks like you were installing kali in Legacy mode which is not made for latest operating systems. Hence the word legacy.

    Disable both Legacy BIOS and Secure boot. Enable UEFI.

    Even though it's optional yet I would suggest that make your hard drive to GPT if it is in MBR. There is no need of Extended Partition in GPT.

    Format your hard drive with GPT partition scheme. You can do that with Gparted by booting into kali live.

    Don't create any partitions. Keep the entire hard drive as unallocated.

    I personally create bootable USB with rufus in DD mode but you can use any.

    Install kali in UEFI mode. Installer will do the rest of the work.

    If you are getting errors like grub-install: command not found, then you need to reinstall OS.
    Last edited by _defalt; 1 Week Ago at 14:01.

Similar Threads

  1. Installing on external hard disk grub issue
    By Blackshield1 in forum Installing Archive
    Replies: 0
    Last Post: 2015-07-10, 21:08
  2. Replies: 0
    Last Post: 2014-01-18, 21:36

Posting Permissions

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