Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have very a simple question. How to recover a .ogv file on my /home ext4 partition?

I overwrote the .ogv file (I confused input and output in Arista transcoder).

I did research.

  • TestDisk can undelete files on FAT and NTFS, but not on EXT4.
  • PhotoRec does not support .ogv recovering.
  • Foremost also does not support .ogv

More info:

The file is located at: /home/gasper/Video/Webcam/2011-02-02-181200.ogv

share|improve this question
    
@Roland Tayor: thanks for editing! –  gsedej Feb 20 '11 at 20:39
    
no problem ^^ :) –  RolandiXor Feb 20 '11 at 22:09
add comment

1 Answer 1

up vote 2 down vote accepted

If you immediately stopped writing to that partition, the file could be recoverable, I have just tested it, though on a small .ogv file (3 MiB).

The trick is to use PhotoRec and in the File Opt there tick .ogg. The .ogg and .ogv files have very similar layouts, so PhotoRec might be able to recover your file (as it did for me).

You of course have to launch the programme from a LiveCD or other partition, otherwise you may overwrite your original file.

Good luck.

share|improve this answer
    
Thanks for advice. I did't find any .ogv file when trying recovering all types (maybe I missed). I am going to try again only .ogv. BTW, I am still using partition... why is urgent to stop using? I can reover old files (1 month). Isn't FS smartly using older nodes? –  gsedej Feb 20 '11 at 21:20
    
I don't know what you mean by "smartly using older nodes". When a file is deleted, the blocks it used are marked as free, and can be then overwritten at any time. Your chances of recovery are then getting slimmer and slimmer with every write to the disk. --- When I recovered my .ogv file, it had .ogg extension, but otherwise was the same as the original .ogv file. –  arrange Feb 20 '11 at 21:34
    
Thank you! I was (somehow) able recover file. It's only part of it but it works. I might need to search for all pieces of it. Btw, there is no possibility like restore filename and folder location due to file-system limitation right? –  gsedej Feb 20 '11 at 21:45
    
This is not a "limitation", if you want to delete something, it's deleted, as name suggests :) Most desktop solutions uses the notion of "trash": it's of course not deletion, but moving files to a place, where you can "recover" from. But if really deleted a file, then it's hard to do perfectly since deletion - by design - deletes files :) Use trash instead, if you have doubts you need to get back. Surely some low level tools can scan disk for the deleted file, but it's not perfect especially if further writes may overwrite some data blocks and other problems ... –  LGB Feb 21 '11 at 20:53
    
@LGB thanks for explanation. I rewritten file not deleted it. EXT doesn't have undelete "feature" like NTFS has (I don't know if this was planned) en.wikipedia.org/wiki/Ext3#Recovery PhotoRec has ability to undelete files on FAT or NTFS –  gsedej Feb 23 '11 at 16:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.