Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Distribution: Mint 18.3 Cinnamon, Gallium, Ubuntu Armbian (headless), Arch (learning)
Posts: 138
Rep:
Timeshift Restore Question...
Please tell me that Timeshift hides the other images somewhere after it does a "restore"...
I just needed to shift back my root directory a couple of days and it restored JUST my root directory... as in NOTHING ELSE IS THERE!!!! It wiped my second HDD as well which had MANY MANY MANY important docs, my business paperwork, files, tax info, divorce stuff.... PLEASE tell me there is something I can do about this....
Why in the HELL did it decide to wipe that second drive?!?!?!?!!? I don't like programs touching that drive for any reason.
I am not in the mood to answer dumb questions like "did you have that drive backed up anywhere else". We can all do math....
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Is the drive that got wiped NTFS. Timeshift is not compatible with NTFS partitions. I'd try photorec/testdisk to rescue the data. If it's a Linux filesystem, then you could use foremost.
Last edited by AwesomeMachine; 05-11-2018 at 09:07 PM.
Let's guess you're talking about Mint - Clem blogged a while back about the introduction of timeshift as a system restore snapshot tool as an companion to the normal "user data" backup.. I haven't looked at it, but I'm guessing that's what it is. I also believe it can be extended to do other data.
How did you erase the other disk - I've had to use photorec in the last couple of weeks after Win10 upgrade destroyed itself. Got photos, videos, text files back (it works on Linux filesystems too).
Last edited by syg00; 05-11-2018 at 10:23 PM.
Reason: last comment
Distribution: Mint 18.3 Cinnamon, Gallium, Ubuntu Armbian (headless), Arch (learning)
Posts: 138
Original Poster
Rep:
Quote:
Originally Posted by syg00
Let's guess you're talking about Mint - Clem blogged a while back about the introduction of timeshift as a system restore snapshot tool as an companion to the normal "user data" backup.. I haven't looked at it, but I'm guessing that's what it is. I also believe it can be extended to do other data.
How did you erase the other disk - I've had to use photorec in the last couple of weeks after Win10 upgrade destroyed itself. Got photos, videos, text files back (it works on Linux filesystems too).
Yes- sorry, running on Mint Cinnamon. I had it backing up everything keeping three snapshots on hand, backed up daily.
How and WHY the other disk wiped itself i beyond me. That's the thing that throws me for a loop...
I am running TestDisk right now and copying the files to an external drive. I am going to run Photorec after TestDisk and do the same. So far I have 1,685,944 copied with 82 failed. It will probably run all night at this pace. Hopefully (fingers crossed) that PhotoRec will be able to recover the files that TestDisk can't.
All in all I have learned A LOT tonight about depending on a single backup. What drives me crazy was last night I started figuring out how to automatically copy my snapshots and throw them on my Nextcloud server. If I would of gotten it done last night, I wouldn't be where I am at now. Hopefully it all works out though and I get my files back, too many important files that can never be replaced.
Distribution: Mint 18.3 Cinnamon, Gallium, Ubuntu Armbian (headless), Arch (learning)
Posts: 138
Original Poster
Rep:
TestDisk just finished. It found all my folders but they were all empty when I opened them. I am running PhotoRec and already I am pretty impressed. It's giving me a 1hr 45min estimate. That's pretty cool! I just hope it works above all. If it doesn't I will throw in a live cd and try it that way.
I will document this for reference for anyone else that is in my situation. Hopefully we get some positive results...
Ahh - I read "It wiped my second HDD as well" as "I wiped my second HDD as well", so I thought you had (deliberately ?) erased it yourself. I found photrec worked best if I specified particular filetypes rather than let it do everything.
I did photos (jpeg, Nikon raw) first then videos, then docs, then png (gazillions on a Win10 system - I didn't even look at them).
This enabled me to parse the recovery directories more easily and target what I was really interested in.
Last edited by syg00; 05-11-2018 at 11:29 PM.
Reason: s/testdisk/photorec/
As you are bringing files back to life, your (supposedly) background indexer will jump in and start doing its work. Tracker was firing off threads all over the place. On this day-to-day system I don't allow it to run, but on the laptop I was using it was enabled. PITA.
Before trying to restore data to this extent, it is always wise to make a complete image of the disk in question (particularly if the disk is failing, which doesn't appear to be the case for you), or at least ensure that you only have read access to the device - you don't want to make things worse by writing to that disk in any way whatsoever.
Before trying to restore data to this extent, it is always wise to make a complete image of the disk in question (particularly if the disk is failing, which doesn't appear to be the case for you), or at least ensure that you only have read access to the device - you don't want to make things worse by writing to that disk in any way whatsoever.
Yes I agree. I was up until 5 am working and researching every option. What I ended up doing this morning is opening up the case and unplugging the power and SATA cable to the drive. My main SSD drive isn't an issue as the information on there isn't a huge deal. I will wipe the SSD and install a fresh copy of my OS (Mint) and get all my security and network settings the way I like them. I feel "naked" running the OS with no extra security.
The drive I am really worried about is 500gb and other than my server drive, I don't have another drive equal or greater in size (that has enough free space). The important stuff is only about 300gb in size, however, the way I understand it, I need to image the entire drive in it's current state to create a safe copy to try and pull data from.
I ram TestDisk and PhotoRec last night/this morning and was able to recover about 40 thousand photos and about 1100 pdf's. It was picking up the same file at least twice from what I observed. As suggested above it's far easier to pull one or a couple of extensions at a time. It can overwhelm you quick if you try to do too much. As far as I understand these programs (TestDisk & PhotoRec) do not write any data and only copy data it pulls to an outside source. I would feel better (safer) working with a copied image rather than the real deal though.
Well, I am going to wipe this SSD and get my main OS back up and running (correctly). I might even go ahead and switch to XFCE on this computer since I have been putting it off for a few months.
Now that I am getting over the heartache of all of this, the learning points I can take away is-
1. Make backups of your backups, sync backups with your server as well (where's that emoji that's beating his head against the wall?).
2. Don't rely on just one backup program for your important data.
3. As cheap as HDD's have gotten, invest in another physical drive for JUST backup images.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
If the data is only stored in one place, even if it's an external drive, it's not backed up. For there to be a back-up there has to be two copies of whatever it is!
Distribution: Mint 18.3 Cinnamon, Gallium, Ubuntu Armbian (headless), Arch (learning)
Posts: 138
Original Poster
Rep:
Quote:
Originally Posted by AwesomeMachine
If the data is only stored in one place, even if it's an external drive, it's not backed up. For there to be a back-up there has to be two copies of whatever it is!
Thank you AM. Yes, I should of made that clearer- THe secondary drive had the snapshots from my main drive and I also had files and folders copied onto the secondary drive that I used pretty often. My thinking was if a snapshot was to fail at least I still had a copy of the actual file and folder. I never counted on something like this though... I am still trying to think of a better way. I am wondering about having two programs that took snapshots and each backed up on two separate drives. So if I had Timeshift and a backup program called "dummy". Both Timeshift and Dummy are taking snaps of the same thing and backing them up on two devices. I would use my secondary HDD and also configure my NextCloud to pick up the new images when they post. Would that be a better way? I have been stewing about this all day as I have been getting my system all setup to the way it was.
I'm not a great fan of the cloud, nor of automatic backups as the main data backup mechanism (if something goes wrong on device A then the problem will be replicated onto device B). For me, manual imaging or backing up on to an external device is the way to go. That way I can see what's going on when I do it and keep that device stored separately. You shouldn't rely on backups to another device on the same physical computer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.