View Single Post
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#247
Originally Posted by RobbieThe1st View Post
Try copying 20M files to the rootfs?
This is a good idea. In the meantime I read this and tried to create a big file, and erase it afterwards. This changed the freespace giving another 2 megabytes free. See the log:
Code:
XXXXX@nc4200:~$ ssh root@192.168.X.X
root@192.168.X.X's password: 


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# cd /
Nokia-N900:/# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.6M    205.6M     17.9M  92% /
Nokia-N900:/# touch file
Nokia-N900:/# chattr -c file
Nokia-N900:/# dd if=/dev/zero of=file bs=4096
dd: writing 'file': No space left on device
6243+0 records in
6242+0 records out
Nokia-N900:/# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.6M    227.6M         0 100% /
Nokia-N900:/# ls -l file
-rw-r--r--    1 root     root     25567232 Nov  7 09:37 file
Nokia-N900:/# rm file
Nokia-N900:/# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.6M    203.9M     19.6M  91% /
Nokia-N900:/# dd if=/dev/urandom of=file bs=4096
dd: writing 'file': No space left on device
6245+0 records in
6244+0 records out
Nokia-N900:/# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.6M    227.6M         0 100% /
Nokia-N900:/# ls -l file
-rw-r--r--    1 root     root     25575424 Nov  7 09:38 file
Nokia-N900:/# sync
Nokia-N900:/# rm file
Nokia-N900:/# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.6M    204.3M     19.1M  91% /
Nokia-N900:/# sync
Nokia-N900:/# df -h /
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.6M    203.9M     19.6M  91% /
Still it's much lesser than before.

Is it possible that untarring doesn't activate compression in ubifs?
__________________
Ernesto de Bernardis