LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08:33 AM   #1
userlander
Member
 
Registered: Jul 2008
Distribution: Arch, Debian
Posts: 61

Rep: Reputation: 18
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, 01: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, 01:51 PM   #3
userlander
Member
 
Registered: Jul 2008
Distribution: Arch, Debian
Posts: 61

Original Poster
Rep: Reputation: 18
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



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-25-2008 11:02 PM
root partition full, not sure how; where are my files? lefty.crupps MEPIS 10 01-31-2006 05:21 PM
Root partition full juleslinux Red Hat 4 01-12-2006 10:00 AM
root ('/') partition is FULL inon^ Linux - Hardware 2 08-08-2005 01:19 PM
Root partition is full, what now? Joe Soap Linux - Newbie 30 03-31-2005 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration