Ubuntu Linux – Black screen and frozen system after upgrade and/or install
After upgrading a computer from Ubuntu 16.04 LTS to Ubuntu 18.04 LTS or Ubuntu 18.04 LTS to Ubuntu 20.04 LTS, during boot the screen goes blank (turns black), all HD disk activity halts, and the system becomes frozen. This event can also occur on a fresh installation or when updates are installed.
This is due to a video mode issue that causes the system to halt or freeze. It’s much like the issue I described here on a Fedora Linux system.
To get the system to boot:
- After turning on your PC, hold the right SHIFT key to get to the GRUB bootloader if your computer uses a BIOS. If your computer uses EFI or UEFI, continuously tap the “ESC” (escape) key after turning on your PC.
- Once GRUB is open, press the “e” key to edit the first highlighted entry “Ubuntu”.
- Move your cursor down to the line that starts with “linux”, and use the right arrow key to find the section with the words “ro quiet splash”.
- Add “nomodeset” after these words.
- Feel free to remove “quiet” and “splash” for more verbosity to troubleshoot the boot process.
- Press “CTRL + X” or “F10” to boot.
- The system should now boot.
To permanently resolve the issue:
- Once the system has booted using the temporary fix, log in.
- Open a terminal window (Applications -> Terminal, or press the “Start” button and type terminal).
- Either “su” in to root, or use “sudo” to open your favorite text editor and edit the file “/etc/default/grub” (I use nano which can be install by running “apt install nano”):
- Locate the line with the variable “GRUB_CMDLINE_LINUX_DEFAULT”, and add “nomodeset” to the variables. Feel free to remove “splash” and “quiet” if you’d like text boot. Here’s an example of my line after editing (yours will look different):
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
- Save the file and exit the text editor (CTRL+X to quit, the press “y” and enter to save).
- At the bash prompt, execute the following command to regenerate the grub.conf file on the /boot partition from your new default file:
- Restart your system, it should now boot!
Please Note: Always make sure you have a full system backup before modifying any system files!
When i push the right shift key nothing happens
my computer stays on a black screen when i restart for an update
Worked for me after upgrade to Xubuntu 19.10. The only difference is Esc key to enter grub menu.
Thanks a lot, it solves my blackscreen issue after booting !
(HP Probook 4740s + Unbuntu 19.10)
Worked like an charm!!!!
Thanks for sharing!!! Literally two days and it solved.
Thanks a lot, worked for me (Samsung SF 510)
Had this happen to me between package linux-image-5.3.0-28-generic (5.3.0-28.30~18.04.1) and linux-image-5.3.0-40-generic (5.3.0-40.32.~18.04.1).
The machine is a HP laptop model 17-ca1006no with Ryzen 3 CPU.
$ uname -a
Linux hp-laptop-17 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 23
model : 24
model name : AMD Ryzen 3 3200U with Radeon Vega Mobile Gfx
$ sudo lspci -v
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c4) (prog-if 00 [VGA controller])
Subsystem: Hewlett-Packard Company Device 85b3
Capabilities:  Latency Tolerance Reporting
Kernel modules: amdgpu
With the new kernel the system halts, with black screen and not responding to anything. With the older kernel, it works as it should with full HDMI resolution.
With the nomodeset, the new kernel boots, but only with the 1027×768 resolution.
So my solution will be to have the old kernel and see if next will fix this, and look for bug reports at Ubuntu.com
During install of16.04, the system encountered an error, supposedly from the original disk write. Ubuntu tried to send error message, no go. Tried another disk, nothing. Machine is Toshiba Satelite A15 AMD Turion.
Bios splash appears then nothing but a nonresponsive flashing cursor.
Tried Windows rescue, nothing.
After dual booting Ubuntu into system, I shutdown the system after a day and on restart, the goes into black screen. So I added nomodeset after quite splash in the grub and pressed ctrl+X, but now the system falls into PCIe bus error. What do I do? I even tried by removing quite splash and added nomod set but still it goes into PCIe bus error. There were solutions on internet to add pci=nomsi or noaer but then system goes into clearing orphaned inode . So I completely reinstalled the Ubuntu but still the same thing happens again black screen, PCIe bus error, etc.. can anybody understand my problem and give me solution to this mess? I have been trying the solutions all over the internet since a week. But this doesn’t seem to get resolved. Please help!
This happened to me after upgrading from Ubuntu 18.04 LTS to 20.04 LTS. I’m now able to at least boot into the operating system. Thanks!!!
I tried with adding nomodeset and removed quiet and splash. But after pressing F10, system not booting
It sounds like your issue is different from the issue in the blog post. I’d recommend troubleshooting the issue to attempt to find out what’s going on so that you can try to find a solution once the issue is identified.
Ubuntu 20.04 fresh install black screen and upgrade black screen your article helps get my computer back up.
I have a GeForce GTX 550 TI from the video and that seemed to be the problem but how do I get my graphics back or do I wait.
At least I’m inside everything’s fine, but my graphics suck should I upgrade to the driver 4:40 or just leave it alone?
Thanks a bunch.
Thanks a lot.
I’ve not performed both sequences, only the temporary fix.
That’s because I’ve knowed that the NVIDIA grafic is the reason for the black screen after login, I’ve installed the propriete driver from NVIDIA after the successful login.
After installation and rebooting the system (then without the modification “nomodeset”), after the login, the desktop has appeared as it shall.
Since it isn’t described 100 %: Before and after “nomodeset” there shall be a blank or rather space to the other words (no idea if it’s really required, but initially I was unsure if or if not).
For your information:
My support request with Dell has gone over weeks. I’ve asked if there are special drivers necessary. Also I’ve asked for a Dell specific image for installation, but for both I’ve got a “NO”.
With help of a forum I found out that NVIDIA is the reason. And once again I’ve asked the Dell support how to solve this. After many “Try this link”, “do that”, they’ve sent me the link to your instructions. Seams that they are not able to generate such a description, or rather to solve this problem in total with Canonical or NVIDIA, for all the other users which are having this problem.
Well done – thanks.
This is working fine for me and solved my problem. Thank you very much
Working fine. Thanks a lot
Have the same problem, followed instructions by adding nomodeset but the same black screen again after F10. What to do please?
I’m not sure what you’re referring to with “F10” but if the fix isn’t working, your issue may be with something else and unrelated.
Thanx alot dude. This resolved my issue.
-HP PoBook 4520s
-upgraded Ubuntu 18 to 20
I have done what you have said for temporary fix it displayed message
EFI stub: UEFI Secure Boot is enabled
And it got stuck there
It appears you’re entering in to the UEFI boot. You need to get in to the GRUB bootloader.
after I pressed F10, it shows command line
[ 0.7236331] —[ end kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0) } —-
kindly explain to me what to do next. thanks.
It appears that your issue is unrelated to the issue covered in this post. In your case, it sounds like the Linux kernel and initial ramdisk are having trouble mounting your root fs (root filesystem).
Upgrading 18.04 to 20.04. It has been running for 48 hours and is still running. Is this normal? Was able to find only one internet comment that noted “hours” to upgrade not days. Is there a function that will tell progress and estimated time to complete?
I don’t believe it’s normal. On modern equipment it should take 30 minutes to 2 hours. Older equipment may take 2 to 6 hours.
If you’re doing the graphical update method, I’m not sure if there’s a way to find out the progress.
Yes, thank you very much sir, this fixed my freezing desktop problem on Ubuntu 20
You deserve a medal!
Great, the above mentioned steps both temporary and permanent. Thank you Stephen.
Following are the model details of my HP Laptop:
Model: HP ZBook 15 G6 Mobile Workstation
Intel® Core™ i7-9850H Processor
16 GB DDR4
1 TB PCIe NVMe SSD
Using ubuntu 18,4 blank screen still persist after entering nomodeset ..I’m using amd processor desktop
You rock Stephen!! I have been struggling with it and had reinstalled it 3-4 times till I thought to look for a solution online. And Bingo, this is the first solution I found and worked like a charm.
Glad it helped Ajay!
Thanks a lot, it solve my black screen issue
I am getting error writing /etc/default/grub: permission denied while saving in terminal. how can i save it?
After following all steps black screen changed to purple and aero sign started to appear but no log in option appeared. I waited for half hour nothing changed.
You need to modify this file as root. Either using “su” or “sudo”.
It sounds like you’re having a different issue than discussed in this post. You’re going to have to research your issue and find out what’s causing it.
Thanks , was thinking to uninstall Lubuntu because of this display issue !!
Thank you so much! I’ve been stuck on this problem for a solid week!. That’s 8 days of hair pulling emotional agony. I was honestly loosing hope. LOL. Thanks man. You ROCK!
My LUbuntu 18.04 VM goes into frozen state if no activity is done for some time..subsequent to this only power off is the only option left and have to retart the machine
I think your issue is different than the one covered in this post.
Good advice – this got me past the video driver problem but left me at CLI only. No desktop environment.
Now I gotta figure out how to get GNOME to start.
Sorry Stephen, I wasn’t clear. I can make gnome run (startx). htat isn’t my problem.
gdm is misbehaving.
It has always been in rc.d but post the upgrade gdm in rc.d isn’t doing the right thing.
I’m thinking something in the new Ubuntu version is overriding it
I’ve done temporary fix but after boot desktop opened and the resolution has changed. How to get the resolution back to normal? Also instructions aren’t clear for the permanent fix. What file to I have to open to edit?
Thank you for the tip. I had this issue after upgrading Ubuntu from 18x to 20x and tried your fix but unfortunately it didn’t fix my Ubuntu running on VMware Workstation 15x. I am posting this in case it might help someone else. While Ubuntu is powered off > go to VMware Workstation > Virtual Machine Settings > Display > 3D graphics > uncheck “Accelerate 3D graphics” > OK > boot Ubuntu.
Thank you so so so much
I have a Dell XPS 15 and had the black screen problem. Your nomodeset solution fixed that but I am now operating at lower resolution. I was wondering if it was significant that when I start up using the Ubuntu 20 USB boot disk and use the try option I am in higher resolution all the way.
I have my pc in which ubuntu 18.04 is installed and when i upgrade my ubuntu to 20.something version then it stuck on black screen . When i close my pc and again open it then it shows ubuntu 18.04 on the black screen. when I press “esc” key then it shows-> “A start job is running for hold until boot process finishes up (20min 40 s / no limit) ”
and this is showing from past 20 minutes and nothing will happen . Will anyone please help me how I am successfully able to open. I am stuck and by this I am very tensed.
Thank you, it works on UEFI
I have upgraded ubuntu from 18 to 20 and having the same problem that after boot the system it is showing a black screen, unable to see the login screen just get displayed ubuntu logo at the bottom of the screen and that set a black screen.
I have gone through your above answer and have done all these steps, and also have upgraded the grub configuration file. Still having the same problem.
Can you please suggest me anything different for it. I’m unable to detect the root cause for this.
I did these steps. No luck. However, I noticed that my computer is NOT hung. It merely shows a blank screen. If I carefully type a password, I can log in and the screen works perfectly. So it appears that whatever displays the login program is failing to display the login screens contents properly.
Thank you. While the machine was in the blank screen state, I was able to ssh in from another machine. I made the edit to “grub” you suggested, update-grub, and reboot, and the screen stays.
Low resolution, but good enough to get back to work.
Worked for me in Lubuntu 20.04. Thank you.
Dear sir, I upgraded from ubuntu 16 to ubuntu 18, I had a black screen. So followed the steps indicated by adding nomodeset to the grub so it looks like: quiet splash $vt_handoff.. but the problem persists
Thanks in advance
this was brilliant, thx. you’re the only one who mentioned the ESC key (which is what i needed). though the first time i kept tapping and ran right past the grub menu.
Glad I was able to help!
Hi, mine says “ro quiet splash nomodeset” already and when I try to change it to just nomodeset or to just “no splash” it remains in the black screen once I press crtl x. Can you help? Thanks
It sounds like you’re having a different issue. I’d recommend looking at your logs to find out what’s causing it.
After doing this, it throughs revalidation error, I installed ubuntu thrice but I can’t resolve this problem.
I always end up on a blank screen when I first boot the pc and then when I restart it, it works fine but I have to choose the ubuntu option from the black grub menu.
is there any solution for resolving this issue
I think your issue is unrelated to this post. You might have to google the symptoms to find a resolution. Sorry the post couldn’t help!
Second stage doesn’t work for me.
2. Once GRUB is open, press the “e” key to edit the first highlighted entry “Ubuntu”.
I installed Ubuntu 20.04 to my new laptop. Installation went well, until I press “restart/reboot”. I got into black screen.
CPU: intel core i7-10875H CPU 2.30GHz
GPU: nvidia GeForce RTX 2060 Bios Version: EFCN38WW
GNU Grub version: 2.04
What should I do ?
Sounds like a different issue. I’ve heard of issues with laptops with hybrid graphics. Someone mentioned changing a graphics setting in the BIOS fixed their issue.
I’d recommend checking that.
Thanks a lot.
Hi, i got this black screen issue with my server setup (ubuntu 16.04). I managed to get in to the GRUB but not sure how should i proceed. I don’t understand 2nd step and how to get to editing part. I can type in commands, so i expect that i need to type in some command. Running GNU GRUB version 2.02^beta2-36ubuntu3.28
If you’re talking about step 2 for the permanent fix, and you don’t have a GUI, you can use nano or vi as a text editor.
After following the temporary fix section my ubuntu didn’t boot but a command promped did appeared.
Then I followed the permanent fix instructions and the system booted perfectly!
Thank you so much for this guid! I thaught I lost my ubuntu system for good because other guids did not help.
Thanks for the article. I could not edit the GRUB (Step2). The ‘e’ option is not working for me. My laptop is HP 14dg1039wm. ‘
Once GRUB is open, press the “e” key to edit the first highlighted entry “Ubuntu”. Can you please help.
Thanks in advance.
Thanks a lot it solved my issue with permanent fix! [using hp laptop after upgrade to ubuntu 20 i faced this issue]
after installing kodi my ubuntu 21.04 has black and white i access everything but black and white
It worked! Thank you so much 🙂
I directly followed the permanent fix (Terminal mode + modifying the grub file with vi)
Had this problem while installing linux-oem-osp1 to solve my “No Wi-Fi adapter found” problem on Ubuntu 18.04.
had problem with my acer swift 3 , followed these steps and boom, now its working flawlessly
Thanks for the tip, this worked for me on following combination:
– OS: 20.04 LTS
– PC: HP PAVILION
Stephen, thank you soooooo much! I’ve been going round and round with getting ubuntu installed on several different computers, and running into tons of issues. I settled for the HP Pavilion gaming laptop and ran into this blank cursor screen issue on start up. Your fix worked flawlessly! Thanks again, you rock!!
Really worked, I was stuck and tensed as I was working on the lab computer. And live chat with Stephen Wagner eased the process
Thank a lot, following your instructions, I fixed my eeepc Lubuntu boot.
I need to help.. ii just install ubuntu and its frozen.
I had the same issue with release 20.04 LTS black screen could be gotten past with temporary fix listed here but would revert to black screen after login. Running AMD RX 480 video card and AMD 3950x processor. Found that the issue was using a DVI cable to my older monitor. Used an HDMI cable out of the video card to a HDMI to DVI adapter for the monitor and the issue was resolved on boot and after login with no other changes. Hopefully this is helpful for someone else as I did not have issues with DVI out in bios screens or with Windows 10.
I was trying to update Ubuntu 16.04 to Ubuntu 18.04, when I encounter the issue. The temporary fix worked for me. However, after that, it is not allowing me to login by rejecting my correct password. What should I do?
Still a lot of frustration.
Thank you so much !
I have been searching for answers for 2 days !