Results 1 to 26 of 26

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    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 18:58.

  2. #2
    lol...i made the changes in the chroot, therefore its on the already installed kali on sdb6

  3. #3
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    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.

  4. #4
    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.

  5. #5
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    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 20:45.

Similar Threads

  1. Corrupting Flash Drive WIth linux Kali
    By Aggelos in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-10-21, 10:30
  2. Can't get kali linux to boot from a USB flash drive on any notbooks
    By vuther316 in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2016-04-15, 08:23

Posting Permissions

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