I have a root paration and it is %100 full, but I can't find which file is hogging all the space, I rotated all my log files and deleted all the 'ussual suspects' but the / device is still full. All home directory (users files), the /tmp, /opt, /var/mail and /usr are all on differant disk drives. I have tried using find and du, but can not find the file eating up my / paration. The bad thing is, that there is NO logging on the system now since it does have any room to write log files : / Is there a way to list all the biggest files in order just on the / drive and not cross disk bounders. Print the biggest files first and then so on... Thanks, Jack -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Thu, 23 Dec 1999, Jack Barnett wrote: jb> jb> I have a root paration and it is %100 full, but I can't find which file is jb> hogging all the space, I rotated all my log files and deleted all the 'ussual jb> suspects' but the / device is still full. jb> Do a 'du -S | sort -n' on your / partition, wait till it completes and the largest directories will show up last, this will give you a fair indication of where the problem lies. jb> All home directory (users files), the /tmp, /opt, /var/mail and /usr are all on jb> differant disk drives. I have tried using find and du, but can not find the jb> file eating up my / paration. The bad thing is, that there is NO logging on jb> the system now since it does have any room to write log files : / jb> jb> Is there a way to list all the biggest files in order just on the / drive and jb> not cross disk bounders. Print the biggest files first and then so on... jb> Once you have narrowed down the directory where the largest files reside, you can then do a 'ls -s | sort -n' on the directory and again, pay attention to whats displayed last, as that will be where the largest files are located. I'm having it displayed last, as I find it cumbersome to have to scroll back up to see what was printed first. jb> Thanks, jb> jb> Jack jb> jb> jb> -- S.Toms - tomas@primenet.com - homepage is in the works SuSE Linux v6.2+ - Kernel 2.2.13 Anybody can win, unless there happens to be a second entry. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Jack Barnett wrote:
I have a root paration and it is %100 full, but I can't find which file is hogging all the space, I rotated all my log files and deleted all the 'ussual suspects' but the / device is still full.
All home directory (users files), the /tmp, /opt, /var/mail and /usr are all on differant disk drives. I have tried using find and du, but can not find the file eating up my / paration. The bad thing is, that there is NO logging on the system now since it does have any room to write log files : /
Is there a way to list all the biggest files in order just on the / drive and not cross disk bounders. Print the biggest files first and then so on...
One of my favorite commands: find / -xdev -type f -ls | sort +6n This prints the files in ascending order of size, I find that more useful as you often end up with just the tail end of the command. You might want to include -size +200 to the find command to limit files to larger than 100K. One thing that this won't do is to find files that don't have a name, remember that in Unix files can have 0 or more names. You might like to try lsof in that case, fuser is also good but it appears not to have the using file system option under linux. /Michael -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
jbarnett@axil.netmate.com
-
Michael.Salmon@uab.ericsson.se
-
tomas@primenet.com