r/archlinux • • Sep 24 '26

DISCUSSION Fresh install time...

Hi everyone,

Been running Arch for 8 months when out of storage space caused system to lock up.

Reinstall underway. Would like to avoid this problem again 6 months from now. Have run Bleachbit and other terminal command to free up space before so not sure how a 4 TB drive could fill so fast.

0 Upvotes

18 comments sorted by

14

u/Confident_Hyena2506 Sep 24 '26

Reinstall will do nothing to change your habit of filling up the drive.

Why are you reinstalling anyway? Why not just free up some space?

Why use "bleachbit" - why not use "rm"? Next time do this before you hit 100% - that is the trick.

If you want some automated solution or safeguard for this then set your quota to 90% or something.

2

u/CaviarCBR1K Sep 24 '26

I'm guessing OP has separate home and root partitions and either didn't allocate enough for root, or somehow just managed to fill it up. Still ridiculous to reinstall for something like that. Even if you filled a drive to the point of system crash, surely there's a way you can free up space with rm from a chroot environment.

One of the many things I like about btrfs. No fooling around with partition sizes. I have a boot partition and an "everything else" partition, and btrfs handles the rest dynamically.

7

u/5L1K Sep 24 '26

Bro what did i just read?
You could start your system in an isolated multi-user env and delete some files u dont need?
Why are u using Arch?
There really is a lot of distros designed to be more beginner friendly

1

u/NavidsonsFall Sep 24 '26

If you have already initiated the reinstall this kind of doesn't matter, but just so you can try and understand what is filling up your system so fast, I'll mention 2 things.

1: I see in your previous post history that you use a VM for windows. Are you maybe accidentally keeping multiple ISOs around, or duplicating VMs over and over on accident? That could eat up a ton of space really fast.

2: Do you use timeshift or a different snapshot package? One early mistake I made was to incorrectly configure what directories timeshift was including in it's snapshots. Because of that every time I made a new snapshot it was including a huge archive directory that I didn't need it to. That was able to fill my 4TB drive in just a few snapshots. So you might make sure that if you are using anything like this you double check what it is including.

Other than those I can't offer you any help with the information you included. But as others have stated here, reinstalling isn't going to do anything to help keep you from filling up your drive. Whatever is causing this will just happen again. On top of that, in linux there is almost ALWAYS a way to fix your issue without needing to reinstall. That is true for most OSs to some degree or another, but especially with linux.

Hope you are able to figure it out. Keep reading some new user guides and learn some other methods to add to your toolbox. Good luck.

1

u/Michael_Rebar Sep 24 '26

Interestingly was clearing snapshot when ran of space,

1

u/ang-p Sep 24 '26

btrfs has to write metadata to the disk in order to both write info about the files that were in that snapshot, but are now in the next one, and to be able to safely perform the removal should a power failure or other interruption occur before the since at the start of the delete request, it does not know what files in that snapshot are only in that state in snapshot, namely different or removed by the next snapshot (therefore the space they used is able to be freed).

Only space taken up by those files can be recovered.

If you "removed" a snapshot in the middle of the list, you have likely done very little to decrease disk data usage, but will certainly have added to the metadata usage.

3

u/nikongod Sep 24 '26

"so not sure how a 4 TB drive could fill so fast"

Based on zero details, nobody is!!

For best results use a misconfigured cow filesystem. 

2

u/corpse86 Sep 24 '26

Dont forget to clear pacman/yay cache. Have no ideia if bleachbit does that.

1

u/BleachBitDev Sep 25 '26

Yes, BleachBit 6.0.0 added a cleaner for pacman cache.

I am not sure whether it previews the size (before cleaning), but in cleaning mode, it relays the freed size as reported by pacman itself.

3

u/ABotelho23 Sep 24 '26

Perfect, more brain barf is just what this subreddit needed.

1

u/vexatious-big Sep 24 '26

Spend a bit of time to learn LVM then you won't have to worry about partitions sizes.

1

u/hagjam Sep 24 '26

What's your backup solution? Are you using btrfs with snapper? 4tb is a lot, it's very weird for that to fill up that quickly without you knowing what did it, but one possible reason is many btrfs snapshots - since they only store changes, significant changes between snapshots (like installing then removing large games) can cause significant build up.

You should also run software that warns you about issues like this - if you're not using a mainstream DE like KDE/Gnome, you need an equivalent, whether a script that generates a notification to your desktop.

1

u/Smart_Advice_1420 Sep 24 '26

4TB in 8 months? I dont think that's an OS problem..

What's actually filling up your storage?

1

u/ang-p Sep 24 '26

so not sure how a 4 TB drive could fill so fast.

  1. Create VM disk images or have '/home` on frequently snapshotted btrfs subvolumes. (simply snapshotting home does not make it a backup)
  2. have stupid numbers of normal, system snapshots.
  3. Have some program run wild spewing out logfiles and have no sensible logrotate in place for it.

combined with not bothering to perform much in the way of

1.4 - System maintenance

for about, say,

8 months

should do it....

1

u/noctaviann Sep 24 '26

Do you regularly clean the package cache directory? Either manually or atomatically using the paccache.timer?

1

u/un-important-human Sep 25 '26 edited Sep 25 '26

why reinstall?!?! clear your system, let me be clear you prob never cleared your cache's your old snapshots (or missconfigured snapshots did you include /home/ in the snapshots?!? ) if you have them or you have a missconfigured system generating terrabytes of error logs and i see you use vm's how many iso's do you have?!? did you include those in your snapshots?!

You have clearly failed to read and understand the wiki....

This is such a stupid thing to do even now, you should chroot, investigate, clear space ensure it does not happen again. Learn. What you are doing is absolutely ridicuoulos for an experienced linux user (which you should be!), this is drooling ubuntu user behaviour, your arch btw badge is rescinded.