-1

Following the steps here: What is the safest way to clean up /boot partition? to free some space in /boot I was lazy. So instead of deleting every file seperately with sudo apt-get remove linux-image-VERSION, I typed sudo apt-get remove linux-image-3* after some time I realized that this maybe was a huge mistake and i stopped it with ctrl-c.

After a reboot I find my system with no usb connectivity, no wlan, no sound and the lowest possible display resolution. Can someone explain what I have done wrong and/or how I can fix this?

Zanna
  • 70,465

1 Answers1

0

I found a solution. In related posts I found I think I accidentally removed the current linux kernel when trying to free up space in /boot where i found sudo apt-get install --reinstall linux-image command. After using google to find some necessary linux-images for Ubuntu 14.04. I reinstalled

linux-image-3.13.0-24-generic
linux-image-3.13.0-105-generic
linux-image-extra-3.13.0-24-generic
linux-image-extra-3.13.0-105-generic

and booted into GRUB (by pressing shift after bios screen). Choosing Advanced... I booted one of the kernel versions above which had all the missing drivers installed. After removing all the installed linux-image-4.. and a sudo update-grub my system is booting by default to version 3.x.

Right now I am very happy that my system is back and running!


But there is another little thing now. I tried to run sudo apt-get install linux-image-3* before I realized that this is a huge pile of data. After some minutes my /boot/ directory was full. Now after dpkg --list 'linux-image*' I see a long list with all linux-image-3* files. Like this:

un  linux-image-3.19.0-25-generic    <none>    <none>    (no description available)

How can I remove them?

Zanna
  • 70,465
  • Start removing them. Nice job. I thought you would've learned to be careful with wildcards the first time. – negusp Dec 08 '16 at 19:07