Page 1 of 1

[SOLVED] Root partition almost full

PostPosted: Dec 16th, '14, 09:46
by pedro
Is this normal?
Can I do something about it?

I noticed my root partition is almost full. Only 1.4G left.
I haven't installed a lot packages, but updated my system regularly.

Code: Select all
[pedro@localhost ~]$ df
Filsystem      Storlek Använt Ledigt Anv% Monterat på
/dev/sda1          12G   9,8G   1,4G  89% /
devtmpfs          1,9G      0   1,9G   0% /dev
tmpfs             2,0G    37M   1,9G   2% /dev/shm
tmpfs             2,0G   636K   2,0G   1% /run
tmpfs             2,0G      0   2,0G   0% /sys/fs/cgroup
tmpfs             2,0G   104K   2,0G   1% /tmp
/dev/sda6         1,8T   597G   1,2T  33% /home

Re: Root partition almost full

PostPosted: Dec 16th, '14, 16:26
by pedro
Seams like I have a lot of journal log files, so I deleted them and freed up a gig, so now I have 2.5G free space on the root partition.
Any tips on how to free up some more?


Code: Select all
[root@localhost pedro]# du -akx / | sort -nr | head -n 25
10208184        /
7186848 /usr
2588348 /usr/share
2538072 /usr/lib64
2134332 /var
1265416 /var/log
1261684 /var/log/journal
1261680 /var/log/journal/5a9567fb7d794c5b8c2c327a6f2f637a
1126200 /usr/lib
668872  /usr/share/doc
566960  /usr/share/icons
472064  /usr/bin
383384  /dead.letter
381960  /usr/src
362212  /opt
362192  /opt/google
339512  /usr/lib64/libreoffice
334528  /var/spool
330772  /var/spool/cups
328480  /usr/lib/modules
317500  /usr/share/doc/qt4
263760  /usr/lib64/python2.7
232264  /usr/lib64/python2.7/site-packages
228760  /usr/share/icons/oxygen
218316  /usr/share/doc/qt4/html

Re: Root partition almost full

PostPosted: Dec 16th, '14, 17:28
by pedro
Removed a bunch of old kernels and freed up som more space. (root=2.8G)

Re: Root partition almost full

PostPosted: Dec 16th, '14, 22:11
by doktor5000
You could delete or move away /dead.letter and maybe look what's using ~300MB in /usr/src and in your printer spool directory /var/spool/cups
In general you're probably better of with increasing the size of your / partition to at least 20GB, or moving somthing to a separate partition (like /usr).

We're currently discussing the maximum size for automatic partitioning, as 12GB is currently the hard upper limit, no matter on what disk you install,
and that's not sufficient for most casual users that use automatic partitioning. See https://bugs.mageia.org/show_bug.cgi?id=14612

Re: Root partition almost full

PostPosted: Dec 17th, '14, 05:10
by jiml8
Journald is set up incorrectly in Mageia; it should not be possible for the journals to occupy many gigs of drive space by default. Go to the file /etc/systemd/journald.conf and change the setting SystemMaxFileSize to something more sensible. To learn more about this, "man journald.conf" will give you a lot of information.

Re: Root partition almost full

PostPosted: Dec 17th, '14, 09:51
by pedro
Ok, thank you. I will partition my hard drive manually next time I reinstall my OP.