Short version:
You need to edit sector 0 so that it looks like the following:
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
000001B0 00 01
000001C0 01 00 04 6A 1F F5 20 00 00 00 DF 7B 0F 00
==============================================================================
Long version:
Offsets 0x4000 - 0x41FF comprise a FAT16 boot sector. That's physical sector 0x20.
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Code:
00004000 EB 3C 90 2B 51 63 5A 62 49 48 43 00 02 10 01 00 ë<.+QcZbIHC.....
00004010 02 00 02 00 00 F8 F8 00 20 00 81 00 20 00 00 00 .....øø. ... ...
00004020 DF 7B 0F 00 80 00 29 00 00 00 00 4E 4F 20 4E 41 ß{..€.)....NO NA
00004030 4D 45 20 20 20 20 46 41 54 31 36 20 20 20 ME FAT16
Offset 0x4200 is the first sector of the first copy of the FAT.
The information is the BIOS Parameter Block is indicating that the FAT volume begins at sector 0x00000020 and has a size of 0x000F7BDF sect
That works out to about 520MB (= 495MiB).
http://www.google.com/search?q=0x000F7B ... in+decimalhttp://www.google.com/search?q=0x000F7B ... +megabytesThere are 0x200 (= 512) bytes per sector.
There are two FATs each consisting of 248 (= 0xF8) sectors. The first FAT begins at logical sector 1 (physical sector 0x21).
The CHS geometry is ...
0x20 (= 32) sectors per track
0x81 (= 129) heads per cylinder
Sector 0 (offsets 0x000 - 0x1FF) contains the MBR and the partition table.
The current partition table (offsets 0x1BE to 0x1CD) is empty.
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
000001B0 00 00
000001C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00
You need to edit sector 0 so that it matches the data in the boot sector. It should look like the following:
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
000001B0 00 01
000001C0 01 00 04 6A 1F F5 20 00 00 00 DF 7B 0F 00
In order to edit your disk image, select Edit -> Edit Mode.
Your root directory should be located immediately after the second copy of the FAT. It should contain identifiable filenames.
The two FATs should be identical copies.
sector 32 = boot sector
sector 33 = first sector of FAT #1
sector 281 = first sector of FAT #2 (281 = 33 + 248)
sector 529 = first sector of root directory (529 = 281 + 248)
If the above edits don't quite work, try changing the partition ID byte at offset 0x1C2 from 04 to 06.
References:
FAT Boot Sector:
http://averstak.tripod.com/fatdox/bootsec.htmPartition Table and Boot Record Editor by PowerQuest:
ftp://ftp.symantec.com/public/english_u ... EDIT32.zipCHS/LBA Conversion Utility:
http://homepage2.nifty.com/cars/misc/chs2lba.htmlList of partition identifiers for PCs:
http://www.win.tue.nl/~aeb/partitions/p ... pes-1.html