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
387 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 500 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now