-2

I want to boot my PC with the Kali persistence USB directly by skipping the Kali Linux default boot menu. The BIOS is set to start from USB. When I boot, the Kali boot menu is showing normally.

How do I skip the menu and boot directly into Kali?

My OS info:
Linux linux 4.14.0-kali3-amd64 #1 SMP Debian 4.14.12-2kali1 (2018-01-08) x86_64 GNU/Linux

closed as unclear what you're asking by Jeff Schaller, RalfFriedl, DarkHeart, Romeo Ninov, Archemar Sep 16 '18 at 7:05

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    It’s not entirely clear to me that this question is even about Kali.  IMHO, it would have been more appropriate to close it as “Unclear what you’re asking”, “Too broad” (lack of research), or “Off-topic” (belongs on Super User).  But, yeah, it’s true: anybody who has the skills and knowledge to be running Kali on a real machine shouldn’t be asking questions like this. – Scott Jun 5 '18 at 17:48
  • 1
    Phrases sometimes take on idiomatic meanings.  On Stack Exchange, “too broad” sometimes means ‘‘you haven’t tried hard enough to find an answer to this question simply by doing research and experimentation.’’ – Scott Jun 5 '18 at 18:16
  • 1
    “It’s very simple to understand” — no.  What’s on the computer now?  You call it a “windows pc” (which, BTW, should be capitalized: “Windows PC”) and yet you talk about a “Kali default meny” (by which I guess you mean “menu”).  Why are you getting a Kali menu from a Windows PC?  Is it multi-boot?  What operating systems?  Why is your question tagged [ubuntu]?  Or is Kali on the USB device?  (If not, what is?)  Exactly what menu are you getting?  What do your BIOS boot settings say?  … … … … … … … … …  Please do not respond in comments; edit your question to make it clearer and more complete. – Scott Jun 5 '18 at 18:16
  • 2
    Your original question was incomprehensible because you gave too little information and some of it was misleading (“windows pc”, but Windows is irrelevant since you're booting Linux). Your edited question was hard to understand because it contained the necessary information, but badly worded and hidden inside a lot of irrelevant informaion. When you ask a question, write it down, then blank your mind, and put yourself in the readers' mind. Ask yourself: Does the question have all the necessary information? Is it comprehensible? – Gilles Jun 5 '18 at 22:29
  • 1
    Possible duplicate of Why is Kali Linux so hard to set up? Why won't people help me? – DarkHeart Sep 16 '18 at 1:26
1

If you

  • make your Kali persistent live with the tool mkusb,
  • select 'usb-pack-efi' in the settings menu (please notice that you will boot 'as debian' with user:'user' and password:'live' and need sudo for system tasks),

assuming the persistent live drive is /dev/sdc,

Please check this for example with sudo lsblk -f or sudo parted -ls and modify if necessary, for example from /dev/sdc3 to /dev/sdb3 or /dev/sdd3 in the following mount command line

you can

  • mount the third partition on the USB drive

    sudo mkdir -p /mnt/sd3
    sudo mount -rw /dev/sdc3 /mnt/sd3
    
  • backup the original grub.cfg

    sudo cp /mnt/sd3/boot/grub/grub.cfg /mnt/sd3/boot/grub/grub.cfg.orig
    
  • and edit the first line in grub.cfg

    sudo nano /mnt/sd3/boot/grub/grub.cfg
    

    to change it from set timeout=10 to set timeout=0

This will make Kali skip the grub menu and go directly to the desktop environment.


I tested that it works with the iso file kali-linux-light-2017.3-amd64.iso

  • It isn't recommended to edit grub.cfg directly as the consequences of mistakes can be difficult to recover unless you know what you are doing. Better to edit /etc/default/grub then update-grub. Also i doesn't 'skip' anything, just makes it zero length as far as the user is concerned. – bu5hman Jun 8 '18 at 14:22
  • @bu5hman, This is a persistent live system (not a standard installed system). This is a special tweak. Your advice is generally good but I think in this case it is a good idea to edit grub.cfg. In order to make things safer, I will edit my answer and recommend a backup copy of the original grub.cfg. – sudodus Jun 8 '18 at 14:30
  • I stand corrected! And in the end, a live boot of Kali with no mission critical data on a USB has no real value. – bu5hman Jun 8 '18 at 14:34
  • 1
    I am unable to find grub.cfg even I located but not exists. Linux linux 4.14.0-kali3-amd64 #1 SMP Debian 4.14.12-2kali1 (2018-01-08) x86_64 GNU/Linux – Raakh Jun 13 '18 at 15:22
  • @Raakh, Did you create the persistent live drive with mkusb? In that case you should find it where I describe it in the answer. Otherwise, with another tool to create a persistent live drive, you may find it somewhere else or not at all, if there is only a syslinux boot system. – sudodus Jun 13 '18 at 15:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.