"No space left on device" error on /tmp. How to increase space on /tmp?
cp: writing `/tmp/tmpX2KZDc/system.image': No space left on device
However, when I right-click on properties, I see it has 51 items, totalling only 130.5 KB! this is a dual boot system with Win XP and Ubuntu 10.10 (~58Gb partition) Quote:
Quote:
Quote:
Any help appreciated. |
Maybe you have some opened and then deleted files on this device. Did you tried copying after reboot? How large is file "system.image"? You can also have some space reserved for root (by default this is 5%), check if root also cannot copy this file.
|
I think you should run a fsck on your filesystem, because it may have been corrupted (usually power failure or incorrect shutdown)
To do this, enter this in a terminal: Code:
sudo touch /forcefsck |
Quote:
More info: I was running a python build script tool and got this error. Exception: Command cp -Rfp /home/anil/mydroid/myfs/* /tmp/tmpX2KZDc failed Here is a partial output from the console. "No space left on device" error. --- mke2fs 1.41.12 (17-May-2010) Filesystem label=android_fs OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) Stride=0 blocks, Stripe width=0 blocks 64000 inodes, 256000 blocks 12800 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=67371008 32 block groups 8192 blocks per group, 8192 fragments per group 2000 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 22 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. cp: writing `/tmp/tmpX2KZDc/system.image': No space left on device --- |
Quote:
|
run
Code:
df -i oops! the OP has already tried this...my bad. |
HI,
Whats is the linux distro in your pc, just try using Disk Usage Analyser.and check how your disk space is distributed in filesystem. There you can track the files having more space.If it is an unwanted file,delete and recover space. In case of improper shutdown also there is possibility of file locking. |
Quote:
|
Quote:
At the point it fails, apparently it has already created the image. To me, it seems the problem is with /tmp. |
Can you modify this script to pause before erroneous "cp" command and then check free space on /tmp and amount of data to copy? Something like:
Code:
df -h /tmp Code:
os.system("some linux command") I have no other ideas, I vote for really finite free space. And if you want to incrase space for /tmp - if you have more free space on hard drive (other partition or not allocated space), you can temporary remount /tmp directory there. If not, then partition resizing is possible, but not recommended by me. Backup is needed before doing this. |
Quote:
Quote:
Quote:
I am wondering; when the error says Quote:
|
This "tmp" is not on your PC filesystem. First is created file "filesystem.img" with size 262143999 bytes (250MB), next this file is formated as ext3 filesystem and mounted in subdirectory "tmp" (not related to /tmp) created in working directory. And then data is copied there.
You did not enter -h parameter in "du" command but I think there are 4k blocks. So you have about 243MB on prepared filesystem and about 254MB (65048*4096) to copy. Try incrasing this value if you have access to this script, but I don't known if incrased image file fit into your device, or remove some unnecesary files/packages from compilation. Also I don't known why these command works executed step by step. |
1 Attachment(s)
Quote:
It says the size is only 62Mb. I tried to find the block size: Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 09:31 PM. |