We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Deleted ~/.local/share, please help with restoring

asked 2020-04-15 16:14:05 +0200

nephros gravatar image

updated 2020-04-16 17:34:03 +0200

Hello Sailors,

Due to a mishap entirely of my own fault I deleted my /home/nemo/.local/share :/ Now, most of the stuff in there isn't all that important and I have restored some of it from an old backup. However, some things are and make apps misbhave if they're missing, and ciritcal system files were not included in that backup.

I have the following questions:

  1. One of the affected storages is the non-privileged contacts database at ~/.local/share/system/Contacts/. This was re-created by restarting contactsd.service, but it is empty now. How is this database populated from the "privileged" one?
  2. What is the default content of ~/.local/share with no third-party apps installed? Can I restore it from somewhere?
    • specifically, what are the contents, and permissions of:
      • ~/.local/share/jolla-email/
      • ~/.local/share/jolla-notes/
      • ~/.local/share/org.sailfishos/
      • ~/.local/share/Sailfish
      • ~/.local/share/system/
  3. Anything else to know about that dir?

Thank you very much for any insights you can share.

edit retag flag offensive close delete

Comments

1

Maybe the first thing is to restore your back-up, if any (settings=>backup=>restore)

At least your accounts and contacts will be recovered.

objectifnul ( 2020-04-15 16:51:40 +0200 )edit

Thanks for answering. Unfortunately I don't have a suitable backup, the ones I have are too old.

nephros ( 2020-04-15 16:56:07 +0200 )edit
1

I don't suppose there's much you can do, but following the guidelines from this link just might help you getting some of your files back. Good luck.

mortenbo ( 2020-04-15 21:16:19 +0200 )edit
1

Which device are you using?, please update your tags to reflect device type, thanks.

My device (Jolla1) shows the following. I have edited the image to remove apps installed by me.

I'm not too sure about 'data', if I click it, it shows 'avatars'.

image description

Hope this helps.

Spam Hunter ( 2020-04-15 21:22:32 +0200 )edit

Thank you, @Edz. the telepathy permissions seem weird ;)

is there anything interesting in systemd/?

nephros ( 2020-04-16 11:13:36 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2020-04-16 14:13:57 +0200

nas gravatar image

@nephros

what is the filesystem of your device ? If there is any chance restoring deleted files you should NOT use the filesystem, so new files will not overwrite the deleted ones. IF YOU ARE FAMILIAR with terminal you could try taking an image backup of your home partition from Resque mode (like as described in pan tao's answer here: https://together.jolla.com/question/81832/full-phone-backup-guide/ ), and with that you could use recovery tools like PhotoRec on the image. PhotoRec works with Ext4. I tried it under linux with very good results, but as I see it can run on macintosh / windows aswell. Be careful of the dd usage - if you use it wrongly you may end up with empty partition and no backup.

edit flag offensive delete publish link more

Comments

Thank you. That is useful information for a catastrophic deletion.

In my case, I kept using the device actively for some time, so I think little of use would be recoverable.

Also, the critical parts, i.e. identifying file type (apart from common media types), identifying where it goes, and which permissions it should have is very often lost with those recovery tools.

FWIW, device is a Xperia X Dual-SIM, i.e. luks-encrypted ext4 home.

nephros ( 2020-04-16 17:32:12 +0200 )edit

@nephros you write here your phone is xperia x, but taged it as xperia-10.

scanner ( 2020-04-17 09:33:52 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2020-04-15 16:14:05 +0200

Seen: 290 times

Last updated: Apr 16 '20