Can I bring a file's content to previous version on NTFS partitioned drive?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
user1234
Posts: 415
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 156 times
Been thanked: 90 times

Can I bring a file's content to previous version on NTFS partitioned drive?

Post by user1234 »

I was trying the imppup64, and opened my main fossapup's save file from there. I don't know what happened...I didn't delete the contents of the save file, but somehow the save file got empty. I could not restore it. I thought that it might be something wrong with rox and just restarted. After I booted to my main puppy, I found that all the content of my save file had been lost. The worst part is that I don't even have a backup of my savefile, except for few files, and maybe my programmes' source code as well on github. But I don't think I had updated the repository. So I might have lost my latest changes to the important files as well.

Is there any way I can bring my savefile's contents back? Otherwise I will have to do every change that I made to my puppy again, by hand.

** Panicked :shock: **

PuppyLinux 🐾 gives new life to old computers ✨

User avatar
JakeSFR
Posts: 277
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 159 times

Re: Can I bring a file's content to previous version on NTFS partitioned drive?

Post by JakeSFR »

Probably this is what happend: viewtopic.php?t=4720
It's already fixed upstream: https://github.com/puppylinux-woof-CE/woof-CE/pull/2691

As for the recovery, ntfsundelete works pretty well, but here the file itself wasn't deleted, but its contents, so I wouldn't expect much...
If the savefile wasn't encrypted/compressed, maybe testdisk/photorec could find some of the files, but even if, the filenames will be most likely lost...

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
rcrsn51
Posts: 1390
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: Can I bring a file's content to previous version on NTFS partitioned drive?

Post by rcrsn51 »

This won't be much consolation, but I have found that the safest strategy with NTFS is to split off a Linux partition and use a save folder.

User avatar
mikewalsh
Moderator
Posts: 6166
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 796 times
Been thanked: 1987 times

Re: Can I bring a file's content to previous version on NTFS partitioned drive?

Post by mikewalsh »

@user1234 :-

Little consolation, I know, but I back my saves up once a week, regular as clockwork. It's not a bad habit to get into, goes without saying.

All it takes is a simple copy/paste operation. That's all I've ever done.

It's saved my bacon on more than one occasion..!

Mike. ;)

User avatar
user1234
Posts: 415
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 156 times
Been thanked: 90 times

Re: Can I bring a file's content to previous version on NTFS partitioned drive?

Post by user1234 »

However.. clicking twice by accident, it promptly mounted the savefile to the same loop device.

I think that's what I did. I wish that I had deleted the overall savefile on its own. Then at least it would have been there in the hdd to get revived with the program that you mentioned :(.

mikewalsh wrote: Fri May 13, 2022 1:26 pm

It's not a bad habit to get into, goes without saying.

I'd say that rather not backing up is a bad habit, and of course bad habits need to be punished :|.

Thank you all for looking into my problem :), and confirming that nothing can be done :(.

Next few days would be very tiring, I think :cry:.

PuppyLinux 🐾 gives new life to old computers ✨

User avatar
bigpup
Moderator
Posts: 7001
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 915 times
Been thanked: 1532 times

Re: Can I bring a file's content to previous version on NTFS partitioned drive?

Post by bigpup »

Try this:

Need to boot not using the bad save so it is not loaded.

Mount the partition the save file is on.

Open a terminal, and enter:

e2fsck /path to save file

For example:
Partition is sda1
Save file name is pupsave.2fs

e2fsck /mnt/sda1/pupsave.2fs

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
user1234
Posts: 415
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 156 times
Been thanked: 90 times

Re: Can I bring a file's content to previous version on NTFS partitioned drive?

Post by user1234 »

bigpup wrote: Fri May 13, 2022 3:19 pm

Try this:

Need to boot not using the bad save so it is not loaded.

Mount the partition the save file is on.

Open a terminal, and enter:

e2fsck /path to save file

For example:
Partition is sda1
Save file name is pupsave.2fs

e2fsck /mnt/sda1/pupsave.2fs

Too late for that. Have removed the savefile completely :oops:.

It's OK for me now, since most of my files are backed up.

The only that is not backed up is a SDL2 (in C) program, which I made when I was learning SDL. It'd be a mere practice for me now to remake the program :thumbup2:.

PuppyLinux 🐾 gives new life to old computers ✨

Post Reply

Return to “Users”