Kali Linux Linux Tutorials

[Fixed] Kali Linux Stuck At Black Screen On Boot

kali linux black screen on boot

Kali Linux is the best Linux distribution for penetration testing. It has almost every tool you need to test your system against hundreds of vulnerabilities.

Recently, I saw a few questions floating around the internet about Kali Linux not able to boot correctly. To run into the problem, I made a Kali Linux bootable USB and booted into live mode with the USB. The system stuck on black screen on boot.

Though I was able to select and boot into graphical installer.

kali linux boot menu
kali linux boot menu

I installed Kali Linux using graphical installer. Everthing went okay but the newly installed Kali won’t continue from black screen.

After some tests and tinkering with the system I found out that this is drivers related issue. The default graphics drivers do not support my system hardware.

I also noticed that the issue mostly occurs with the modern PCs. I installed kali on my old PC and it booted without any problems.

Install Graphics drivers

First of all, install the Kali Linux using graphical installer. After the installation has run successfully, reboot your computer, eject the USB drive and boot from the hard drive.

On the grub menu, select Kali Linux and press [Tab] or [e] to edit the grub settings. Now search for the line that starts with ‘linux‘ and ends with ‘quiet splash’ or ‘splash’.

Found the line? Good. Now add the following parameter to this line. Give a space and type this –

xxxx.modeset=0

Where xxxx = the name of your graphics card.

xxxx value based on your graphics card

nouveau or nvidia for Nvidia cards
radeon for amd/ati cards
i915 for intel based motherboards
r128 for every old ati rage 128 cards

For example, I have Nvidia, so I added the following parameter to the line.

nvidia.modeset=0

After this press CTRL+X to boot with the added settings. If it works for you, then you’re good. Unfortunately, this step did not work for me.

If the above step did not work for you, no problem. It has brought you to a screen with a bunch of lines of commands it executed to try to start your system. From here, press F3.

It’ll bring you to a terminal asking for your username. Now type the username as ‘root’ and enter the password you set while installing the distro.

We’ll now install the drivers manually. Do not worry, it’s simple. First of all, connect to the internet. If you use LAN cable to connect to the internet, then skip this step.

Connect to wifi network in Kali Linux command line

There are various command line tools to connect to a wifi network. For this tutorial, we can use iw. It is quick and easy to use.

Scan available wifi networks -
iw dev device_name scan

Connect to open wifi network -
iw dev device_name connect ssid

Connect to password protected wifi network -
iw dev device_name connect ssid ssid_password

Where 'ssid' & 'ssid_password' is the wifi name and password respectively.

device_name is the name of your wireless card set by the operating system. Use iwconfig to find your wifi card name.

For more information on how to connect to wifi using cli, visit this article on LAU.

Upgrade to a faster Kali Linux repository

If you did not configure repository during the Kali Linux installation process, then you won’t be able to install any package.

Visit the following link and get the fastest repository from your location.

Use apt to edit the apt-source file.

apt edit-sources

Execute the above command and select nano to edit sources file. Delete the Kali repository and add the new repository that you got from the above link.

deb http://kali.download/kali kali-rolling main non-free contrib

In the above line, replace the url with the url you got above.

Now update the system.

sudo apt update

Your system should now update pretty fast after adding a repo located near you.

Install graphics drivers

You are now ready to install graphics drivers. In this article, I will only show you to install drivers for Nvidia and AMD. If you are using any other graphics drivers, let me know in the comment section below and I will include that too.

Install Nvidia drivers in Kali Linux

sudo apt install nvidia-drivers-390

If you want to install 418 or 430, simply change it in the above command.

You can also follow a detailed article I have written covering Nvidia drivers installation in Linux.

For installing AMD drivers, please visit the official guide for installing AMD drivers in Linux.

Conclusion

And that’s it. After you have installed correct graphics drivers, your Kali Linux installation will boot into graphical mode without any problems.

If you have any problem with any step mentioned above, do not hesitate dropping it in the comment section below. I will reply ASAP.

Our sponsor - Deploy your server within 3 minutes


14 comments

Lasse E. Jensen October 29, 2019 at 12:13 am

I did everything you’ve described, before reading this guide.. Occasionally, I get a hang on my Kali booting. Only way forward is to hard reset the machine and try again..
There’s a flashing “_” in the corner, when it boots.. or when it doesn’t boot, the “_” freezes and the machine doesn’t proceed at all.

Reply
Sohail October 29, 2019 at 2:45 am

If you get the black screen on Kali bootup occasionally, then the issue might not be with graphics drivers. The issue I am trying to resolve in this article happens all the time, not occasionally. Because once Kali has installed and booted up correctly, it means there is no issue with the drivers.

Reply
Matt November 7, 2019 at 11:17 pm

Hello – would love your help. I’m stuck on a black screen. Have never been able to boot into live mode or any other mode. It runs through a long list of commands and if this helps the last one is:
—–[ end Kernal panic – not syncing: VFS: Unable to mount root fs on unkown-block(0,0) ]—-
If I press F3 it does not take me to a terminal. I am able to get into grub settings but no terminal. F3 does nothing for me. Any help would be greatly appreciated. I am using a brand new Microsoft Surface 3 laptop.

Reply
Sohail November 8, 2019 at 3:35 am

Hi Matt,

You can try this method to boot into command line –

> When you get the grub menu, press ‘e’ and it’ll open boot menu editor
> Now locate the line that starts wth ‘Linux’
> In that line, replace ‘ro’ with ‘rw’ and replace ‘quiet’ with ‘/bin/bash’

Once done, press ctrl + x to boot with the new settings. Now this should boot your system into terminal.

Another method –

If you have grub menu, select ‘Advanced options for Kali linux’ then boot into recovery mode. You’ll be asked to enter you root account credentials, go ahead and provide root password to boot into cli.

Let me know which one works for you.

Reply
dewin December 31, 2019 at 9:14 pm

Interesting After upgrade 2019.2 to 2019-4. Internal monitor gone. I installed fresh kali on another disk with new original xfce instead of gnome with fresh installation with nvidia 430 for RTX 2060. still internal monitor is not working but other two external hdmi and mini hdmi is working if Nvidia settled up as x11, grub etc… configuration.

when i remove and change from x11 nvidia to quiet splash, just internal is working.

why i’m installing x11 because of nvidia-settings is not opening if x11 is not settled up… Annoying….

Reply
Martin January 14, 2020 at 8:46 am

Thanks for the info on this article it seems like this is not working for me, as soon as a reach CLI the monitor goes to out of range and I am using a really old opteron, so I kinda know it will be difficult to get Kali running on it, any advise?

Reply
Kali January 20, 2020 at 3:42 pm

How to install drivers of intel hd 4000 graphics driver…please any help will be apriciated

Reply
3e00 January 31, 2020 at 8:16 pm

when I boot the machine it doesn’t send anything to the monitor, it continues to say there is no input, so I’m not sure how to fix this if I can’t even boot up the computer, after a minute of trying to boot it automatically shuts itself down, I can’t even get back to windows 10 because the priority is to boot kali, which it can’t do, even with the usb out it still tries to boot kali, I have a laptop as well that I can reinstall kali onto the usb with and mess with files, I just don’t know which files to change to get the result you did with the grub menu, just wondering if you had any suggestions on where to start.

Reply
Sohail January 31, 2020 at 11:50 pm

Hi,

First of all, make sure you installed kali Linux correctly. It seems like there occurred some kind of error during the installation that could cause this error. So you can try to install it again and see if you get it working or at least it stucks at the black screen on boot. Once you get a black screen, all you need to do is follow this article to fix it.

Secondly, you can get back to your previous OS just by changing boot drive properties from the bios settings(If you did not mess with the previous os files while you’re installing Kali). Let me know if it’s fixed.

Reply
Swarnav March 23, 2020 at 12:14 pm

do this..
when yor r on login screen type alt +ctrl+f3
then connect to internet
sudo apt-get update
sudo apt-get install slim
dpkg-reconfigure slim
then select slim
reboot
now you will get a different login screen
the type f1 and select gnome on xorg
then login
hope it will work for you…

Reply
rujin March 25, 2020 at 5:16 pm

sohail can you please help me with my black screen problem my kali linux does not boot i as you said any of the methods you mention going to boot menu editor did’nt work and my advance boot option didnt work so can you teach me to get rid of this problem

Reply
Sohail March 25, 2020 at 8:03 pm

Hi Rujin,

Did you get any error while trying any of the above method?

Reply
KSR March 29, 2020 at 4:49 pm

Still can’t get any solution for this. I’ll try to give solution if will get such.
So much suffering for that.
If some had any effective way pls let me know.

Reply
Phani Manohar Sai March 31, 2020 at 8:45 pm

I’m not able to configure the network step as it is showing blank screen
I’m using
Kali 2019.4 ISO and WiFi to connect to Internet
Please help me out

Reply

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More