PEBKAC: Formatted first 16 megs of FAT32 partition
Well, I messed up pretty hard today, I didn't notice one of my FAT32 partitions as one of the many listed to be formatted on a Linux install. Uh-oh. Worst of all it's not even my drive or data, it's a friend of mine.
Well, I examined the disk under Linux using "dd" and "hd" ( hex dump ), and I've concluded that I actually only formatted the first 15 megabytes of the FAT32 partition, and the data past that is still in tact. When I run fsck.vfat, I get an error, "Logical sector size is zero," because the first drive was wiped. I found a guide that suggested I could use the sixth sector to backup the first, but the format went well-past sector 6 all the way until sector 32 where the old data is still in tact.
I'm in the process of backing up the data to an image. I'm going to try to reformat the drive into FAT32, splice the data back into the partition at the 32nd sector, and then run a disk check hoping that the partition can then be repaired around the data. I've never done anything like this, and I'm pretty much at the mercy of whatever I can think to try. I don't know how FAT32 works, but I'm worried that by splicing in about 276 gigabytes of data into a 1 terabyte FAT32 file system, that even then the filesystem would not be reapariable or mountable.
In any case, this is the situation in brief: I've got a FAT32 partition with the first 16 megabytes ( 32 sectors ) zeroed by a format. The rest of the data is still in tact, and I'm trying to find a way to salvage the data out of the damaged FAT32 file-system.