Score:0

How to rebuild the filesystem of a recovered partition

lt flag

I managed to ruin a server drive by trying to clone it to another drive with dd. In the process, the original boot and sda1 partitions were overwritten.

I immediatly stopped using the drive,I made an image of the damaged drive with ddrescue then attempted to recover the lost partition with testdisk. Running a deepscan I found what seemed to resemble my lost sda1 partition so I restored.

After running an fsck on it and sudo e2fsck -b block_number /dev/xxx to restore a uncorrupted superblock, I was able to mount the partition and found a lost+found directory containing almost all my files.

It seems my files are there so how would I be able to recover/rebuild the filesystem of the original partition?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.