mediclaser wrote: ⤴Wed Nov 28, 2018 8:35 pm
redlined wrote: ⤴Wed Nov 28, 2018 7:38 pm
This interests me too, having seen the same comment you refer to by gm10, as I
Do make separate partitions (/, /home, swap, even a /mnt/data for personal files)
and I have yet to see root smaller than 12GB locally (currently this laptop has root at 13.64GB, close to my old laptop and exact same as significant other's laptop) a far cry from 8GB I also saw that thread as normal sounding and too close to 20GB many say is future proof for root.
Not sure how I make such a messy pile but being off by that many GB is weird sounding to me but I rest assured my min root partition size is 50GB so I'm not too concerned about elbow room there... yet
I hear you. My Mint 19 root partition is already at 22 GB. I was trying to applaud the idea I thought gm10 was describing. I still give him credit for it though.
If you've got /home as a separate partition and no /swapfile then all that needs to be in / root is the system itself plus whichever packages you are installing, plus system data. Unless you are installing a huge amount of applications and/or are running some servers with their large data files in / root as someone mentioned above, then there is no reason for your system to be that large. For 22 GB I would actually expect something like /timeshift snapshots in root, which does, of course, double your disk space usage.
Now unfortunately the Mint system is very messy, none of the tools clean up after themselves. I tried to get some automatic maintenance squeezed into 19.1 but seems you'll only get that for 19.2, if at all.
But here's a little experiment for you, let's make some room on your / root, see how much we'll free up:
First let's keep track of where we're at:
Code: Select all
BEFORE=$(df / -h|tail -1|awk '{print $3}')
Now let's remove leftover packages and data
Code: Select all
apt clean
apt autoremove --purge -y $(dpkg -l | grep '^rc' | awk '{print $2}')
and leftover kernels (yes, this is one command line):
Code: Select all
dpkg-query -W -f '${Version}\n' 'linux-image-[^g]*'|sort -u|sed -e "/^$/d;s/\~[^~]*$//;s/\.[^.]*$//;/$(uname -r|sed 's/-generic\|-lowlatency//')/d;s/.*/linux-*-&*/"|tr '\n' ' '|xargs -r sudo apt-get remove --purge -y
If you don't need localization data for currently not configured locales also run this (this will still probably generate a lot of locales you don't actually need, you may want to look into trimming down your locale configuration later on):
Code: Select all
sudo rm -rfv /usr/lib/locale/*
sudo locale-gen --purge
On Mint 18 you will want to append
--no-archive to that last command line. Further control about localization data incl. automated removal can be had with scripts like the package
localepurge, check that out later if you're interested.
If you're one of those who like to run their file browser or worse as root, then you've probably got disk space to recover there as well (deleting to Trash as root is a classic, since you cannot clear it via the GUI):
Code: Select all
sudo rm -rfv /root/.local/share/Trash
sudo rm -rfv /root/.cache
Finally, let's check the result:
Code: Select all
AFTER=$(df / -h|tail -1|awk '{print $3}')
echo "/ usage was $BEFORE, is now $AFTER"
If that didn't trop your usage significantly I'd be surprised, but for an overview of where your disk is being used, do run this:
(edit: typo fixed, thx redlined)