New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Normally, we'd flag the post and comment to a mod and then they sort it out over PM. You could have just said, "thanks, fixed." He just gave you a friendly heads up instead of you getting PM'd by a mod and wasting their time, too.
Try the following.. shows you desc sorted list of 25 folders/files taking highest space.
du -a -h --max-depth=1 / | sort -hr | head -25
You should try alpine linux, it takes up the least amount of space.
Then for mods:
Sebster27
JasonM
lentro
You use the Flag link above the post and below their username.
Also CRLF>LF
^ this
Also you can trim it down to just the most recent kernel, not 2-3 stored, and that'll save you like 150-300MB.
dpkg --list | grep linux-image-*
Anything with 'ii' next to it is installed, check which you're running/is the latest, then delete the other(s) with
apt purge linux-image-5.4.0-66-generic
- just be sure to leave the 'linux-image-generic' item alone.FWIW Debian's documented absolute minimum for installation is 780 MB disk space (https://www.debian.org/releases/stretch/i386/ch02s05.html.en), but they recommend 2 GB space and 128 MB RAM minimum (https://www.debian.org/releases/stretch/i386/ch03s04.html.en).
For an installation with very low space, you could try using btrfs and enabling zstd compression. This would work best if you have a lot of very compressible files (plain text, eg source code, HTML files, etc).
If you've got very low RAM (128 MB), it may be a good idea to use 32-bit rather than 64-bit, as the smaller pointers will save you a little bit of RAM. Just ensure it's not a PAE kernel (eg the regular Debian i686 kernel is fine). Just make sure all your apps run on 32-bit. All apps packaged with Debian support 32-bit, but some third party software is 64-bit-only now.
Lately, ubuntu has been more focused on competing with windows instead of actually standard nix systems. Gotten very bloaty straight out of the box. Nothing beats good ol lean debian, or for the yoloers, Alpine.
Can you post the results of
fdisk -l
or similar to see your partitioning scheme?It seems like the OP wanted a "quick fix" for their issue. Turns out, there isn't one.
There are two:
Add a space after
p
for extra effect.Always understand what a command does before you proceed.
Most likely the problem is log growth. The apt cleaning commands you ran just clear out local cached copies of deb packages and related files from /var/cache/apt. Run
du -shc /var/*
anddu -shc /var/log/*
to check. Orncdu /var/
if you have that installed. A common cause of sudden log growth is a brute-force login attempt against your SSH daemon causing a lot of log entries, perhaps install fail2ban to reduce that if this appears to be the issue in your case (though f2b won't help much for distributed attempts).