Skip to contentSkip to conversation

dd if=ubuntu.iso of=/dev/btrfs

ADVICE Cabia Rangris 1 participant 1 message Oct 25, 2022 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Good time of day!

I have  a problem recovering from writing a full ubuntu iso onto by backup btrfs disk (3.4 gigs or so).

btrfs recover cannot recover from this, as the root tree is completely overwritten.

I’ve patched progs to show detected nodes, however I am far from being an expert in btrfs repo or making my clangd start actually working — so I didn't even get to see any filenames, but I've managed to print detected nodes.

I can recover what's left via photorec, and already have done so, however a lot of data is unrecoverable without it's folder structure.

That's why I ended up here :)

- Is there any way recover some parts of the tree metadata from this sort of accident?
- Is there a person who's ready to answer some dumb questions (for money?) of a non-system programmer so I can write a parser?
- Is there maybe an unfinished Kaitai struct format for btrfs lying around where I couldn't find it?

-- <3; cab