1

recovering ext4 partition after dd'ing over start of HD

view story
linux-howto

http://unix.stackexchange.com – I accidentally used dd and wrote over the first 208MB of my external disk. What I wrote over is a partition on its own (Debian nestinstaller) so what I see now is not my old (now damaged) ext4 partition but another smaller partition. This limits the tools and advices I could follow. My plan was to recreate the partition table with testdisk and then fix everything with the backup superblocks. I'd lose the first 208MB but that's ok compared to the other 300GB of data in there. Something like the following: mke2fs -n /dev/sdb1 # doesn't work because sdb1 is the 208MB new partition testdisk .. (HowTos)