Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th August 2008, 09:19 AM
rweed Offline
Registered User
 
Join Date: Jun 2007
Posts: 224
F9: Why does deleting files not free up disk space?

First, don't tell me to empty the trash.

I ran out of space doing a build. I started removing things...about a 100MB at this point. df shows the used blocks going down, but still 0% free.

I did a df, deleted a 17MB file and then df again and still 0% free (used blocks went down again)

WTF? Is there some secret Trash folder somewhere like with Wine?

EDIT: It says 3870416 blocks available, 3772984 Used, 0 free, Use 100%

-Rick

Last edited by rweed; 24th August 2008 at 09:23 AM.
Reply With Quote
  #2  
Old 24th August 2008, 09:31 AM
ivancat Offline
Registered User
 
Join Date: Dec 2007
Posts: 596
tell us, how exactly do you remove files?

also, to make things look better and clearer use
Code:
df -h
instead of just
Code:
df
__________________
Ivan Cat (registered linux user #471784)
Linux Projects: constat | nconv
Fedora-related: Message In the Bottle
Reply With Quote
  #3  
Old 24th August 2008, 09:39 AM
rweed Offline
Registered User
 
Join Date: Jun 2007
Posts: 224
I used rm to delete the files.
Here is my df -h output (which isn't really clearer to me as the disk usage is approximate):
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      3.7G  3.6G     0 100% /
/dev/sda1             190M   19M  162M  11% /boot
tmpfs                 125M   48K  125M   1% /dev/shm
gvfs-fuse-daemon      3.7G  3.6G     0 100% /root/.gvfs
Reply With Quote
  #4  
Old 24th August 2008, 09:43 AM
ivancat Offline
Registered User
 
Join Date: Dec 2007
Posts: 596
Had you stopped the build before deleted any files? Maybe as you were deleting build continued to occupy disk space?
__________________
Ivan Cat (registered linux user #471784)
Linux Projects: constat | nconv
Fedora-related: Message In the Bottle
Reply With Quote
  #5  
Old 24th August 2008, 10:03 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
You are using 4 gig for Fedora?
Reply With Quote
  #6  
Old 24th August 2008, 10:08 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,933
One command that could tell you what's using all your disk space would be
Code:
du -S | sort -n -r | more
Run it as root so you have access to almost all the folders / sub folders. When the command finishes you should get an ordered list of disk usage sorted largest to smallest. You may want to make sure any other mounted partitions are un-mounted before you run the command as it will drastically increase the time it takes for the command to complete if it reads all mounted partitions My guess is that you probably don't care how much space is used on, for example, /media/windows.

Edit: I'm with marcrblevins. 4GB is a bit small for a Fedora install.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 24th August 2008, 10:34 AM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
Glenn, don't you mean
Code:
du -hS / | sort -n -r | more
by chance ?
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager

Last edited by Nokia; 24th August 2008 at 10:37 AM.
Reply With Quote
  #8  
Old 24th August 2008, 10:44 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,933
Probably. That command was one given to me by someone else here, a few years back, when I was trying to determine where all my disk space went. How will your additions to the command affect the output, he asks as he runs off to try it out.....

Actually, the h is "human readable" I believe? The / simply means from root folder on down ?

Much more refined than my example Nokia
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #9  
Old 24th August 2008, 10:55 AM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
Actually, it all started from the missing / sign. In the absence of it, du would have ran in current dir. The -h is just a helper in reading the output more easily. What concerns me now is that, perhaps a simple
Code:
du -hS /home/user | sort -n -r | more
should be generally speaking more than enough. Also
Code:
 du -hs /home/<user>/.local/share/Trash/
might be relevant.
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #10  
Old 24th August 2008, 11:14 AM
bingoUV Offline
Registered User
 
Join Date: May 2007
Posts: 245
Nokia, this h screws up the sort completely. Human readability won't matter much if the output is sorted well, as biggest offenders are shown clearly at the top.

Maybe some human readability hack should be applied after the sort is done like
Code:
du -S / | sort -n -r | blah blah
Reply With Quote
  #11  
Old 24th August 2008, 12:44 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,933
So has the OP figured out where the space has gone or has he realized that 4GB is barely enough for a default Fedora install.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #12  
Old 24th August 2008, 09:30 PM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,107
The output of df shows 3.7 G total, 3.6 used, 0% free. A moment's calculation shows that just over 97% of the partition is in use and Fedora is, by default, set to keep 5% reserved for emergency root use. Thus, although 3% of the partition is unused, it's not available, either.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #13  
Old 25th August 2008, 12:36 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,933
Bottom line, no matter how you perceive the results, no disk space left.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #14  
Old 3rd September 2008, 09:28 PM
rweed Offline
Registered User
 
Join Date: Jun 2007
Posts: 224
Quote:
Originally Posted by sidebrnz
The output of df shows 3.7 G total, 3.6 used, 0% free. A moment's calculation shows that just over 97% of the partition is in use and Fedora is, by default, set to keep 5% reserved for emergency root use. Thus, although 3% of the partition is unused, it's not available, either.
I'm logged in as root though...it's 4.5GB because it's a VM I set up just to play around with F9, but got pressed into service for buildling kernels to assist with my laptop install problem.
Reply With Quote
Reply

Tags
deleting, disk, files, free, space

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to free up disk space? thesun Using Fedora 4 20th October 2007 12:12 PM
Hard disk -- Free space not equal to available space ?? michaeleekk Hardware & Laptops 2 30th August 2006 02:20 PM
No free space after deleting files on ext3 Partitions elgreco Using Fedora 0 18th June 2006 10:39 AM
rm'ing files doesn't free up disk space Earl Using Fedora 0 4th March 2005 12:48 AM


Current GMT-time: 14:51 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat