Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: How do you boot Kali Linux from a flash drive on a UEFI system

  1. #21
    Senior Member
    Join Date
    Oct 2016
    Location
    Please see my biography how you can contact me
    Posts
    367
    Quote Originally Posted by Chunkingz View Post
    i was able to scale the following warning:
    WARNING: Failed to connect to lvmetad. Falling back to device scanning.

    by first disabling lvmetad and restarting it. b4 updating grub could work.


    /etc/init.d/lvm2 stop

    gedit /etc/lvm/lvm.conf

    and then set use_lvmetad = 0
    after that use
    /etc/init.d/lvm start
    I've a question. Did you stop lvm2 of kali live or did you make these changes in mounted /dev/sdb6 because it doesn't matter if you forget to start lvm2 of kali live, after reboot everything is reset but if you make these changes in /dev/sdb5/etc/lvm/lvm.conf it will be permanent. I'm assuming you must have gone to kali live filesystem.
    Last edited by _defalt; 2017-04-10 at 06:58 PM.

  2. #22
    Member
    Join Date
    Jan 2016
    Posts
    51
    Quote Originally Posted by _defalt View Post
    It's because grub is already there in your EFI boot partition though it must be corrupted or not configured to boot kali. You can reinstall grub using these commands.

    You can re-install grub by booting into kali live USB. Here is the list of commands you need to enter-

    mount /dev/sda* /mnt
    mount --bind /dev /mnt/dev
    mount --bind /proc /mnt/proc
    mount --bind /sys /mnt/sys
    mount /dev/sdb2 /mnt/boot/efi (why did you skip this command?)
    mount -o remount,rw /dev/sda2 /mnt/boot/efi
    mkdir /mnt/hostrun (skip this command)
    mount --bind /run /mnt/hostrun
    chroot /mnt
    mount --bind /hostrun/lvm /run/lvm
    grub-install /dev/sdb (/dev/sdb is the name of your hard drive)
    update-grub
    exit
    umount /mnt/dev
    umount /mnt/proc
    umount /mnt/sys
    umount /mnt/boot/efi
    umount /mnt
    at the the grub-install /dev/sdb command.
    i still get an error view the screenshot.
    ps:ignore the lvm stop command.

    screenshot: http://imgur.com/a/nojtg
    Last edited by Chunkingz; 2017-04-10 at 06:58 PM.

  3. #23
    Member
    Join Date
    Jan 2016
    Posts
    51
    lol...i made the changes in the chroot, therefore its on the already installed kali on sdb6

  4. #24
    Senior Member
    Join Date
    Oct 2016
    Location
    Please see my biography how you can contact me
    Posts
    367
    Quote Originally Posted by Chunkingz View Post
    lol...i made the changes in the chroot, therefore its on the already installed kali on sdb6
    Can you exactly tell when do you make these changes to lvm.conf? After which command, is it after entering chroot /mnt? Just an off-topic question, i'm curious about this solution.

    Now as you are saying that grub is giving you an error Cannot find EFI directory. Reboot kali live and try again.

  5. #25
    Member
    Join Date
    Jan 2016
    Posts
    51
    Quote Originally Posted by _defalt View Post
    Can you exactly tell when do you make these changes to lvm.conf? After which command, is it after entering chroot /mnt? Just an off-topic question, i'm curious about this solution.
    not really after chroot /mnt, i had typed a couple of commands, b4 that.

    Quote Originally Posted by _defalt View Post
    Now as you are saying that grub is giving you an error Cannot find EFI directory. Reboot kali live and try again.
    I've just done that, no success, at grub-install /dev/sda
    i get the message.

    Installing for x86_64-efi platform.
    Could not prepare Boot variable: No such file or directory
    grub-install: error: efibootmgr failed to register the boot entry: Input/output error.

  6. #26
    Senior Member
    Join Date
    Oct 2016
    Location
    Please see my biography how you can contact me
    Posts
    367
    Quote Originally Posted by Chunkingz View Post
    at grub-install /dev/sda
    i get the message.

    Installing for x86_64-efi platform.
    Could not prepare Boot variable: No such file or directory
    grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
    no luck with grub-install /dev/sdb?

    I've one more solution. Boot into kali live and mount your EFI partition using mount /dev/sdb2 /mnt/boot/efi. Then remount it for read write access using mount -o remount,rw /dev/sda2 /mnt/boot/efi. Go to /mnt/boot/efi/EFI and delete the folder of kali. Do not touch any other thing. Take the backup of EFI folder before entering into it and erasing kali folder. Then run those list of commands again after reboot.
    Last edited by _defalt; 2017-04-10 at 08:45 PM.

Posting Permissions

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