I’m saving images to external storage, and sometimes get a “no space left on device” exception. It appears there is still space left in external storage, not sure why I’m getting this error:
Couldn't save image!: test.jpg
java.io.FileNotFoundException: /mnt/sdcard/test/test.jpg (No space left on device)
at org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method)
at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:152)
at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
at java.io.FileOutputStream.<init>(FileOutputStream.java:69)
at com.me.test.MyTest.save(MyTest.java:100)
Any idea how this could be happening? Running on a Nexus S. When I go into System Settings -> Storage, I see under “USB Storage” the following:
Total Space: 13.31 GB
Available Space: 12.92 GB
I might be misinterpreting this as the space that’s left for me?
Thanks
This error is common in the case where there are no more inodes left in the file system.
How many files have you written to this disk?
Are your test files all very small?