Delete Recording From Full Disk
From MythTV Official Wiki
If your frontend crashes when you try to delete a recording from a full disk, do the following: (This may only work if the backend is not currently recording.)
- Kill the hanging frontend
$ killall -TERM mythfrontend
- Start the frontend
$ mythfrontend
- Get the date and time of the recording to delete (In the "Watch Recordings"/"Delete Recordings" Section of the frontend). If it hangs again, kill it again like above and try the following:
- Connect with the MySQL-Command-Line-Client (eg. "mysql" like in the following code) to the database usually named "mythconverg"
$ mysql -u root -p -D mythconverg mysql> select title, basename from recorded; +----------------------------------------+-----------------------+ | title | basename | +----------------------------------------+-----------------------+ | Zug des Lebens | 17_20070104223400.nuv | | Tagesschau | 12_20070205135800.nuv | | Navy CIS | 14_20070204201400.nuv | | Criminal Minds | 14_20070204211500.nuv | | Gantz | 24_20070205002900.nuv | | Star Trek - Enterprise | 14_20070205041900.nuv | | James Bond 007: Die Welt ist nicht | 16_20070205082600.nuv | | Frontal 21 | 10_20070123205900.nuv | | James Bond 007 - Octopussy | 12_20070203232100.nuv | | Mars Attacks! | 6_20070119201400.nuv | | Terminator 3 - Rebellion der Maschinen | 16_20070115010000.nuv | +----------------------------------------+-----------------------+ 11 rows in set (0.00 sec) mysql> exit Bye
- Take into account, during the next step, that you already know the filename from the basename column
- Find the file in your recordings directory that matches the recording choosen to sacrifice
$ ls /{recordings_dir}/*_{YYYYMMDDHHMM}??[_{YYYYMMDDHHMM}??]*.nuv # {...} needs to be replaced by the proper values (recording directory / start time digits / end time digits) # [...] is optional depending on your version
- Empty the file, but don't erase it (erasing messes everything up)
$ echo '' > {previously_determined_file} # {...} needs to be replaced by the proper values (the path to the file you previously determined to be the recording to erase) # If you get a "Permission denied" error, you need to switch to a user with write permission to the file (eg. type "su" to become root)
- Delete the recording properly from within the frontend