Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: LIbreOffice has corrupted a document -any recovery?

  1. #11
    Join Date
    Oct 2007
    Location
    Parkersburg, WV
    Beans
    38
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: LIbreOffice has corrupted a document -any recovery?

    Quote Originally Posted by ancaleth View Post
    Hey,

    followed the steps to recovery with foremost, but I am not getting output. When last command is entered into terminal, it doesn't actually do the recovery but shows the command options:

    Code:
    ancaleth@buntekuh:~$ sudo foremost -t odt -i /dev/sda2 -o /home/ancaleth/recovery
    foremost version 1.5.7 by Jesse Kornblum, Kris Kendall, and Nick Mikus.
    $ foremost [-v|-V|-h|-T|-Q|-q|-a|-w-d] [-t <type>] [-s <blocks>] [-k <size>] 
        [-b <size>] [-c <file>] [-o <dir>] [-i <file] 
    
    -V  - display copyright information and exit
    -t  - specify file type.  (-t jpeg,pdf ...) 
    -d  - turn on indirect block detection (for UNIX file-systems) 
    -i  - specify input file (default is stdin) 
    -a  - Write all headers, perform no error detection (corrupted files) 
    -w  - Only write the audit file, do not write any detected files to the disk 
    -o  - set output directory (defaults to output)
    -c  - set configuration file to use (defaults to foremost.conf)
    -q  - enables quick mode. Search are performed on 512 byte boundaries.
    -Q  - enables quiet mode. Suppress output messages. 
    -v  - verbose mode. Logs all messages to screen
    ancaleth@buntekuh:~$
    Any ideas...? I need to find an earlier version of the document I now have saved over...
    Yeah you're getting that message because odt is not one of the files you can search for. https://help.ubuntu.com/community/DataRecovery#Foremost has the list of file types you can choose from, also able to view this from the man page. Basically it's telling you you're doing something wrong in the command whenever that happens.

    A spreadsheet I was working on randomly got corrupted so I'm working on recovering it, I'll let you know if I get anywhere =)

  2. #12
    Join Date
    Mar 2007
    Location
    Bradford, UK
    Beans
    101
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: LIbreOffice has corrupted a document -any recovery?

    One option that has repeatedly worked for me with corrupted rtf files especially is to download Abiword, open the file in that, then save it as another format from Abiword. Job done.

  3. #13
    Join Date
    Sep 2011
    Location
    Pennsylvania, U.S.A.
    Beans
    2,992
    Distro
    Ubuntu Development Release

    Re: LIbreOffice has corrupted a document -any recovery?

    This is disturbing. It sounds like an ext4 problem. I've not had a problem but I believe in the future I'll store copies of significant files on either a USB drive (FAT32) or NTFS partition. It's good to know this problem is lurking. As others have pointed out this seems to not happen with L.O. for Windows, just *nix.

  4. #14
    Join Date
    Sep 2011
    Beans
    2

    Re: LIbreOffice has corrupted a document -any recovery?

    Hello ancaleth!

    I had the same problem as you and received the same message. I checked out the Ubuntu Wiki (https://help.ubuntu.com/community/DataRecovery) and was struck by the fact that they do not list odt files in the foremost section. They propose to look for ole files instead. So, I used the same command as suggested above, but replaced odt with ole. And I did not receive the same message you got, but Foremost worked!

    Don't know whether this is still of interest to you, but perhaps to others. Greetings,


    Vincent

  5. #15
    Join Date
    Dec 2009
    Beans
    548

    Re: LIbreOffice has corrupted a document -any recovery?

    Hi,

    I have the same problem with Ubuntu 11.10 and an odf document. The system says 0 byte length. The backup folder is empty and I have already tried with foremost without success. Any suggestions?

    Thank you very much

  6. #16
    Join Date
    Sep 2008
    Beans
    1

    Re: LIbreOffice has corrupted a document -any recovery?

    Same thing happened to me today.My linux crashed so I had to force shut it down.Before that I had saved my word document many times. When ubuntu reboots I see that the document I had been working with for few hours had 0 bytes on it. Backup file is ticked but there is no file in the backup folder.Run foremost just like described here and it recovered some ppt and xls files but not my opt file.

    Can anyone help me please? I had some very important things in that file and I cannt replicate it again.

    All the best

  7. #17
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    812
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: LIbreOffice has corrupted a document -any recovery?

    As a precaution, I'd recommend that users setup their home folder in a separate partition formatted with XFS, if you have the time and knowledge - not a bad investment for keeping precious files intact.

    XFS is rock solid and will not behave like this, it's also as fast as ext4 nowadays.

    If you go ahead, make sure package xfsprogs is installed. This will ensure mount and fs check tools are available.
    Last edited by LewisTM; April 3rd, 2012 at 08:52 PM.
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  8. #18
    Join Date
    Apr 2009
    Beans
    44
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: LIbreOffice has corrupted a document -any recovery?

    As another precaution:

    If you're working on an important file, why not place it in your Dropbox folder? That way, every time you save, it's going to be synchronized with its copy on the Dropbox server. And whatever happens to your computer, your file should still live in the cloud...

    (Added advantage: you can go back to previous versions should you mistakenly save unwanted changes.)

  9. #19
    Join Date
    Mar 2012
    Beans
    246

    Re: LIbreOffice has corrupted a document -any recovery?

    I have the same problem with LO 3.6.0.2 and NTFS filesystem. Under Windows it works, under Ubuntu each time i open a file, do something with it, save it and open up after some other time, LO ask me to recovery file. Don't know what to do. In

    firekage@deusex:~/.libreoffice/3/user/backup$
    there is no data to delete or do something with it.

  10. #20
    Join Date
    Nov 2012
    Beans
    1

    Re: LIbreOffice has corrupted a document -any recovery?

    I used the Photorec application, it recovers even overwriten files.
    You can get it from here:
    http://www.cgsecurity.org/wiki/PhotoRec
    That's free tool. Hope you'll be happy.
    To protect yourself next time do this in Libre Office:
    Go to Tools → Options and click on Load/Save
    In ‘General Settings’ under Load/Save check 'Always create backup copy' box.
    God bless
    Jack

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •