I had an ext2 partition and by mistake I reformatted it to ext4.
I immediately noticed the problem because at the next reboot my system wouldn't mount the reformatted partition, which got a new UUID and therefore did not match the one in /etc/fstab
.
After reformatting I did not write anything to the disk.
Is there any chance I can recover the data files on this partition?
/dev/sdb1
was empty, I umounted it, thoughtsudo /sbin/mkfs.ext4 /dev/sdb1
and typedsudo /sbin/mkfs.ext4 /dev/sdc1
. – Giorgio Jul 21 '14 at 21:04ext4
format overwrites all theext2
filesystem information, then I have no chance. I could recover some isolate files but I won't be able to reconstruct the disk's content. So, is there a chance that ext4 and ext2 write filesystem information on different blocks? – Giorgio Jul 21 '14 at 21:41foremost
but this is pretty useless if I cannot recover the directory structure. – Giorgio Jul 21 '14 at 21:57