LinuxQuestions.org
Visit Jeremy's Blog.
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 11-10-2005, 03:15 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
file deleted, but no space freed


Hi,
i tried to save a document, but there was not enough space in my hd /home/kostas partition. So, i deleted-using rm- a really large compressed file. However, df shows, that no place has been freed.
Ideas?
 
Old 11-10-2005, 07:44 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
If you remove a file while it is stil "open" it doesn't actually get removed. Only the name gets removed. The file inode is still there and won't go away until the process that has it open gets terminated.

You can try using lsof to figure out which process has a large file with no name open and then kill that process.

More simply you can just reboot your host as it will kill all processes and on the boot should be OK.
 
Old 02-06-2008, 03:22 PM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
Hi,
i have the same problem again -after long time, but rebooting doesn't present any "available space" with "df". Specifically, i have
Code:
1k-blocks Used   available
858166    815258 0
Shouldn't 858166-815258 be presented in the available field?
 
Old 02-07-2008, 10:43 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,117

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
Shouldn't 858166-815258 be presented in the available field?
No, because this space is reserved for root, who is now probably the only user who can log in and delete or move some files.
 
  


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
kernel 2.6.13 - space not freed to kernel sarunya Linux - General 6 09-02-2005 09:14 AM
Slow recognition of free space on deleted filesystems robthky Linux - Enterprise 1 07-30-2005 07:24 PM
message, message.1 in /var/log/ can be deleted for space? phpsharma Linux - Newbie 4 11-17-2004 12:23 PM
what files can be safely deleted to save disk space? rohan208 Linux - General 9 05-27-2004 08:06 PM
I've deleted a log file to save space and... ganninu Linux - General 3 11-04-2003 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:25 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