Operating System Problem Solutions

Today, I faced a challenge with Linux Mint on one of my computers. I received a message informing me that my boot partition was full. I surfed the net to find solutions and ended up with a fix in the form of a script that seemed appropriate.

I applied it. After about 5 minutes I could reboot. The boot folder then showed only the latest kernel.

That was nice, this one time. So what do I do when this, or some other problem re-emerges? I don’t really have enough problems to store them in a database. Thus, I decided to use a more basic fix, a LibreOffice Writer file.

This file lists practical solutions to problems that arise with Linux Mint.

Problem: Boot partition is full
Documentation: https://forums.linuxmint.com/viewtopic.php?t=256436
Solution: copy and paste the following in the terminal

OLDCONF=$(dpkg -l|grep “^rc”|awk ‘{print $2}’)
CURKERNEL=$(uname -r|sed ‘s/-*[a-z]//g’|sed ‘s/-386//g’)
LINUXPKG=”linux-(image|headers|ubuntu-modules|restricted-modules)”
METALINUXPKG=”linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)”
OLDKERNELS=$(dpkg -l|awk ‘{print $2}’|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)
YELLOW=”\033[1;33m”
RED=”\033[0;31m”
ENDCOLOR=”\033[0m”
sudo apt-get purge $OLDKERNELS

End: Boot partition is full

When the next problem arises, it will also use the same format. A problem statement, that is a short description, followed by a link to somewhere for more detailed information. Then comes the solution as applied, followed by an end statement so that one knows where the problem ends.

One Reply to “Operating System Problem Solutions”

  1. I think it is a good idea to make documentation for things that may need to be done again in the future. Our memories need backup to facilitate ease of getting things done.

Leave a Reply to Trish McLellan Cancel reply

Your email address will not be published. Required fields are marked *