Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-15-2012, 09:24 AM
|
#1
|
Member
Registered: May 2011
Posts: 194
Rep:
|
How to find what is filling up the space
Hi all,
There is an NFS share on linux box and it is getting filled very fast. It is filling hundreds of GBs everyday. How can i find what is filling up the space ?
thanks in advance!
|
|
|
05-15-2012, 10:06 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,213
|
du -sh /path-to-device/*
Also
lsof |grep path-to-device
|
|
|
05-15-2012, 10:21 AM
|
#3
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
I prefer ncdu for such tasks. It should be available for almost any distribution and is quite handy, since its interactivity really can (and does) speed up to find the culprit.
|
|
|
05-15-2012, 10:48 AM
|
#4
|
Member
Registered: May 2011
Posts: 194
Original Poster
Rep:
|
thanks business_kid and TobiSGD,
will "ncdu" work on CentOS5/RHEL5 ? because i can't see it there on the ncdu page link.
|
|
|
05-15-2012, 10:51 AM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
|
|
1 members found this post helpful.
|
05-15-2012, 11:14 AM
|
#6
|
Member
Registered: May 2011
Posts: 194
Original Poster
Rep:
|
thanks TobiSGD
but i got following error while trying to install ncdu
Code:
# yum install ncdu
Could not retrieve mirrorlist http://www.atomicorp.com/mirrorlist/atomic/centos-5-i386 error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atomic. Please verify its path and try again
|
|
|
05-15-2012, 11:15 AM
|
#7
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Sorry, I am no CentOS user, can't help with that.
|
|
|
05-15-2012, 11:24 AM
|
#8
|
Member
Registered: May 2011
Posts: 194
Original Poster
Rep:
|
Hi TobiSGD,
sorry my bad, i tried to install 64bit rpm on 32 bit. i installed it now
Code:
# rpm -qa | egrep 'atomic|ncdu'
atomic-release-1.0-14.el5.art
ncdu-1.5-1.el5.art
and now HOW TO USE this tool ?
|
|
|
05-15-2012, 11:54 AM
|
#9
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Just type
Code:
ncdu /path/to/your/share
It will begin to scan the path you have given to it recursively and displays the files/folders sorted by size. Navigate with the cursor keys, delete highlighted files/folders with the d-key, if you want.
For more info type
|
|
|
All times are GMT -5. The time now is 12:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|