Debian itself takes up a lot of space, version D8.x took up less than 1.5G, and now it looks like this: clean install Flash D11.9 +v1.690 Kiwi V1
root@kiwisdr:/# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk1p1 3.6G 2.3G 1.1G 70% /
root@kiwisdr:/#
root@kiwisdr:/# du
/usr/bin/du: cannot access 'proc/1321/task/1321/fd/4': No such file or directory
/usr/bin/du: cannot access 'proc/1321/task/1321/fdinfo/4': No such file or directory
/usr/bin/du: cannot access 'proc/1321/fd/3': No such file or directory
/usr/bin/du: cannot access 'proc/1321/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 srv
16K lost+found
52K home
52K tmp
1.3M run
4.2M etc
7.6M sbin
9.8M bin
15M opt
31M boot
128M var
309M lib
649M root
1.2G usr
root@kiwisdr:/#
D11.11 v1.707 Kiwi V1
root@kiwisdr:/# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk1p1 3.6G 2.7G 644M 82% /
root@kiwisdr:/#
root@kiwisdr:/# cd ..
root@kiwisdr:/# du
/usr/bin/du: cannot access 'proc/3036/task/3036/fd/4': No such file or directory
/usr/bin/du: cannot access 'proc/3036/task/3036/fdinfo/4': No such file or directory
/usr/bin/du: cannot access 'proc/3036/fd/3': No such file or directory
/usr/bin/du: cannot access 'proc/3036/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 srv
16K lost+found
52K home
1.3M run
4.3M etc
7.6M sbin
9.9M bin
15M opt
50M tmp
62M boot
254M var
340M lib
783M root
1.2G usr
root@kiwisdr:/#
root@kiwisdr:~/Beagle_SDR_GPS# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk1p1 3.5G 2.9G 363M 89% /
root@kiwisdr:~/Beagle_SDR_GPS# cd ..
root@kiwisdr:~# du
4.0K build.log
4.0K _FLASHED_FROM_SD_
34M kiwi.config
107M build
697M Beagle_SDR_GPS
root@kiwisdr:~# cd ..
root@kiwisdr:/# du
/usr/bin/du: cannot access 'proc/3908/task/3908/fd/4': No such file or directory
/usr/bin/du: cannot access 'proc/3908/task/3908/fdinfo/4': No such file or directory
/usr/bin/du: cannot access 'proc/3908/fd/3': No such file or directory
/usr/bin/du: cannot access 'proc/3908/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 srv
16K lost+found
52K home
72K tmp
1.3M run
4.3M etc
7.6M sbin
9.8M bin
15M opt
62M boot
340M lib
449M var
837M root
1.2G usr
root@kiwisdr:/#
If desired manually delete old archived logs and rotated logs:
sudo find /var/log -type f -regex ".*\.gz$" -delete
sudo find /var/log -type f -regex ".*\.[0-9]$" -delete
Local Git repo cleanup and compress deltas:
sudo -i
cd /root/Beagle_SDR_GPS/
git clean -ffd
nice -n 19 git gc --force --prune=all
The git gc housekeeping takes awhile to run. Use nice to set a low priority if running on an active Kiwi server. You can add --aggressive to git gc if really adventurous, but it could take a very long time to run. YMMV.
Cleanup local APT cache:
sudo apt clean
Usually I end up with around 800MB+ free on my KiwiSDR 2.
Sorry if you took offence to this. I was merely sharing some tools to help anyone who needed to see and free up space based on the conversations above.
Comments
Actually - looking at mine, the MMC is nearly full too.
About to sftp into it and have a look
Your journal file is 353MB. Do a "m clean_logs".
Debian itself takes up a lot of space, version D8.x took up less than 1.5G, and now it looks like this: clean install Flash D11.9 +v1.690 Kiwi V1
D11.11 v1.707 Kiwi V1
D11.11 v1.707 Kiwi V2
The new git "rebase" I'm working on reduces the size of the Kiwi repo by about 90% to 55 MB. So that should fix this problem.
I am trying to remotely upgrade a Kiwi from the command line and get this error from git.
Any suggestions?
root@kiwisdr:~/Beagle_SDR_GPS# df .
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p1 3.6G 2.5G 884M 75% /
root@kiwisdr:~/Beagle_SDR_GPS# gup
POST git-upload-pack (997 bytes)
remote: Enumerating objects: 432, done.
remote: Counting objects: 100% (432/432), done.
remote: Compressing objects: 100% (202/202), done.
error: RPC failed; result=18, HTTP code = 200| 129.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
root@kiwisdr:~/Beagle_SDR_GPS#
Forget trying to update for now. I'm working on a fix, but it will take some time to develop.
Cleanup logs older than one day:
sudo journalctl --vacuum-time=1d
If desired manually delete old archived logs and rotated logs:
sudo find /var/log -type f -regex ".*\.gz$" -delete
sudo find /var/log -type f -regex ".*\.[0-9]$" -delete
Local Git repo cleanup and compress deltas:
sudo -i
cd /root/Beagle_SDR_GPS/
git clean -ffd
nice -n 19 git gc --force --prune=all
The git gc housekeeping takes awhile to run. Use nice to set a low priority if running on an active Kiwi server. You can add --aggressive to git gc if really adventurous, but it could take a very long time to run. YMMV.
Cleanup local APT cache:
sudo apt clean
Usually I end up with around 800MB+ free on my KiwiSDR 2.
FYI - anyone wanting to see where all their storage space has gone, log into your console and issue
"ncdu"
This is completely pointless. And I'm not going to waste any time by responding to people who ask questions based on this.
Go do something productive and just wait for the fix I'm working on.
Hi @jks
Sorry if you took offence to this. I was merely sharing some tools to help anyone who needed to see and free up space based on the conversations above.
Sheesh.
😟