Interrupted upgrade can't log on

Asked by John Wilson

When upgrading to Bionic Beaver the upgrade seemed to stall when I was told that some configuration file existed and did I want to keep the old one, compare the two files, compare the two files side by side or use a new file?
I compared the files side by side and then tried to install a new one.
Somewhere on those steps the upgrade stalled.
After waiting 2 hours the screen was still frozen and I turned off the laptop.
When I turned on again I saw the Grub screen and I could load up Ubuntu and log on but my user name and password was as far as I could go.
Tried recovery mode to repair Grub and to repair broken packages to no effect.
Now I seem to be into recovering Windows! which is on dev/SDA1.
How can I finish my upgrade and preserve my wife's data?
Thanks for any help

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

What exactly is happening when you boot and try to log on?

Revision history for this message
John Wilson (jwilsondmartin) said :
#2

When I try and log on I seem to be in the windows partition.
I can log onto Windows but no trace of the Linux partition.
I can go down to the command prompt but it is in windows x:\windows\system32>
Do I need to do a clean install?

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Do you see a grub menu when booting?
If yes, what choices does it show?

Revision history for this message
John Wilson (jwilsondmartin) said :
#4

No grub menu

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

It would be good to see the layout of your disks and the related operating systems.
This information can e.g. be obtained by running the "info" mode of boot repair.
In your case you would probably have to start it by booting a boot-repair disk.
See https://help.ubuntu.com/community/Boot-Repair

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Maybe better link with explanation:
https://help.ubuntu.com/community/Boot-Info

Revision history for this message
John Wilson (jwilsondmartin) said :
#7

Thank you for your help.
I don't have the laptop at present as someone is trying to recover the data.
When I get it back I will try this procedure and let you know what happens.

Revision history for this message
John Wilson (jwilsondmartin) said :
#8

Thank you for your help but I still have problems.
When I got the laptop back I tried booting it with a liveUSB but could not turn on networking so could not connect to the internet.
As I had my data backed up I reinstalled Ubuntu 18.04.2LTS from the live-USB but when I restarted the laptop it booted up in Windows10!
Meanwhile I had downloaded the iso of Boot repair disk 64 bit iso from Yannubuntu but cannot yet it onto a USB.
Tried using UNetbootin but could not get the target correct.
Can you suggest another program?

Revision history for this message
John Wilson (jwilsondmartin) said :
#9

Did a clean install of Windows 10 and then installed Ubuntu 18.04.2 to run alongside it.
Now when I start the notebook it boots up in Windows without offering me the choice of of Ubuntu or Windows in the Grub menu.
Any suggestions on how I can restore Grub?

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

I do not understand why the Ubuntu installer has not created the grub menu to select between Ubuntu and Windows.
Apparently you have made a wrong choice for one of the questions of the installer.

My suggestions:
Either try boot-repair
or try https://www.omgubuntu.co.uk/2011/09/live-usb-sticking-grub-2-video

Revision history for this message
John Wilson (jwilsondmartin) said :
#11

Thank you for giving me the link.
All went well once I had realized that there were two dashes before the --bind commands but at the grub-install stage I hit a roadblock.
Here is the output:
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# grub-install /dev/sdb1
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
root@ubuntu:/# grub-install /dev/sdb
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
root@ubuntu:/# grub-install /dev/sda1
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
root@ubuntu:/# grub-install /dev/sdb1
Installing for x86_64-efi platform.

grub-install: error: cannot find EFI directory.
On the notebook the Linux partition is dev/sda5 and the boot partition is dev/sdb1
What point have I missed.
How do I run boot-repair your other suggestion?

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

1. What is the layout of your hard disks? It might be that you selected several possible parameters, but not the right one
grub-install /dev/sda

Don't confuse the /boot directory of Ubuntu with the "boot disk" (which is the hard disk where the BIOS searches for operating systems to boot).

2. For boot-repair and boot-info see the links that I gave in an earlier answer:

https://help.ubuntu.com/community/Boot-Repair
https://help.ubuntu.com/community/Boot-Info

Can you help with this problem?

Provide an answer of your own, or ask John Wilson for more information if necessary.

To post a message you must log in.