Tuesday, November 2, 2010

Recover and Repair a Failed Ubuntu Upgrade

I recently upgraded from Ubuntu 10.04 LTS to Ubuntu 10.10 - it didn't go quite to plan! Midway through the upgrade the GUI (Gnome Desktop in my case) froze and I had to power off manually and restart.

All I got was the usplash screen and when I Alt-Ctrl F1 'd i saw "mountall: disconnected from plymouth". No matter what I tried couldnt get any further.

It happened to me once before and in the end I reinstalled which wiped everything. Now I'm a little more seasoned I knew this wasn't going to be necessary.

So I used my 10.04 LTS liveCD and started searching for solutions. I managed to find the following info which poved most useful because it allowed me to mount my HDD FS within the liveCD GUI and work from cmd line as though I were in the HDD OS: http://ubuntuforums.org/showthread.php?t=422523

Also quite useful:



Essentially what had happened was that after usplash the nvidia drivers werent loading, so I removed the xorg.conf file, and replaced it with the xorg.conf.failsafe. This step got me booting into a low res gnome desktop, yaaay!

I then Alt-Ctrl F1 'd to the shell, and mounted the ubuntu-alternate iso I had downloaded when I was in the liveCD, and which I ha copied to my home folder on my HDD from there.

Once the iso was mounted I simply ran:

sudo /media/cdrom/cdromupgrade

and ten minutes later everything was fixed and my desktop was up and running 10.10 !

Good Luck! :)