My OS is Ubuntu LTS 22.04. I executed a FFMPEG script file to split multiple video streams. This takes several hours, so normally I would turn off the computer screen.
I go to lock the screen and the computer freezes with just the cursor moving, and session still unlocked. I do ctrl alt f3, and leave the computer there until the following morning.
I come back the next morning morning and tty screen is saying something along the lines of write error. I attempt to do Ctrl Alt F1, then F2, F3, I get video signal error and monitor is stuck with non POST orange light except on the 'regular login' screen which is all black. I decide to just restart the computer.
The Ubuntu login splash screen takes longer than usual to load, and its finally able to display login text box. And then I get a pop up saying 'Low disk space on Filesystem root, only 150mb left'; similar image at this StackExhange site. I guess this is what caused the 'write to diskspace error' in tty.
Ffmpeg script extracted some of the file to the desired location (for presumably at least 2 of 8 hours), but some time in the mid operation I guess it redirected to the '/home' location, instead of the '/media/subdir' location.
Unfortunately, executing, to find all files changed in the last 4 hours ust displays ecrypt fs files:
sudo find /home -mmin -240 -ls -size +1000M
In disk analyzer:
/var is 57GB /home is 51GB
Total partition size is 124GB. I deleted stuff in the cache directory like thumbnails to help free up some space.
In disk analyze there's a dir called ecryptfs with the following tree format:
home
└─.ecryptfs
└─myUsername
├─.Private 51GB
└─.ecryptfs 16KB
I've highlighted all the ecryptfs that are over 1GB large and modified in the last 24 hours. https://imgur.com/a/IO7PpeV
Largest files in /var/lib that are more than 1GB in size are, apt, snapd, and flatpak.
For the rest of /var, it's /tmp at 4.6gb and /log at 19gb
find /home -type f -iname '*.mp4', did not show any possible files from the ffmpeg operation.
If there's any useful diagnostic files in /var/log in regards to this question, including why the computer froze (again) after pressing lock at upper right hand of gnome screen, it would be appeciated. Otherwise I'd like to just delete it/purge it.
Edit: I have since emptied the contents of /var/syslog file that was 14GB in size, and have followed the advice of this StackOverflow post.
I've executed the following to show output from journalctl, and generated over 800 thousand lines:
today=$(date +%F)
sudo journalctl --directory=/var/log/journal \
--since "$today 01:00:00" \
--until "$today 09:00:00" \
--no-pager > out1.txt
I've included the following notable lines:
kernel: ecryptfs_write_metadata_to_contents: Error attempting to write header information to lower file; rc = [-28] kernel: ecryptfs_write_metadata: Error writing metadata out to lower file; rc = [-28] rsyslogd[1293]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2112.0 try https://www.rsyslog.com/e/2027 ] kernel: ecryptfs_write_end: Error encrypting page (upper index [0x0000000000000000])
Even though I've set it to 1am to 9am in the morning, and reduced the output from 800 thousand lines to 50 thousand lines, it seems the issue started at 8:40 am; so worst case scenario FFMpeg may have written files to /, from 2:55 am to 8:40 am.
This is the final with just One thousand lines left:
today=$(date +%F)
sudo journalctl --directory=/var/log/journal \
--since "$today 01:00:00" \
--until "$today 09:00:00" \
--no-pager |
grep -F -v \
-e '== Stack trace for context 0x5fe1ab13e180 ==' \
-e 'The offending callback was SourceFunc().' \
-e 'Attempting to run a JS callback during garbage collection.'\
-e "rsyslogd[1293]: action 'action-2-builtin:omfile'" \
-e 'No space left on device' \
-e 'Error attempting to write header information to lower file' \
-e 'Error writing metadata out to lower file' \
-e 'ecryptfs_write_end: Error encrypting page' \
-e 'Error writing headers; rc = [-28]' \
-e 'ecryptfs_encrypt_page: Error attempting to write lower page; rc = [-28]' \
> out1.txt
https://pastebin.com/DxD8yqNe
I have since used ecryptfs-mount-private, and ecryptfs-find, to analyze each ecryptfs files, and asides from the baloo indexer being over 3GB in size, nothing seems out of the ordinary. The syslog file may have indeed been the culprit. But I'm still curious as to where the FFMPEG files may have gone to.
Edit:
I've looked at the file access times, and it doesn't FFMpeg may not have performed further split operations.