LUKS>ext4 ... files are gone

folprecht

New Member
Joined
Mar 11, 2025
Messages
3
Reaction score
0
Credits
40
After doing some experiments and whatnot I ended up with my / and Timeshift partitions both completely full. Later when I had to run a Timeshift restore, I knew something was wrong when Timeshift was complaining about some "rsync delete_file not permitted ... unlink ...".
After restarting, the system wouldn't boot, not even show in UEFI boot options. To my surprise my /, /home and Timeshift partitions were all empty! All my system files just disappeared due to some dark magic. Including the backups.
Only things remaining are two very early Timeshift snapshots from ~9 months ago.
No idea how this could have happened. Maybe previous headers might have been restored somehow? Sudden incompatibility with LUKS2 argon2id?
It's not the ext4 partitions that disappeared, it's the data on them. So the files might still be on the disk I just don't know how to recover them without risking overwriting the empty space they left after themselves.

What I've tried (running on the partitions from a live Ubuntu from USB):
I tried Gparted's recover data option but it didn't find anything useful.
I tried recovering superblocks with e2fsck, they're all the same.
I had minor success trying PhotoRec, which recover files from / almost the original size of the /, but the files are just gibberish with random names and folder structure.
gpart, testdisk, scalpel and extundelete didn't help either (at least the way I've tried them with my limited knowledge).

Background:
I was backing up /home as well, but have omitted /home recently. I also omitted backing up flatpak folder because it was eating up a lot of space. I was also running Docker (some people suggest Docker+Timeshift can cause problems).

Anyone has any lead on how to bring my system back?
 

Attachments

  • Screenshot from 2025-03-07 16-49-42.png
    Screenshot from 2025-03-07 16-49-42.png
    8.3 KB · Views: 17
  • Screenshot from 2025-03-07 16-49-14.png
    Screenshot from 2025-03-07 16-49-14.png
    8.4 KB · Views: 14
  • Screenshot from 2025-03-07 16-49-02.png
    Screenshot from 2025-03-07 16-49-02.png
    10.7 KB · Views: 13
  • Screenshot from 2025-03-07 16-48-39.png
    Screenshot from 2025-03-07 16-48-39.png
    13.1 KB · Views: 15


After doing some experiments and whatnot I ended up with my / and Timeshift partitions both completely full.
G'day folprecht, Welcome to Linux.org

Your first sentence....spells disaster. The sentences following that conform that fact

If photorec and associated apps cannot manage to find your data, then I would hazard a guess that it is gone. The fact that they were encrypted perhaps makes the situation even more muddy

If 'experiments' are to be undertaken, it would be a sensible move to move data to another drive where it is safe.

I really can only offer you the dreaded R word. Reinstall.

It may make life easier/simpler if you were to invest in an External drive to store data and Timeshift snapshots on. It would need to be formatted ext4.

Keeping Timeshift snapshots on the main drive is not recommended. If they are on an external drive then you at least have a good chance of recovery.

Unless encryption is totally necessary, I would leave that out of the equation.

As far as I am aware, Timeshift has no squabble with docker
 
Greetings Condobloke,

experimenting is part of Linux lifestyle I guess. Trying things in & out. But the experiments were not in the realm of partitioning.

I know that keeping backups in separate location is preferable, but I do not have another disk (big enough) at my disposal. But never did I imagine that I could lose my system and my backups at the same time for no clear reason other than the whole disk failing.

Reinstall (or restoring the old backups made when the system was fairly new (which is almost as good as a reinstall)) is not the answer I was looking for (even if it might come to that eventually).
 
Welcome to the Forum.
1741908272043.gif


We all learn from our mistakes but experimenting on your main Drive without backups on a separate Drive is asking for trouble...looks a like a clean install for you.
1741908706179.gif


When you first install your Distro and customize it...create an image of it with Foxclone...Redorescue to an External SSD or HDD.

You can install Timeshift to an External SSD or HDD and store Timeshift snapshots...by doing this...should anything happen and this includes Drive failure...it's a simple task to restore the image with nothing lost...it's too late to close the barn door after the horse has bolted.
1741909420793.gif
 


Staff online


Top