Both systemd and Bluetooth processes on my ASUS Tinkerboard (Debian 10) are utilizing a deleted rfkill
file. I suspect this might be the cause of the storage appearing as 100% full when checking with df -h
.
How can I restore a valid rfkill
file or stop the processes that are using this deleted file?
I cannot remove and reinstall rfkill
, because I get this error (the disk is full with the deleted file being in use):
dpkg: unrecoverable fatal error, aborting:
unable to fill /var/lib/dpkg/updates/tmp.i with padding: No space left on device
The alternative route to stop the processes works easily for Bluetooth, but systemd is such a core process (it has a pid number of 1) that I can't imagine how to do it:
lsof +L1
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME
systemd 1 root 89u CHR 10,242 0t0 0 1171 /dev/rfkill (deleted)
The disk is 16GB and shows as being full with df -h
, but du -kx / | sort -rn | less
shows only 3.5GB. Here are the first 50 lines apporximately:
3455876 /
2498820 /usr
1174128 /usr/lib
1054352 /usr/share
806276 /usr/lib/aarch64-linux-gnu
556544 /var
247288 /var/cache
238792 /var/cache/apt
225056 /usr/share/locale
198740 /home
198736 /home/linaro
190568 /usr/share/doc
187660 /usr/lib/aarch64-linux-gnu/dri
183944 /usr/bin
179352 /var/lib
177304 /var/cache/apt/archives
148316 /home/linaro/.cache
147356 /home/linaro/.cache/chromium
147352 /home/linaro/.cache/chromium/Default
146584 /home/linaro/.cache/chromium/Default/Code Cache
146564 /home/linaro/.cache/chromium/Default/Code Cache/js
122204 /var/lib/apt
122132 /var/lib/apt/lists
112628 /usr/share/fonts
104228 /var/log
102284 /lib
84692 /usr/share/fonts/truetype
77888 /usr/share/icons
74312 /usr/share/emacs
74264 /usr/share/emacs/26.1
73184 /usr/lib/python2.7
72984 /usr/lib/gcc
72980 /usr/lib/gcc/aarch64-linux-gnu
72976 /usr/lib/gcc/aarch64-linux-gnu/8
65860 /usr/lib/python3
65856 /usr/lib/python3/dist-packages
59900 /usr/share/emacs/26.1/lisp
56344 /lib/modules
56340 /lib/modules/4.19.193
56240 /lib/modules/4.19.193/kernel
56236 /lib/modules/4.19.193/kernel/drivers
54708 /lib/modules/4.19.193/kernel/drivers/net
54704 /lib/modules/4.19.193/kernel/drivers/net/wireless
52280 /usr/lib/python2.7/config-aarch64-linux-gnu
50100 /home/linaro/.config
49876 /home/linaro/.config/chromium
48744 /usr/include
48280 /usr/share/scratch
44276 /var/lib/dpkg
41632 /usr/share/icons/Adwaita
41396 /var/lib/dpkg/info
41316 /home/linaro/.config/chromium/Default
40312 /usr/lib/python3/dist-packages/scipy
39964 /lib/modules/4.19.193/kernel/drivers/net/wireless/rockchip_wlan
39952 /usr/lib/python3.7
37324 /usr/share/fonts/truetype/arphic
35040 /home/linaro/.config/chromium/Default/Service Worker
kill -9 1
will not work. So what do I do? – Dzseti Jun 30 '23 at 07:25