Results 1 to 21 of 21

Thread: Troubles getting Kali to work

  1. #1
    Join Date
    2017-Jul
    Posts
    8

    Troubles getting Kali to work

    Hi guys
    I need some assistance with Kali linux.
    I have downloaded Kali linux 2017.1 64bit iso,made USB with win32DiskImager, booted into USB, selected graphical install, during installation i had Grub failed to install, installation finished but now i cannot boot into Kali.
    When running Kali live to repair Grub i cannot connect to internet with WiFi my hardware is Asus T100TAM there is no Ethernet on it. Kali won`t show Wlan0,after getting compat.wirelless i get wlan0 and wlan1 but they don`t scan for WiFi they are just there.Can someone explain to me how to download driver with some other pc then put it on mine and install it.And again my hardware with Kali has NO means of connecting to internet in order to download drivers.

  2. #2
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    The thread below you had the same problem. See how he got it resolved. https://forums.kali.org/showthread.p...on-failed-kali

    You don't need compat wireless. They are obsolete and not required by latest kernel. Show the output of rfkill list all. Which wifi adapter do you have?

  3. #3
    Join Date
    2017-Jul
    Posts
    8
    Sorry for taking this long to answer.
    Not sure how he resolved it as he didn`t state what happened in the end just that something went successful..
    From that thread i tried to follow your instructions,booted live Kali and tried to mount mnt point,were there problems? off course there were.
    root@kali:~# mount /dev/mmcblk1p5/mnt
    mount: can't find /dev/mmcblk1p5/mnt in /etc/fstab

    When i type `rfkill list all` nothing happens.
    I am not sure what wifi adapter i have,it is some Broadcom,is there command to show info about adapter?
    Also during installation it asked for ``non-free firmware`` called ``brcm/brcmfmac43241b4-sdio.txt`` and asked me if i have it on removable media,pressing YES and gave no resaults so i pressed NO and carried on with Install.
    What do we do now?

  4. #4
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    Before going further, I'd try running Kali live from your USB installer, and see how it works. In general, this will give you a good idea of the compatibility of Kali on your machine.

    The commands lsusb and lspci will list the recognized USB and PCI hardware, respectively. That may tell you what type of wifi adapter you have.

  5. #5
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by nikola992;72668were there problems? off course there were.
    [B
    root@kali:~# mount /dev/mmcblk1p5/mnt
    mount: can't find /dev/mmcblk1p5/mnt in /etc/fstab[/B]
    It is not a problem. You have entered it wrong. Be careful about the spaces. It is mount /dev/mmcblk1p5 /mnt. If spaces confuse you while entering the commands just copy paste them.

  6. #6
    Join Date
    2017-Jul
    Posts
    8
    root@kali:~# mount /dev/mmcblk1p5 /mnt
    root@kali:~# mount --bind /dev /mnt/dev
    root@kali:~# mount --bind /proc /mnt/proc
    root@kali:~# mount --bind /sys /mnt/sys
    root@kali:~# mkdir /mnt/boot/efi
    mkdir: cannot create directory ‘/mnt/boot/efi’: File exists
    root@kali:~# mount /dev/mmcblk1p2 /mnt/boot/efi
    root@kali:~# mount -o remount,rw /dev/mmcblk1p2 /mnt/boot/efi
    root@kali:~# mkdir /mnt/hostrun
    root@kali:~# mount --bind /run /mnt/hostrun
    root@kali:~# chroot /mnt
    root@kali:/# mkdir /run/lvm
    root@kali:/# mount --bind /hostrun/lvm /run/lvm
    root@kali:/# grub-install /dev/mmcblk1
    bash: grub-install: command not found


    don`t really get those spaces where does it goes and where doesn`t,but anyway i have tried again those comands with paying attention to spaces this is where i got.

  7. #7
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Show the output of fdisk -l?
    Last edited by _defalt; 2017-07-09 at 08:35.

  8. #8
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    The thread I linked above, that person had the same error but I asked him to run the process again. He then created a new bootable USB using latest version of rufus which worked.

    I don't know why this command is treated as command not found even though it's absolutely correct.

  9. #9
    Join Date
    2017-Jul
    Posts
    8
    root@kali:~# fdisk -l

    Disk /dev/mmcblk1: 58.3 GiB, 62545461248 bytes, 122159104 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E7C6A01A-1C07-4AAA-806A-424A63C76BAD

    Device Start End Sectors Size Type
    /dev/mmcblk1p1 2048 923647 921600 450M Windows recovery environment
    /dev/mmcblk1p2 923648 1128447 204800 100M EFI System
    /dev/mmcblk1p3 1128448 1161215 32768 16M Microsoft reserved
    /dev/mmcblk1p4 1161216 57307047 56145832 26.8G Microsoft basic data
    /dev/mmcblk1p5 57307136 118214655 60907520 29G Linux filesystem
    /dev/mmcblk1p6 118214656 122157055 3942400 1.9G Linux swap

    Disk /dev/sda: 14.4 GiB, 15502147584 bytes, 30277632 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0xbad74d2f

    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 64 5456223 5456160 2.6G 17 Hidden HPFS/NTFS
    /dev/sda2 5456224 5457631 1408 704K 1 FAT12
    /dev/sda3 5457920 17745919 12288000 5.9G c W95 FAT32 (LBA)


    Here is the output that i think is relevant i did not copy exactly all.Mmcblk1 is my SSD it`s 58gb it has Win10 and Kali and dev/sda (14gb) is the USB flash drive that i used to boot live Kali.I have used win32diskimager to write Kali to that usb.And i guess it is treated not found because universe don`t like it when something just `works` from the first.

  10. #10
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    That command is correct. Create a bootable USB using rufus and try again.

  11. #11
    Join Date
    2017-Jul
    Posts
    8
    I have just reinstalled the whole system using Rufus made USB,and run those commands,same thing happened grub command not found on grub-install

  12. #12
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    This means that error has nothing to do with how you create bootable USB.

    Go to /mnt/boot/efi and see uf EFI partition is successfully mounted or not.

    Try grub-install /dev/mmcblk1p
    Last edited by _defalt; 2017-07-10 at 06:45.

  13. #13
    Join Date
    2017-Jul
    Posts
    8
    Ok, how do i tell if it had mounted successfully or not?

  14. #14
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    File explorer>Other locations>Computer>/mnt
    This is just optional. I'm sure they are mounted otherwise you would have been met with errors. Don't look for it.

    I had never got this grub-install command not found error and I've used this command so many times. I searched for this error and it is very popular but the solutions were not convincing. You should also search for it and post that solution here which works for you.

    Anyway, I should ask that person in that thread how he got it to work.

    That's the nature of kali. That thing never works which is right.
    Last edited by _defalt; 2017-07-10 at 13:21.

  15. #15
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Use this: grub-install --boot-directory=/mnt/boot/efi /dev/mmcblk1
    Last edited by _defalt; 2017-07-10 at 12:12.

  16. #16
    Join Date
    2017-Jul
    Posts
    8
    File explorer>Other locations>Computer>/mnt did mount.
    grub-install /dev/mmcblk1p bash: grub-install: command not found
    grub-install /dev/mmcblk1 bash: grub-install: command not found
    grub-install /dev/mmcblk1p2 bash: grub-install: command not found
    grub-install /dev/mmcblk1p5 bash: grub-install: command not found
    /bin/grub-install /dev/mmcblk1 bash: /bin/grub-install: No such file or directory

    In /mnt/boot/efi there is mounted folder EFI it has Boot Microsoft ubuntu.Boot has bootia32.efi. Microsoft has Boot Recovery. Ubuntu has folder fw and fwupx64.efi. fw is empty.
    I`m no expert for Linux but it seems to me that command for installing grub is not effective no matter what i chose /dev/.... outcome is always the same error `command not found` if i could somehow get those wifi drivers into kali iso before burning it,maybe it would recognize them during install and have internet and install grub automatically...running out of ideas.

  17. #17
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by nikola992 View Post
    if i could somehow get those wifi drivers into kali iso before burning it,maybe it would recognize them during install and have internet and install grub automatically...running out of ideas.
    Having internet connection while installing kali has nothing to do with the installation of grub. It is done without using internet. So even if you had internet at that time the result still would have been the same. I've given you one more command. Use this in that place.

  18. #18
    Join Date
    2017-Jul
    Posts
    8
    THAT LAST COMMAND WORKED!!!! YESSSS

    no i`m just kidding,still the same,bash grub-install command not found.

  19. #19
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Code:
    mount /dev/mmcblk1p5 /mnt
    mount --bind /dev /mnt/dev
    mount --bind /proc /mnt/proc
    mount --bind /sys /mnt/sys
    mount --bind /usr/sbin /mnt/usr/sbin
    mkdir /mnt/boot/efi
    mount /dev/mmcblk1p2 /mnt/boot/efi
    mount -o remount,rw /dev/mmcblk1p2 /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/usr/sbin
    umount /mnt/boot/efi
    umount /mnt/hostrun
    umount /mnt/run/lvm
    umount /mnt
    REBOOT
    I added few more lines in this. Try this time.
    Last edited by _defalt; 2017-07-12 at 18:16.

  20. #20
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    I think cd /usr/sbin was unnecessary so I'm removing it from the code.

  21. #21
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    I created bootable USB of kali 2017.1 image and I've run those commands to re-install grub just to test them. It is working as intended without showing grub command not found error. Which kali-live version are you booting?
    Last edited by _defalt; 2017-07-18 at 14:59.

Similar Threads

  1. Kali Install Troubles
    By Hone in forum Installing Archive
    Replies: 0
    Last Post: 2021-03-21, 17:14
  2. Troubles booting Kali Linux
    By Booglie in forum Installing Archive
    Replies: 16
    Last Post: 2018-03-24, 21:29
  3. Chromebook Kali-Rolling Troubles
    By tengzy in forum ARM Archive
    Replies: 0
    Last Post: 2016-08-29, 11:50
  4. Help: Kali guest in VirtualBox (Arpspoof troubles)
    By WhiteRat in forum General Archive
    Replies: 0
    Last Post: 2015-09-30, 11:40

Posting Permissions

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