I found a large file and wanted to get rid of it. I deleted it, but the disk space was not reclaimed.
Upon investigation, it seemed that deleted files were still in use by processes that had to be killed. I ran 'lsof +L1' and found two Juce processes still using the 1.1 GB /boot/run.log file. They were zombies, so they could not be killed.
I googled some more and found this recipe:
Code: Select all
lsof | grep "(deleted)$" | sed -re 's/^\S+\s+(\S+)\s+\S+\s+([0-9]+).*/\1\/fd\/\2/' | while read file; do bash -c ": > /proc/$file"; done
Grep lsof output to extract only deleted files. Sed extract the process id and filedescriptor id from each line, and create a string in format {pid}/fd/{fid}. While loop and output nothing to each file, setting them to empty.
It worked. The disk space was reclaimed immediately. But I decided to reboot anyway shortly after.
I didn't use sound for a couple of hours, then I did, and noticed that my volume control script was not working anymore:
Code: Select all
[16899-0] > /home/luc/scripts/volumechange.fish up
amixer: Unable to find simple control 'Master',0
amixer: Unable to find simple control 'Master',0
amixer: Unable to find simple control 'Master',0
osdctl: option requires an argument -- 'b'
Then I ran Catia and now it has 16 alsa_pcm Midi-Through playback ports andd 16 alsa_pcm Midi-Through capture ports that I didn't have before. I used to have just one for each.
Looks like I truncated something in /proc that I shouldn't have. Does anybody know how I can fix this situation?