Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

df -k shows no space left, even after i delete things. Always 100% use Disappearing hard drive space! :(

Posted on 2004-04-27
5
Medium Priority
?
401 Views
Last Modified: 2013-12-15
Hi,

I recently was doing some cp -R and some deletions of files when installing XFree 4.4, so that now I have a strange error - even when I delete files, my hard drive shows that 100% of disk space is used. I can delete more and more files, but it still always shows 100% usage.


[root@icecream root]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2              8127808   7911328         0 100% /
/dev/sda1               101089     15059     80811  16% /boot
none                    256672         0    256672   0% /dev/shm
[root@icecream root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             7.8G  7.6G     0 100% /
/dev/sda1              99M   15M   79M  16% /boot
none                  251M     0  251M   0% /dev/shm
[root@icecream root]#

Are some examples.  I can still write stuff / copy stuff using root until the sda2 used is the actual number of 1k-blocks. However, when another user (regular user) tries to write to the disk, it says the disk is full.

What might be the problem?

Thanks.!

-Edward
0
Comment
Question by:edwardt
  • 3
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 2000 total points
ID: 10933839
There's a percentage of each file system reserved (10% as I recall) that root, and only root, can use. In your case this would mean that the amount used would have to drop below 7315000 or so before the Use% would go below 100%. Since the file system is at 7911328 you'd need to remove some 600Mb more to fall below 100% in use.
0
 

Author Comment

by:edwardt
ID: 10933840
By the way, my inodes says

[root@icecream root]# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda2            1032192  261058  771134   26% /
/dev/sda1              26104      49   26055    1% /boot
none                   64168       1   64167    1% /dev/shm

So I haven't run out of inodes.

-Edward
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10933886
Correct...
0
 

Author Comment

by:edwardt
ID: 10933904
By the way, my inodes says

[root@icecream root]# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda2            1032192  261058  771134   26% /
/dev/sda1              26104      49   26055    1% /boot
none                   64168       1   64167    1% /dev/shm

So I haven't run out of inodes.

-Edward
0
 

Author Comment

by:edwardt
ID: 10933946
Perfect answer. Thanks!

-Edward
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question