Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 03-03-2005, 07:44 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
rm'ing files doesn't free up disk space

Hi folks,

I'm running FC3 and ran out of disk space on my /hda2 partition

After deleting a huge - and I mean approx 5Gb - worth of files, the df output still shows 0% free. None of these files were linked to other files. They should be well truly gone.

Rebooting and forcing a fsck doesn't seem to have solved the problem.

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 18951536 18025248 0 100% /
/dev/hdb1 240362656 84436260 1437 16596 38% /home2
/dev/hda1 101089 9323 86547 10% /boot
none 54940 0 54940 0% /dev/shm

However, I can now still copy large files to say /usr and delete them, but my Samba mounts see the server as 0 bytes free.

Any ideas?


- Earl
Old 03-05-2005, 10:04 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 250Reputation: 250Reputation: 250
What files did you delete? Were they files in /var ? If you delete a file that is currently being written to, it won't free up the space til you restart the process that was writing to the file.

And you should really think about having the psuedo type filesystems on their own partitions as well.. like /var and /tmp
Old 03-05-2005, 12:28 PM   #3
Senior Member
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
I've ran into the same situation with the 2.6.5-7.145-smp kernel, ended up with 0% space left on my / partition so I deleted ~14GB worth of files - waited a bit, 0% free was still reported. I switched runlevels and 0% free was still reported, and I could not create any files. Only a reboot corrected the situation. It appears there is a bug in the Linux kernel where when it runs totally out of space, it won't recognize freed space until a reboot. I'm sure that if it were to occur on another partition that an umount followed by a mount would correct it. I haven't tried "sync" because sync can be dangerous on mounted partitions at times.
Old 03-06-2005, 02:19 PM   #4
Registered: Jun 2003
Distribution: Fedora Core 5
Posts: 100

Rep: Reputation: 15
it's not a bug. It's a "feature" of the LVM, the volume manager. It happens on all LVMs, veritas included.
Old 03-06-2005, 07:40 PM   #5
Senior Member
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
"undesirable feature" = defect.


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
No free space on disk, but there is? Recirqie SUSE / openSUSE 4 02-22-2013 02:17 PM
How t get it known free disk space? ukrainet Linux - General 3 05-06-2008 11:52 PM
free disk space mp4-10 Linux - Software 1 04-06-2005 04:32 AM
Free up disk space TheShemeta Slackware 5 11-26-2003 05:50 PM
How to see free disk space bripage Linux - General 3 04-29-2002 09:38 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:45 PM.

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