Friday, October 14, 2011

Ubuntu 11.10 booting bug - partial solution


After updating from the natty narwhal (11.04) to oneiric ocelot (11.10)  a serious bug has been encountered. the Ubuntu stops booting in the middle and displays an error message as follows..

waiting for network configuration

*then after sometime...*

waiting an additional 60 seconds for network configuration

*then after sometime...*

Booting system without full network configuration

I hardly know how to handle bugs.. but one suggestion found in the forums was to hit in some commands in the terminal and restart should do the job, that how I could slove it, but keying the entire thing was a pain... so why not write a shell script and run it.

sudo mkdir /run
sudo mkdir /run/lock
sudo mv /var/run/* /run
sudo mv /var/lock/* /run/lock
sudo rm -rf /var/run
sudo rm -rf /var/lock
sudo rm -rf /run/dbus/*
ln -s /run /var/run
ln -s /run/lock /var/lock
sudo reboot

make a file <aNameOfYours>.sh and save it anywhere u can access it easily.. now just go to that directory where the file is located and type...

 ./<aNameOfYours>.sh 

Ubuntu reboots and ready....