I used Kazam to record a 12-minute screen recording and it somehow managed to create a 40 GB file. This caused my computer (really the computer on a Husky robot) to run out of memory. I tried to delete the files, but there wasn't enough memory left to do that.
I read a couple of tutorials and askubuntu posts and saw that it was recommended to boot with a Live USB and delete the files that way.
I was able to do this and used sudo nautilus
to give me the ability to remove the large video files.
However, the computer still didn't have enough memory to run the robot's startup scripts. I was able to SSH in and run sudo tune2fs -m 0 /dev/sda6
(as another post suggested) and I was able to make enough memory to actually boot the computer fully. I then proceeded to make sure all the Trash folders for every user where fully emptied and manually did rm -rf ~/.local/share/Trash/*
.
Now, df
still has /dev/sda6
as being almost full:
eric@cpr-mic09:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4014820 0 4014820 0% /dev
tmpfs 807508 2892 804616 1% /run
/dev/sda6 114756748 109069280 5671084 96% /
I tried using du
to see if there were any obviously large files, but nothing looked out of the ordinary. I also used lsof
to try to find deleted files sudo lsof | grep deleted
(source). I even went so far as to just kill everything that lsof returned (source):
$ kill -9 $(lsof -ti | awk "{print $2}")
Nothing I have done so far has been able to get the Disk Space to free up. I've rebooted multiple times to no avail. Below are some relevant screenshots. I would really appreciate any advice.
Edit:
The inode
usage looks okay. I checked with df -i
and /dev/sda6
is only using 16%.
Other sources I used:
- No more disk space: How can I find what is taking up the space?
- Large discrepancy between df and du
- https://serverfault.com/questions/62411/how-can-i-sort-du-h-output-by-size
- https://phoenixnap.com/kb/linux-check-disk-space
- df shows all space taken, but du doesn't add up
- https://unix.stackexchange.com/questions/182077/best-way-to-free-disk-space-from-deleted-files-that-are-held-open
- https://unix.stackexchange.com/questions/68523/find-and-remove-large-files-that-are-open-but-have-been-deleted
- https://unix.stackexchange.com/questions/34140/tell-fs-to-free-space-from-deleted-files-now
- How do I free up disk space?
/snap
directory. You don't have Spotify running on the robot, do you? 🤔