My file system is 100%, can't find the huge file | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

My file system is 100%, can't find the huge file

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-08-2013
samnyc samnyc is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 9 July 2014, 2:43 PM EDT
Posts: 224
Thanks: 66
Thanked 3 Times in 3 Posts
My file system is 100%, can't find the huge file

Please help. My file system is 100%, I can't seem to find what is taking so much space. The total hard drive space is 150Gig free but I got nothing now.

I did to this to find the big file but it's taking so much time. Is there any other way?


Code:
 
du -ah / | more
 
find ./ -size +200M -exec du -h {} \;

Sponsored Links
    #2  
Old 01-08-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 2 September 2014, 6:57 PM EDT
Location: Saskatchewan
Posts: 19,274
Thanks: 774
Thanked 3,238 Times in 3,036 Posts
The usual culprits are often in /var/, unless /var/ is its own partition on your system.

If you have lsof, this can help show you which files are actually open. So can ls -l /proc/[0-9]*/fd/ on some systems, particularly linux.

Beware -- do not simply delete the problem file when you find it! If it's still held open by anything, it will not be removed from disk, just removed from the directory -- forcing you to kill processes or reboot to close the file and fix the problem.

Truncate the file instead, i.e. : > filename to reduce it to zero bytes in size.
The Following User Says Thank You to Corona688 For This Useful Post:
samnyc (01-09-2013)
Sponsored Links
    #3  
Old 01-08-2013
adam25ca adam25ca is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 9 January 2013, 9:22 AM EST
Posts: 9
Thanks: 3
Thanked 1 Time in 1 Post

Code:
                       
  sudo  find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

The Following User Says Thank You to adam25ca For This Useful Post:
samnyc (01-09-2013)
    #4  
Old 01-09-2013
samnyc samnyc is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 9 July 2014, 2:43 PM EDT
Posts: 224
Thanks: 66
Thanked 3 Times in 3 Posts
Thank you so much for your help. I was able to find huge tar file, which I was able to remove. But it's still tight, I need to add more space to this server. Move all the old log files to new system.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Optimised way for search & replace a value on one line in a very huge file (File Size is 24 GB). manishkomar007 Shell Programming and Scripting 7 09-02-2011 10:59 PM
how to split a huge file by every 100 lines dtdt Shell Programming and Scripting 2 08-27-2011 04:04 AM
How to find a file whick is consuming larger disk space in file system lokeshpashine UNIX for Dummies Questions & Answers 6 04-04-2009 02:52 AM
insert a header in a huge data file without using an intermediate file deepaktanna Shell Programming and Scripting 10 02-23-2009 02:38 PM
find the largest file in whole system megh HP-UX 7 08-05-2008 12:17 PM



All times are GMT -4. The time now is 07:48 PM.