Power went down while editing a file with Geany and the file got truncated to 0 bytes ... Is it possible to recover the file ?
Asked
Active
Viewed 992 times
1 Answers
0
Normally editors rename the file to a backup, usually with a '#' or '~' in the name, and then save the new file. In your case, the power failed before the new file was written, so just look for the backup.

psusi
- 37,551
-
Geany does not automatically create backup files (AFAIK) ... and it was not a new file ... i was editing a file which was already on the disk – dhanesh sr Oct 03 '13 at 14:02
-
@dhaneshsr, yes, and normally editors save the new version to a new file, then replace the original with it, and move the original to a backup. If there's no backup, then it's gone. – psusi Oct 03 '13 at 14:03
fsck
? Did the file contain anything at a previous point? – David Foerster Oct 03 '13 at 09:19