4

I have an ASUS laptop with Ubuntu dual booted with Windows 10 on separate partitions. The other day after booting into the Windows partition, I found that when I try to boot back to the Ubuntu partition I only get a black screen and can not boot into Ubuntu.

I posted the initial problem here: https://askubuntu.com/questions/891036/trouble-booting-into-dual-booted-ubunutu-after-running-windows and found a possible solution to try using boot-repair.

Using boot repair, I get the message that the boot-repair was successful, however the black screen problem still persists when trying to boot into Ubuntu from GRUB.

Boot repair gives me the following URL for troubleshooting in case the problem persists (which it does): http://paste.ubuntu.com/24154080/

I would like some help going through the above URL and troubleshooting to solve the problem of not being able to boot into Ubuntu.

Zanna
  • 70,465
derek
  • 41

1 Answers1

2

This is not the answer, but it lets me show you a picture of what should work when booting from a Live USB and reinstalling Grub.

The nicely laid out instructions from 'How to Ubuntu' on how to repair Grub with a live USB (http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd) are unfortunately incorrect if using an EFI system. Adding one extra line lets it work, but it took a lot of chasing down other possibilities before realising this.

As an extra bonus, it also didn't actually work for you even with the line added :(

Here's my Live USB grub fixing that did work:

How To Ubuntu Grub Fix with /mnt/boot/efi line added

In this case, the Ubuntu installation was on sda7 (for you it was sda5) and the EFI partition was on sda2 (for you it was sda1). Everything else would be the same.

(incidentally, the 'grub-probe: error ' is for sdb1 which is the Live USB so can be ignored)

Why it's throwing up errors for you, I unfortunately don't know. The main reason for suggesting this was just a quick check to make sure that boot-repair had done it's job correctly and then we could look at other reasons for why you were getting the black screen.

I've used the same instructions before and they worked fine, but it must have been for a machine without UEFI.

I assumed it wasn't working firstly because the Live USB wasn't in UEFI mode, so might not have permission to write to the EFI partition, which in turn meant finding out that the Asus 'One Time Boot Menu' was accessed by pressing ESC on bootup and that they don't have Legacy Boot Options and UEFI Boot Options listed separately (which is what I've seen on a Dell laptop & an HP laptop) and it seems you need to choose 'Legacy USB support' to be disabled to ensure that it's booting in UEFI mode for your laptop (and I assume for other Asus machines as well).

Unfortunately we ended up down a rabbit hole of other possibilities before I realised the How To Ubuntu instructions are not taking an EFI boot partition into account.

If the now adjusted instructions do work, the main thing it helps with is to confirm that Grub is installed correctly on your machine.

It's a bit disconcerting that it's throwing up errors when trying to install Grub, but it might be best to just trust that boot-repair would give you errors if it hadn't been able to do it's job.

So use boot-repair as you did before, assume that Grub is fine and either troubleshoot along the lines of brndn2k's suggestion of looking here: My computer boots to a black screen, what options do I have to fix it? or try reinstalling Ubuntu again.

I've distracted you enough with this line of enquiry :)

Bon chance!

pHeLiOn
  • 1,778
  • Awesome. I managed to get the ubuntu option back to GRUB (mentioned that i lost it earlier) by using boot-repair again. Following these directions I actually able to run "grub-install /dev/sda" and "update-grub" without any errors!! So we seem to be on the right track now. Only one problem is at the end when un-mounting everything (according to the help ubuntu page) on the very last command "sudo umount /mnt", i get the error: "umount: /mnt: target is busy". I think if we can fix this i should be all set. I don't want to just exit and reboot anyway becasue if i remember correctly [CONTINUE ->] – derek Mar 11 '17 at 13:29
  • [CONTINUED] thats how i lost the ubuntu boot option at GRUB before – derek Mar 11 '17 at 13:30
  • Ok. I just read online that running "sudo fuser -vm /mnt" will give a list of which processes are running on /mnt so that i can kill them and run that final "sudo umount /mnt" command. There is only one, for /mnt i have "USER: root" "PID: kernel" "ACCESS: mount" "COMMAND: /mnt". It doesn't seem correct that i should have to kill the kernel to umnount /mnt. – derek Mar 11 '17 at 15:25
  • I am able to consistently run "grub-install" and "update-grub" successfully and without any errors using the method pictured above. After this, when unmounting everything using the directions in this link: http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd when i get to the last command "sudo umount /mnt" the computer is unable to and says "target is busy". If i reboot without this command then i still get the black screen problem. I have also tried rebooting without using any of the umount commands (after update-grub successfully completes) [CONTINUE -->] – derek Mar 11 '17 at 16:29
  • [CONTINUED -->] and this also leaves me with the black screen problem when booting ubuntu. Since grub-install and update-grub now succesfully work, I assume that if i can get this last "sudo umount /mnt" command to work then boot problem would be fixed – derek Mar 11 '17 at 16:30
  • By the way, i run the umount commands after update-grub in this order: "sudo umount /mnt/sys", "sudo umount /mnt/proc", "sudo umount /mnt/dev/pts", "sudo umount /mnt/dev", and finally "sudo umount /mnt". This last one (sudo umount /mnt) is the only which doesn't work. The computer says "umount: /mnt: target is busy" – derek Mar 11 '17 at 16:36
  • First of all - Glad it's working without errors!! The umount is actually not that important. I say this because the first time I managed to get it working I was so glad I'd finally realised what was amiss that I just got as far as 'exit' and forgot all about the umount bits. Using 'umount' is the correct way to do it and is best practice, but can be left out, you can close the terminal and shutdown the machine without causing any real problems. I have subsequently left out umount a number of times with no consequences! Not the best way to do it but does not cause problems. – pHeLiOn Mar 11 '17 at 18:47
  • Huh. Well I can run grub-install and update-grub without errors but ubuntu still does not boot properly, i still get the black screen problem. – derek Mar 11 '17 at 18:50
  • The black screen problem doesn't seem to be able to be fixed by reinstalling Grub. I'm impressed with your tenacity, but please follow the 'Boot to a Black Screen Problem' thread or reinstall. Something else seems to be wrong with your installation. – pHeLiOn Mar 11 '17 at 18:52
  • Are you referring to this thread: http://askubuntu.com/questions/162075/my-computer-boots-to-a-black-screen-what-options-do-i-have-to-fix-it/162087#162087 ? If so, that's where i began troubleshooting and that's what recommended using boot-repair. If so, the only other thing on that thread that i think could apply is the section about NVIDA GPUs. I have an NVIDIA GPU but i only have the drivers for it installed on the windows partition. I never installed any extra graphics drivers in ubuntu. Could this be the problem? If so, i think my next course of action would be [CONTINUE -->] – derek Mar 11 '17 at 19:00
  • [CONTINUED -->] to follow the directions on the thread for NVIDIA drivers – derek Mar 11 '17 at 19:00
  • Also, could a reinstall fix the problem if is with the GPU drivers? – derek Mar 11 '17 at 19:02
  • This isn't the issue but sudo umount /mnt is hanging because the umount part is just unmounting all the bits you mounted to begin with. You haven't unmounted the extra line that you added - 'sudo mount /dev/sda1 /mnt/boot/efi' - so before 'sudo umount /mnt' you'd want to to sudo umount /mnt/boot/efi – pHeLiOn Mar 11 '17 at 19:04
  • oh. I see. That makes sense – derek Mar 11 '17 at 19:07
  • Ah. NVIDIA. All my machines are Intel Graphics based. Sorry, got no experience with Graphical issues but from what you said with the screen being black then grey with a cursor, it is likely that an update has caused a graphical issue. A reinstall is quicker to test but if you prefer, you can follow threads and assume a NVIDIA driver is somewhere at the heart of the issue. I'm away from my computers for a good couple of days now so won't be answering further - I recommend trying a reinstall to get you back where you were. Any possible future black screen issues, follow NVIDIA related enquiry. – pHeLiOn Mar 11 '17 at 19:14
  • Cool. Thanks. I guess I'll try to reinstall sometime in the next few days. – derek Mar 11 '17 at 19:17