After trying to upgrade my Ubuntu 9.10 to 10.04 Alpha and failing, I felt disappointed. I reinstalled Ubuntu 9.10, Copied over the settings painfully, reinstalled and reconfigured everything and moved on. I was waiting for 10.04 to be released so that I can try the upgrade again.
Now, it was 2 months since Ubuntu 10.04 got released. So, I gave a it one more shot. The upgrade went really smooth and fine. But after restarting, I was again disappointed.
The same blank screen and some error messages something like "udreadahead process got killed and main returned an exit code of 4".
I tried rebooting multiple different kernels, with no luck. I gave up and installed Ultimate Edition Linux (derivative of Ubuntu 10.04) on different partition hoping to get some time and troubleshoot this.
Luckily, when I reinstalled 9.10, I created a separate Home partition (learnings from previous failures) and it saved lot of my time and data. Pidgin, Mozilla, Desktop settings all were as earlier, thanks to the separate Home partition.
So, today, I had a good nice relook at the error message of my uppgraded Ubuntu 10.04. I rebooted into rescue mode (thanks to new UE Linux) and did a chroot. Updated the initramfs images as I suspected bad init image.
mkdir /media/oldroot
mount /media/sda1 /media/oldroot
mount /proc
update-initramfs -k all -u
Rebooted and expected miracle. No use. Then, I noticed the ureadahead error.. Nice clue...
mount /media/sda1 /media/oldroot
mount /proc
apt-get remove ureadahead
update-initramfs -k all -u
This time after reboot I saw a different set of errors indicating missing ureadahead and lot more.OK..Time to add back the ureadahead..I also wanted to check the post install configuration and out of sheer curiousity tried the dpkg command..
mount /media/sda1 /media/oldroot
mount /proc
apt-get install ureadahead
update-initramfs -k all -u
dpkg-reconfigure -a
I got lots of questions. Patiently, choose the right option and rebooted.
Voila! My Ubuntu 10.04 boots :)
Lots of time saved and upgrade successful as well,