I am trying to create a shell script for easily doing some long commands for a busybox based Unix system.
The system doesn't have commands like lsof
but has other basic commands. The issue I am facing is that when a new feature is added, I need to delete certain folders and push new folders into the system using adb push
.
When I do that, I get an error saying that there is no space left on the device. So I need to do a power cycle.
I was wondering if there is any way to remove the data after performing rm -rf
without having to perform a power cycle i.e shutdown and restart.
On Linux-based system, the spaces occupied by a file is removed when
The 'rm' will meet the first condition, however, you will have to kill all processes that have the files open for the space to be cleared, otherwise, it will only happen during reboot (power cycle), when the fsck utility will identify "orphan" i-nodes, not referenced by any folder.
There is no information about which processes are holding the open handles. Here are few generic alternatives: