LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
 
Search this Thread
Old 01-26-2005, 08:32 AM   #1
cmdrfunk
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
large file deletion problem


On my /home partition, I keep having a 2+ gig file that I delete with rm. The inode gets released, but the system still thinks that space is used, so I start getting out of space warnings everywhere (the partition is only 5 gigs) The fix so far is to reboot, and then it recognizes the space as unused.

How can i get the space recognized as unused without rebooting?

The file system is ext3.

I'm using Debian Sarge if that makes a difference.

thanks.

Last edited by cmdrfunk; 01-26-2005 at 08:40 AM.
 
Old 01-26-2005, 09:45 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
That is odd.... first off, why do you have to delete it so often? It seems that the file is still kept open by a program. If a file is opened by a program, the filesystem will not release the space until the file is closed. What is this large, automatically-recreated file? It sounds like some sort of log file, but that should not be on /home....
 
Old 01-26-2005, 10:55 AM   #3
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
There is another process somewhere using the file, so the space is not released until that process closes the file. Try using the fuser command before you delete the file. Fuser will give you the pid of the process holding the file. If the process is a logging daemon like syslogd, you can probably remove the file, then send a HUP to the logging daemon holding the file busy.
 
Old 01-26-2005, 11:37 PM   #4
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Hi cmdrfunk,

check the .Trash directory in your user home

note: if you were root for the delete it will be in /root/.Trash
 
Old 01-27-2005, 11:21 AM   #5
cmdrfunk
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Matir
That is odd.... first off, why do you have to delete it so often? It seems that the file is still kept open by a program. If a file is opened by a program, the filesystem will not release the space until the file is closed. What is this large, automatically-recreated file? It sounds like some sort of log file, but that should not be on /home....

How silly of me. I should have realized it was still opened.

My .xsession-errors file is the one that keeps growing and growing. It repeatedly has this msg in it:

kdecore (KIconLoader): WARNING: Icon directory /usr/share/icons/hicolor/ group 48x48/stock/object not valid.


I haven't been able to figure out what's causing that yet.

thanks for the help
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
large file download problem sikkalgopal Linux - General 4 11-11-2005 08:52 PM
File Deletion mhkhalqani Linux - General 1 10-12-2005 03:08 AM
Large File Sync Problem climbingmerlin Linux - Software 2 09-23-2005 10:14 AM
Problem with file-deletion after a while JohnWayne Linux - General 3 07-26-2004 12:57 PM
vsftp large file download problem kmrob72 Linux - Networking 4 02-17-2004 05:46 PM


All times are GMT -5. The time now is 11:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration