1

I was working in a text document with Mousepad, when I accidentally disconnected the power cable, shutting down the computer. When I started my Xubuntu session again, I tried to open the document, but it has become unreadable. When I double click on it, it shows this:

enter image description here

Even more, Thunar thinks the file type is "Microsoft Help Attribute Definition File" (?), instead of "plain text document". I have tried any encoding available in Mousepad, all of them showing "nonsense".

How can I recover my original document? Is this perhaps a bug of Mousepad?

  • Is there a `~` backup? If your file was `/path/to/foo` look for `/path/to/foo~` – terdon Jan 04 '17 at 11:25
  • Sadly not. I tried all encoding available in Mousepad. All give "nosense". –  Jan 04 '17 at 17:52
  • Well, yeah, makes sense if the file is corrupted. Have you tried simply `cat`ing it from the terminal? What does `file filename.txt` show? – terdon Jan 04 '17 at 19:00
  • I get "filename: data". The file does not have ".txt" extension. If I open it with `nano` I get same weird code, and below it says "converted from Mac format". `head`, `vi`, and `cat` give the same nosense. –  Jan 05 '17 at 08:40

0 Answers0