I was using LibreOffice today and it shut down with no warning. I was typing one second and the window was gone the next. There were actually four LO windows open and they all closed. A window saying "Recover Pages" (or something to that effect) popped up. I clicked Recover and Finish but only two of the pages were actually recovered. After a bit of research, I installed Scalpel. From what I understand, to recover .odt files, you have to insert this at the bottom of scalpel.conf:
#---------------------------------------------------------------------
# OPENOFFICE FILES
#---------------------------------------------------------------------
odt y 20000000 PK????????????????????????????mimetypeapplication/vnd.oasis.opendocument.textPK META-INF/manifest.xmlPK????????????????????
ods y 10000000 PK????????????????????????????mimetypeapplication/vnd.oasis.opendocument.spreadsheetPK META-INF/manifest.xmlPK????????????????????
odp y 10000000 PK????????????????????????????mimetypeapplication/vnd.oasis.opendocument.presentationPK META-INF/manifest.xmlPK????????????????????
# odg y 10000000 PK????????????????????????????mimetypeapplication/vnd.oasis.opendocument.graphicsPK META-INF/manifest.xmlPK????????????????????
# odc y 10000000 PK????????????????????????????mimetypeapplication/vnd.oasis.opendocument.chartPK META-INF/manifest.xmlPK????????????????????
# odf y 10000000 PK????????????????????????????mimetypeapplication/vnd.oasis.opendocument.formulaPK META-INF/manifest.xmlPK????????????????????
# odi y 10000000 PK????????????????????????????mimetypeapplication/vnd.oasis.opendocument.imagePK META-INF/manifest.xmlPK????????????????????
# odm y 10000000 PK????????????????????????????mimetypeapplication/vnd.oasis.opendocument.text-masterPK META-INF/manifest.xmlPK????????????????????
# sxw y 10000000 PK????????????????????????????mimetypeapplication/vnd.sun.xml.writerPK META-INF/manifest.xmlPK????????????????????
#---------------------------------------------------------------------
My question is how do you do that? I'm able to uncomment on that page, but I'm not able to add anything new. I'm new-ish to linux so I'm sure there's something obvious I'm missing. Any help would be appreciated!!!
Help Recovering Files With Scalpel
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Help Recovering Files With Scalpel
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Help Recovering Files With Scalpel
scalpel.conf is in /etc/scalpel, therefore only root can write to it.
To edit it as root, use sudo nano /etc/scalpel/scalpel.conf to use the command line text editor Nano, or gksudo [text editor] to use whatever GUI text editor is installed. Replace [text editor] with pluma (MATE desktop), kate (KDE desktop) or gedit (Cinnamon and Xfce desktop).
To edit it as root, use sudo nano /etc/scalpel/scalpel.conf to use the command line text editor Nano, or gksudo [text editor] to use whatever GUI text editor is installed. Replace [text editor] with pluma (MATE desktop), kate (KDE desktop) or gedit (Cinnamon and Xfce desktop).
This puzzles me. Uncommenting, i.e. deleting '#'s is editing the file the same as adding something new is. If you can do one, you can do the other. Besides, any sort of editing is possible when not root. It's saving afterwards that only root can do.I'm able to uncomment on that page, but I'm not able to add anything new.
Re: Help Recovering Files With Scalpel
At least for gedit in Cinnamon this is not correct. If I do gedit /etc/fstab (note: without sudo) I get fstab opened in the text editor and in the title bar it says "Write-protected"; any kind of editing (deleting, adding) is impossible (saving naturally also). I don't know, if this on other desktop environments / text editors the same.Buzzsaw wrote:Besides, any sort of editing is possible when not root. It's saving afterwards that only root can do.
Re: Help Recovering Files With Scalpel
I only use Mousepad and nano, and in both of them it's possible to edit a read-only file, but not to save it.Cosmo. wrote:At least for gedit in Cinnamon this is not correct. If I do gedit /etc/fstab (note: without sudo) I get fstab opened in the text editor and in the title bar it says "Write-protected"; any kind of editing (deleting, adding) is impossible (saving naturally also). I don't know, if this on other desktop environments / text editors the same.