Out of disk space on root fs


#1

Also late to get Legato SDK into life, he.

Almost there, just intended to debug first example, I am running out of disk space on root fs.

root@swi-mdm9x15:/opt/legato/apps# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                50688     50616        72 100% /
devtmpfs                 76060         0     76060   0% /dev
tmpfs                    76208         0     76208   0% /dev/shm
/dev/mtdblock5            5376      3484      1892  65% /mnt/userrw
/dev/mtdblock4           33792     11460     22332  34% /mnt/flash
var                      76208     12124     64084  16% /var
/dev/mtdblock4           33792     11460     22332  34% /home
/dev/mtdblock4           33792     11460     22332  34% /usr/local
/dev/mtdblock4           33792     11460     22332  34% /opt
var                      76208     12124     64084  16% /etc/ld.so.conf
var                      76208     12124     64084  16% /etc/profile
/dev/mtdblock4           33792     11460     22332  34% /etc/passwd
/dev/mtdblock4           33792     11460     22332  34% /etc/group
var                      76208     12124     64084  16% /etc/ld.so.cache
cgroupsRoot              76208         0     76208   0% /sys/fs/cgroup
none                       128         0       128   0% /var/volatile/tmp/legato/sandboxes/cellNetService
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/bin/cellNetService
devtmpfs                 76060         0     76060   0% /var/volatile/tmp/legato/sandboxes/cellNetService/dev/log
devtmpfs                 76060         0     76060   0% /var/volatile/tmp/legato/sandboxes/cellNetService/dev/null
devtmpfs                 76060         0     76060   0% /var/volatile/tmp/legato/sandboxes/cellNetService/dev/zero
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/ld-linux.so.3
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libc.so.6
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libcellNetService.so
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libgcc_s.so.1
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/lible_cellnet_7664b3            d5d684810eef8e179eada497c657c01a9a7ca74fe568a7c75b4a3fa8cf_server.so
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/lible_cfg_3634764604            3917b99eb9a49c348b0aa78adffb3bc46b4c0a366ecd234044c3aa_client.so
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/lible_mrc_2ac65712a8            85b023486870fa797afd866551a14f134a23cb248e260b79c4dc50_client.so
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/lible_sim_d1f79cd4ba            1b35aaf606698b6157278527fb52b9cc3fa0425360d67776cb4bde_client.so
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/liblegato.so
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libm.so.6
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libpthread.so.0
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/librt.so.1
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libstdc++.so.6
var                      76208     12124     64084  16% /var/volatile/tmp/legato/sandboxes/cellNetService/tmp/legato/serviceDirect            oryClient
var                      76208     12124     64084  16% /var/volatile/tmp/legato/sandboxes/cellNetService/tmp/legato/serviceDirect            oryServer
root@swi-mdm9x15:/opt/legato/apps# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                50688     50616        72 100% /
devtmpfs                 76060         0     76060   0% /dev
tmpfs                    76208         0     76208   0% /dev/shm
/dev/mtdblock5            5376      3484      1892  65% /mnt/userrw
/dev/mtdblock4           33792     11460     22332  34% /mnt/flash
var                      76208     12124     64084  16% /var
/dev/mtdblock4           33792     11460     22332  34% /home
/dev/mtdblock4           33792     11460     22332  34% /usr/local
/dev/mtdblock4           33792     11460     22332  34% /opt
var                      76208     12124     64084  16% /etc/ld.so.conf
var                      76208     12124     64084  16% /etc/profile
/dev/mtdblock4           33792     11460     22332  34% /etc/passwd
/dev/mtdblock4           33792     11460     22332  34% /etc/group
var                      76208     12124     64084  16% /etc/ld.so.cache
cgroupsRoot              76208         0     76208   0% /sys/fs/cgroup
none                       128         0       128   0% /var/volatile/tmp/legato/sandboxes/cellNetService
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/bin/cellNetService
devtmpfs                 76060         0     76060   0% /var/volatile/tmp/legato/sandboxes/cellNetService/dev/log
devtmpfs                 76060         0     76060   0% /var/volatile/tmp/legato/sandboxes/cellNetService/dev/null
devtmpfs                 76060         0     76060   0% /var/volatile/tmp/legato/sandboxes/cellNetService/dev/zero
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/ld-linux.so.3
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libc.so.6
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libcellNetService.so
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libgcc_s.so.1
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/lible_cellnet_7664b3d5d684810eef8e179eada497c657c01a9a7ca74fe568a7c75b4a3fa8cf_server.so
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/lible_cfg_36347646043917b99eb9a49c348b0aa78adffb3bc46b4c0a366ecd234044c3aa_client.so
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/lible_mrc_2ac65712a885b023486870fa797afd866551a14f134a23cb248e260b79c4dc50_client.so
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/lible_sim_d1f79cd4ba1b35aaf606698b6157278527fb52b9cc3fa0425360d67776cb4bde_client.so
/dev/mtdblock4           33792     11460     22332  34% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/liblegato.so
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libm.so.6
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libpthread.so.0
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/librt.so.1
/dev/root                50688     50616        72 100% /var/volatile/tmp/legato/sandboxes/cellNetService/lib/libstdc++.so.6
var                      76208     12124     64084  16% /var/volatile/tmp/legato/sandboxes/cellNetService/tmp/legato/serviceDirectoryClient
var                      76208     12124     64084  16% /var/volatile/tmp/legato/sandboxes/cellNetService/tmp/legato/serviceDirectoryServer
root@swi-mdm9x15:~# du -h -d1 /
3.3M    /lib
0       /proc
4.6M    /opt
0       /sys
15.9M   /usr
36.0K   /media
752.0K  /etc
642.0K  /bin
15.1M   /var
7.3M    /mnt
0       /dev
1.3M    /sbin
4.5K    /boot
32.5K   /home
4.0K    /lost+found
1.1M    /data
50.1M   /

Legato framework version 14.07.0.Beta
Legato linux version 201403242250

Well, I doubt this is normal, so where did my disk space go?


#2

From looking at your logs, your /var directory seems to be taking up quite some space (15.1M) which is most likely why you are running out of disk space. Can you run du on that directory?

Is this a fresh install of Legato? Can you run ‘app list’ on target to see what apps are installed?

Did you copy any files onto the target?

I took a quick look at 2-3 of my devices and these are the numbers I roughly see with a fresh install of Legato.

root@swi-mdm9x15:/var# du -h -d1 / 20.9M /usr 36.0K /media 0 /sys 1.5M /etc 4.2M /opt 1.4M /bin 4.0K /dev 3.4M /var 8.2M /mnt 4.9M /lib 0 /proc 1.8M /sbin 4.5K /boot 1.4M /home 4.0K /lost+found 67.0K /data 47.8M /


#3

In the meantime, I’ve found 10MB file on /var/lib/rpm/log/log.0000000001. Not from me. In fact, this are my first steps into Legato world.

Deleting this file did not solve much, as /var is in a separate mount. I had to delete /data/ring.wav (1MB), and now modemDemo seems to has enough disk space to install.

I think, that clean flash kernel and rootfs, is correct way to go.