I was watching a movie Saturday night. When it finished, I went to log off my ProBook, but it said there was a task running and I needed to input my password, which I did. It has never done this before. When I went to use it yesterday, it posted, but after that I just get a blank screen, but no it can't find a boot device. I presume it's trying to boot, but is somehow corrupted. I got to the recovery mode by holding down the shift key during boot, but am not sure what to do next. Is there some way I can fix this so I don't have to re-install? Thanks for any help.
-
-
ALLurGroceries Vegan Vermin Super Moderator
Hrm, are you booting via EFI or regular MBR? If it's EFI, you may just need to fiddle with the BIOS settings and re-add an entry for your linuxes.
If it's not that.. What distro were you running? The next step would be to boot a rescue image via USB and restore your bootloader. Different distros have different ways of doing it, but if you're going in manual with a crowbar you'd do something like:
Boot a live image and open a root terminal (or regular terminal and sudo su).
Mount your root partition at /mnt (where sdX is the partition such as /dev/sda1, etc):
Code:mount /dev/sdX /mnt
Code:mount /dev/sdX /mnt/boot
Code:mount /dev/sdX /mnt/boot/efi
Code:for x in proc sys dev; do mount -o bind /$x /mnt/$x; done
Code:chroot /mnt
Code:grub-install /dev/sda
If this step fails and you can't get past it with that advice, just post the error message.
Update grub:
Code:update-grub
katalin_2003, alexhawker and jclausius like this. -
ALLurGroceries Vegan Vermin Super Moderator
I forgot to mention, there's also another way to do this to just get straight to your existing installation, and then reinstall grub from there. Boot anything that can get you to a grub> prompt (most live images have a key you can hit to get to a grub boot prompt) and then do something like this:
Code:insmod ext2 set root='(hd0,1)' linux /vmlinuz-whatever-hit-tab-to-autocomplete root=/dev/sdX ro initrd /initrd.img-whatever-hit-tab-to-autocomplete boot
After you boot just do grub-install /sdX and update-grub. If those fail the same caveats apply as above, post the error message(s) and take it from there.Vasudev and alexhawker like this. -
Thanks for the reply. I'm just running Ubuntu 20.04, which I thought would be a good choice as it's a LTS version. I've had the current iteration on there for at least three months. I did see where people were having the blank screen, but that was upon installation, not after months of trouble free use. Having to use my password to shut down was very odd. I'll take a look at this over the weekend. I was thinking about tossing Windows 10 on there to see if I can find a version of that I like so I can upgrade my main desktop to Windows 10, then go back to it later. Thanks again.
-
ALLurGroceries Vegan Vermin Super Moderator
Wait, are you failing to boot, or do you have a blank screen after booting?
If you're seriously going to just install windoze I won't waste my time trying to help further. What a troll -
No it posts, so I can go into the BIOS and make changes, but after that when the Ubuntu logo usually comes on screen is when I get the blank screen. I did install Win10 today, but hopefully that'll be short and sweet so I can come back.
-
Most 20.04 have this issue. I think it will be fixed in July/August Point release.jclausius, Mr. Fox, ALLurGroceries and 1 other person like this. -
ALLurGroceries Vegan Vermin Super Moderator
My guess is that you got prompted for a system update and then something went awry on a reboot. What we would need to figure out is if the kernel is actually booting, or if you're stuck at the bootloader. @Vasudev I didn't even consider secure boot part of the equation! That's a good thing to check as well.
I haven't booted 20.04 yet, but there should be a key combo you can use to escape the boot splash, I think maybe ESC? That would at least tell you that your kernel is starting to boot and give some possible error messages. -
-
Last edited: Jul 13, 2020
-
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"
The line to remove the splash is the word splash in the DEFAULT line, quiet just lets the boot processes load in the background w/o cluttering the screen. If anything hangs it appears on screen still.Vasudev likes this. -
You can tweak further by using systemd-analyze blame. Usual suspects for longer boot time include network.wait.services and apt.service which can be safely disabled at startup and switch to on-demand start. You can also do the same if you're using postgres, mysqld, mariadb, redis etc..
Blank Screen
Discussion in 'Linux Compatibility and Software' started by ZaZ, Jun 29, 2020.