LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-03-2008, 09:33 AM   #1
userlander
Member
 
Registered: Jul 2008
Distribution: Arch, Debian
Posts: 61

Rep: Reputation: 17
MYSQL Crashed - Root partition full - can't find the big files


Some tables in mysql crashed, mythtv wouldn't run, and I noticed that the disk space on / was at 100%. It's a 7.5GB partition, and usually it's only around 40 or 50%. I repaired the database, myth now runs, but I can't find what's taking up all the diskspace.

/var/log/mysql only has 5.3M.
/var/log/mythtv only has 12K

all of /var/log itself has 147M.

apt-get clean all brought it down to 99%.

/tmp had some .ICE-unix and .X11 directories, but those were empty. I deleted them anyway in case there were some hidden files and rebooted. Still at 99%.

This is on an up to date debian lenny, with kernel 2.6.27.4. I just did a dist-upgrade yesterday -- I guess that did something. How can I find out where that extra space is being taken up?
 
Old 11-03-2008, 02:31 PM   #2
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
The following command will find the top 10 directories using disk space, run it first (as root) from / and then go to the biggest directory and run it again, and so on, until you find the space-hog

du -x --block-size=1024K | sort -nr | head -10

HTH
C
 
Old 11-03-2008, 02:51 PM   #3
userlander
Member
 
Registered: Jul 2008
Distribution: Arch, Debian
Posts: 61

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by BlueC View Post
The following command will find the top 10 directories using disk space, run it first (as root) from / and then go to the biggest directory and run it again, and so on, until you find the space-hog

du -x --block-size=1024K | sort -nr | head -10

HTH
C
Found it, thanks. My NFS backup directory wasn't mounted and the backup filled the partition.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
root partition is getting big mikieboy Debian 9 03-26-2008 12:02 AM
root partition full, not sure how; where are my files? lefty.crupps MEPIS 10 01-31-2006 06:21 PM
Root partition full juleslinux Red Hat 4 01-12-2006 11:00 AM
root ('/') partition is FULL inon^ Linux - Hardware 2 08-08-2005 02:19 PM
Root partition is full, what now? Joe Soap Linux - Newbie 30 03-31-2005 12:38 PM


All times are GMT -5. The time now is 07:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration