rootfs

Hi,

I need to free space in rootfs partition, I know that is a system partition but how to know what directory or file delete?

In other words I need to know what directory or file are using more space.

http://img24.imageshack.us/img24/2636/rootfs.png

Thank you.

esvom.

esvom wrote:
> Hi,
>
> I need to free space in rootfs partition,

Why do you need more space? Your root partition is already huge and it
has as much space left as some people’s entire root partition!

> I know that is a system
> partition but how to know what directory or file delete?
>
> In other words I need to know what directory or file are using more
> space.

du -sh is your friend.

Just like that it will tell you how much space is used in the partition
(if you run it from the directory at the top of the tree)

If you run ‘du -sh ’ it will tell you how much each top-level directory
uses. Then if say /etc is using more than you expect you run 'du -sh
/etc/
’ to find the next level directory and repeat until you find the
source of your problem.

This is mine:

henk@boven:~> df -h
Bestandssysteem Grootte Gebruikt Besch Geb% Aangekoppeld op
rootfs              20G     5,1G   14G  28% /
devtmpfs           486M      44K  486M   1% /dev
tmpfs              494M      92K  494M   1% /dev/shm
tmpfs              494M     700K  494M   1% /run
/dev/sda5           20G     5,1G   14G  28% /
tmpfs              494M        0  494M   0% /sys/fs/cgroup
tmpfs              494M     700K  494M   1% /var/lock
tmpfs              494M     700K  494M   1% /var/run
tmpfs              494M        0  494M   0% /media
/dev/sda6           99G      55G   39G  59% /home
/dev/sda2           20G     5,9G   13G  32% /mnt/A
/dev/sda3           92G      63G   28G  70% /mnt/A/home
henk@boven:~>

Which confirms what djh-novell says: My / usage is smaller then what is free in yours.

I think you first have to explain why yours grow so big before we can give you any advice on what to remove.

And yes, when you do not even know what you have put there, use the method described above,

On 2013-03-21 17:46, Dave Howorth wrote:
> du -sh is your friend.

Other tools: I use midnight commander, it also measures directory sizes
(C-space, command menu). Or if you like GUIs, ‘baobab’ is very good for
this purpose. Or kdirstat if it is still distributed, or filelight.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Most database mangers default to using root to store there databases also setting up a large web site with defaults will use space out of root. Of course it is better practace to set up separate partitions for these programs to use. Makes upgrading and backup much much easier.