Filesystem is FULL on my KiwiSDR [fixed]

edited September 2021 in Problems Now Fixed

Installed version: v1.432, built Feb 11 2021 00:55:18

Cannot build, filesystem is FULL!


root@kiwisdr:/# df -h

Filesystem   Size Used Avail Use% Mounted on

udev       10M   0  10M  0% /dev

tmpfs      99M 8.3M  91M  9% /run

/dev/mmcblk1p1 3.5G 3.3G  24M 100% /

tmpfs      247M   0 247M  0% /dev/shm

tmpfs      5.0M   0 5.0M  0% /run/lock

tmpfs      247M   0 247M  0% /sys/fs/cgroup


root@kiwisdr:/# du -sh 

/usr/bin/du: cannot access ‘proc/24692/task/24692/fd/3’: No such file or directory

/usr/bin/du: cannot access ‘proc/24692/task/24692/fdinfo/3’: No such file or directory

/usr/bin/du: cannot access ‘proc/24692/fd/3’: No such file or directory

/usr/bin/du: cannot access ‘proc/24692/fdinfo/3’: No such file or directory

0 dev

0 proc

0 sys

4.0K ID.txt

4.0K media

4.0K mnt

4.0K nfs-uEnv.txt

4.0K srv

16K lost+found

28K home

40K tmp

2.4M opt

3.3M etc

3.6M sbin

5.8M bin

8.3M run

21M boot

78M var

97M lib

852M usr

2.3G root


root@kiwisdr:/# cd root/

root@kiwisdr:~# du -sh 

4.0K build.log

4.0K ovh-update.sh

92K extensions

596K KiwiSDR-antenna-switch-extension

26M kiwi.config

29M build

2.2G Beagle_SDR_GPS


root@kiwisdr:/usr# du -sh 

4.0K games

4.0K src

3.4M sbin

39M bin

40M local

44M include

220M share

507M lib


There are no large log files. What can I do in this case? Any advice ?

Comments

  • 2.2G Beagle_SDR_GPS

    That's the problem. It should be < 250 MB at most. Use the alias du for a nice sorted list of file/dir sizes and du. for the size of the current directory.

    So for example on one of my Kiwis:

    root@www:~# cdp

    root@www:~/Beagle_SDR_GPS# du.

    237M .

    root@www:~/Beagle_SDR_GPS# du

    0 d

    0 g

    0 kiwi

    0 n

    0 ng

    4.0K config.h

    4.0K dl

    4.0K k

    4.0K _LICENSE

    4.0K other.config

    4.0K RASPBERRYPI

    4.0K types.h

    4.0K up

    4.0K update_fix

    4.0K valgrind.h

    8.0K bits.h

    8.0K _COPYRIGHT

    8.0K kiwi.h

    8.0K Makefile.comp.inc

    8.0K README.md

    12K CROSS_COMPILE

    12K kiwi.config

    16K arch

    16K main.cpp

    44K Makefile

    56K ui

    100K init

    104K CHANGE_LOG

    104K net

    160K e_cpu

    292K support

    328K pru

    488K platform

    544K verilog

    652K gps

    1.9M tools

    2.1M KiwiSDR.rx14.wf0.bit

    2.1M KiwiSDR.rx3.wf3.bit

    2.1M KiwiSDR.rx4.wf4.bit

    2.1M KiwiSDR.rx8.wf2.bit

    3.9M verilog.Vivado.2017.4.ip

    5.6M pkgs

    5.7M rx

    8.9M unix_env

    9.3M web

    16M extensions

    root@www:~/Beagle_SDR_GPS# 


  • edited September 2021
    root@kiwisdr:~/Beagle_SDR_GPS# du
    0	d
    0	g
    0	kiwi
    0	n
    0	ng
    4.0K	config.h
    4.0K	dl
    4.0K	k
    4.0K	_LICENSE
    4.0K	RASPBERRYPI
    4.0K	types.h
    4.0K	up
    4.0K	update_fix
    4.0K	valgrind.h
    8.0K	_COPYRIGHT
    8.0K	kiwi.h
    8.0K	Makefile.comp.inc
    8.0K	README.md
    12K	CROSS_COMPILE
    12K	kiwi.config
    16K	arch
    16K	main.cpp
    40K	Makefile
    56K	ui
    84K	CHANGE_LOG
    96K	init
    108K	net
    172K	e_cpu
    240K	support
    328K	pru
    484K	platform
    524K	verilog
    652K	gps
    1.8M	KiwiSDR.rx3.wf3.bit
    1.8M	KiwiSDR.rx8.wf2.bit
    1.9M	KiwiSDR.rx14.wf0.bit
    1.9M	KiwiSDR.rx4.wf4.bit
    1.9M	tools
    2.1M	verilog.Vivado.2014.4.ip
    3.6M	verilog.Vivado.2017.4.ip
    5.6M	pkgs
    5.7M	rx
    6.9M	extensions
    8.4M	web
    24M	unix_env
    


    root@kiwisdr:~/Beagle_SDR_GPS# du.
    2.2G	.
    


    This is strange.

    du. - shows 2.2G., but sum of files du approximetly 100 MB.

    Maybe somewith wrong with files system ?

  • Try:

    cdp

    cd .git

    du.

    la

    I'll bet for some reason you have huge files in the "hidden" .git directory. Although I don't understand why that would be.

  • To recover from this you can simply remove the directory entirely, reclone and then rebuild. This should work even if you are connected via the admin page console tab because the system is running from the installed image and not from anything in ~/Beagle_SDR_GPS.

    So try:

    cd

    rm -rf Beagle_SDR_GPS

    df . [should be lots of free space now]

    gclone Beagle_SDR_GPS

    cdp

    update_fix

    When it finishes restart using the restart button on the admin control tab. Or if connected via ssh use the ku command.

  • Thanks. Fixed.

Sign In or Register to comment.