Sunday, June 17, 2018

How to recover from a botched attempt to clean /boot, incomplete kernel/drivers

Ubuntu 14.0.4 generated an error trying to update. Turns out my /boot partition was full. I ran a command to remove the old kernels, something like this:



dpkg --get-selections|grep 'linux-image*'|awk '{print $1}'|egrep -v "linux-image-$(uname -r)|linux-image-generic" |while read n;do apt-get -y remove $n;done



but I neglected to reboot before doing this and test things, as a result, it cleared /boot but generated a few errors. I then ran aptitude update/upgrade. Upon rebooting Ubuntu comes up but it's really slow, has no network connectivity, and does not recognize the USB wireless mouse. It looks like various system drivers are now not recognized.



How can I repair this installation? The system will boot but it's obvious the drivers are not there for the network or USB mouse and probably other things. Can I restore the kernel and undo this to some degree?

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...