LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   cp: No space left on device, but df does not agree! (https://www.linuxquestions.org/questions/linux-general-1/cp-no-space-left-on-device-but-df-does-not-agree-21996/)

Correador 05-28-2002 09:47 AM

cp: No space left on device, but df does not agree!
 
Thought I was past the stage of posting such basic questions but obviously I am not...

I have started to get "No space left on device" errors when writing to files in /home (/dev/hda9 on my box). But df says there is plenty of space and lots of free i-nodes:

$ cp yyy zzz
cp: writing `zzz': No space left on device
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 4.9G 1.9G 2.8G 40% /
none 125M 0 124M 0% /dev/shm
/dev/hda9 21G 3.2G 16G 17% /home
/dev/hda1 5.9G 4.6G 1.3G 78% /mnt/windows/system
/dev/hda5 2.9G 2.2G 830M 73% /mnt/windows/d
/dev/hda6 1.2G 874M 348M 72% /mnt/windows/e
$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hda7 656000 147226 508774 23% /
none 31940 1 31939 1% /dev/shm
/dev/hda9 5672960 18813 5654147 1% /home
/dev/hda1 0 0 0 - /mnt/windows/system
/dev/hda5 0 0 0 - /mnt/windows/d
/dev/hda6 0 0 0 - /mnt/windows/e

What might be going on here?

l_9_l 05-28-2002 11:27 PM

may you've limited the free space size for the regular users via quota,can you copy to that partition as a root or not?

Leffe 05-29-2002 08:29 AM

Try df -i
perhaps you're out of inodes.
(as I recall it will report as "No space left on device")

Correador 05-29-2002 10:27 AM

I did think it might be quotas but the quota command reports "none" for all users (both -u and -g so it's not group quotas either).

I-nodes are not the problem.
Any other ideas?

Correador 06-01-2002 02:12 PM

Thought I'd post the resolution...

It turned out to be a corrupted file system. Calling e2fsck from single used mode fixed it. I spotted that when the system seemed out of space, a kernel error messge from the file system module reported that there was an ambiguity in something called a block group.
I didn't think of running e2fsck because it was run when the machine rebotted. Obviously it get run in such a way that not all errors get fixed.

deniscruze 04-18-2011 08:26 AM

I have same kind of issue,

I have ran e2fsck -fyc <device> (/dev/emcpowera1)

than mount the partition, and do #cd lost+found, there u will find some recovered data.

i my case these data was not required thus we have remove the data and recover the space.


All times are GMT -5. The time now is 01:21 AM.