Re: Apparent disagreement between df and cp.
On 2012-06-28 09:32 +0200, Berni Elbourn wrote:
> On 28/06/12 05:45, email@example.com wrote:
>> How can df report MiBs available while cp reports
>> "No space left on device"?
>> peter@dalton:~$ df /media/43*
>> Filesystem 1K-blocks Used Available Use% Mounted on
>> /dev/sdd1 498648 18840 479808 4% /media/4345-A417
>> peter@dalton:~$ ls -l Mail.Text
>> -rw------- 1 peter peter 1511 Jun 27 20:28 Mail.Text
>> peter@dalton:~$ cp Mail.Text /media/43*
>> cp: cannot create regular file `/media/4345-A417/Mail.Text': No space left on device
>> Thanks for any ideas, ... Peter E.
> Are there too many files in target folder?
I suspect that is the case here: my crystal ball tells me the device has
an FAT16 filesystem, and those have a limited number of entries in the
root directory. The remedy is to move files to a subdirectory.
> Is the media readonly?
Then the error message would likely have been "Read-only file system".