Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
to reset Xsane to its default settings, but put in an extra space and wrote
Code:
rm -rf ~/ .sane/xsane/
.
This seems to have removed all the files and settings in /home. I now boot into openSUSE 42.1 with everything as if I had just installed 42.1.
I haven’t written to my HDD and can clone all of it or the /home partition with dd, but I don't know if I can then restore /home with something like extundelete or should try to recover files with TestDisk or PhotoRec. /home is on its own ext4 logical partition.
Any advice will be received with all wishes of Karma for the sender.
Last edited by thorkelljarl; 03-11-2017 at 01:50 PM.
When you say that you have "backup", what does that mean? Do you have a backup of your entire home folder or partition somewhere? How old is that backup?
I have copies of the files that were stored in the various folders in /home on an external HDD, but not a backup such as with the program Back in Time. It is inconvenient but not fatal that my bookmarks and the settings for /home are not at hand.
Unfortunately, Linux did exactly what you told it to do. I hate it when it does that!
Certainly, do not write anything to the harddrive (intentionally - there's lots of writing that is beyond your control). And shut it down (cleanly) as soon as possible. Boot from a LiveCD - my preference is "SysRescueCD". Mount the harddrive you are recovering from as read-only. After that, try the "photorec" command. Make sure anything recovered by photorec is written to a different device (not the harddrive you are trying to recover from - if you have mounted it read-only as I mentioned, you would be protected already).
If photorec doesn't save you, there's not much left, in the "easy" department, except going to your backups and recovering as much from there as possible. There are other file recovery things you could try, but they get involved and complicated, and probably aren't worth it in your case, since you have backups you can fall back to instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.