I'm having problems with a dual-boot installation of Windows 10 and Ubuntu 18.04. I'd like some assistance understanding what happened before I decide what to do next.
I'm trying to recover from an error which rendered both Windows and Ubuntu unbootable. Working on the same disk, I restored a disk image created when Window was working and Ubuntu was not yet installed. Then I installed Ubuntu. That should have created a dual boot disk with a working, fully customized Windows and a working, freshly installed Ubuntu. Instead, Windows worked and Ubuntu failed in exactly the same mode as the damaged system I'm trying to replace.
I booted a live DVD and examined the disk. I found *two* EXT4 partitions, and both appear to contain Linux.
Here's what I think happened: When I restored Windows it overlaid the disk's boot and Windows partitions, but did not touch the damaged Linux partition. Then the Ubuntu installer split the original Linux partition into two, installed a new Ubuntu in one, and left the original damaged Ubuntu in the other. Then it installed GRUB and configured it to boot the old damaged Linux partition instead of the new one.
My questions are: first, assuming that you who are trying to help me know more about GRUB and the installer than I do, does my theory sound reasonable? Second, if so, what is the best way to recover?
I've read about the GRUB configuration files before, but found them confusing. I now think this may be a good time to learn how they work and point them to the good Linux partition, then delete the bad one.
The other solutions would be to (1) copy the good one over the bad one -- assuming I can be sure which is which -- or (2) delete all of the disk's partitions and start over.
A final word to ensure that well-intentioned responders don't go off the rails: I haven't explained what happened to the original installation and what failure mode it caused, because that would be time consuming and would not help solve the current problem. Please take it on faith that (1) I know what I did wrong and how to avoid doing it again. (2) The failure mode could not plausibly be caused by anything else, e.g. a hardware error; therefore its occurrence is proof that GRUB is trying to boot the original damaged system or a new one that has been damaged in the same way. (3) Even if I were careless enough to damage the new system the same way I damaged the old one, it failed before I even had an opportunity to do so.
Bookmarks