LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   undelete file that mplayer is still playing. (https://www.linuxquestions.org/questions/linux-newbie-8/undelete-file-that-mplayer-is-still-playing-423887/)

h2gofast 03-11-2006 02:55 PM

undelete file that mplayer is still playing.
 
ok, I unrared a movie,started it in mplayer, it plays fine, then I deleted the rar files and accidentally the movie.avi file. mplayer is still playing the movie.
Question is how can I undelete the movie?

h2gofast 03-11-2006 07:36 PM

for posterity's sake and anyone else who might find themselves here.
First you need a goat, and a fire, and a stone table with the kernel source etched on its surface. chanting these commands.as you lead the goat into the fire...
#ps aux for the pid of mplayer
#lsof -p PID
and when the console breathes the filename of the movie you are playing it will also return the inode number of the deleted file
#sync
#debugfs /dev/deviceOfLostFile
#dump <inode_number> /another_filesystem/lostvid
#quit
Chase the flaming goat into the neighbors back yard while dancing arcane folk dances and screaming my name is Richard Stallman.

cs-cam 03-11-2006 10:12 PM

Ha, nice solution! Hope you do end up finding that goat...

h2gofast 03-12-2006 09:23 AM

I got the file back and the charred goat is hanging around the dumpsters at the local strip mall. It's the Penn Station Manager's problem now.


All times are GMT -5. The time now is 02:22 PM.