1847759 Members
3174 Online
104013 Solutions
New Discussion

Re: File Size

 
SOLVED
Go to solution
Kevin Daines
Advisor

File Size

I'm trying to find the answer to why my root volume has grown by about 38Mb. However the find command:

find . -size 30000000c

returns no values, am i doing something wrong?
7 REPLIES 7
Jeff Schussele
Honored Contributor
Solution

Re: File Size

Hi Kevin,

Here a command to see all the large files/dirs in a filesystem

du -akx / | sort -rn | more

I suspect there are no files in / that are *exactly* 30000000 bytes in size. The command will only find files that size.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: File Size

Another thing to watch for.

If a filesystem was unmoutned and files were copied in and then its mounted. The files are invisible but still take up space.

Example

/steve is a fs and its unmounted.
copy in 20 MB
mount /steve

You can't see the files but they take up space.

If the prior post doesn't help, you may want to poke around with folders umounted. /var can only be done in single user mode.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Karthik S S
Honored Contributor

Re: File Size

Try,

find / -size +30000000

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Jeroen Peereboom
Honored Contributor

Re: File Size

Kevin,

you need a +3000000.

JP.
Paul Cross_1
Respected Contributor

Re: File Size

NB: the du command mentioned above could potentially take a really long time to run if (as I do) you make / the entire disk.
Jeff Schussele
Honored Contributor

Re: File Size

Hi pcross,

Check that command again.

The -x will restrict it to *that* filesystem only.
It's really about the only why to poperly run the du command in an FS that has other filesystems mounted into it IF you're looking for space hogs.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: File Size

Uhhmmm - OK - I just reread your post.

Why in the world would you make / the _entire_ disk?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!