Hi Simson,Caveat before we continue: I have been working on a bash script to automate processing of iPod's to determine true ownership in cases of theft. Erics_ipod is a test device that i have been using. It broke yesterday (would not boot nor mount) and I had to restore the device, but I chose to do so in order that we may discuss a mountable device and forensic image of the mountable device.
What I'm trying to say in a long winded way is: don't compare the following output with previous output in my earlier messages. The data in my initial email (mmls, fls offset, etc) no longer apply, but the issues are the same.
MMLS OUTPUT:# mmls /dev/sdc
Cannot determine partition type# mmls -t mac /dev/sdc
Invalid magic value (Mac partition table entry (Sector: 1) 0)# mmls -t sun /dev/sdc
Invalid magic value (SUN (intel) partition table (Sector: 0) 0)# mmls -t bsd /dev/sdc
Invalid magic value (BSD partition table (magic #1) (Sector: 1) 0)# mmls -t dos /dev/sdc
DOS Partition Table
Offset Sector: 0
Units are in 512-byte sectors
Slot Start End Length Description
00: Meta 0000000000 0000000000 0000000001 Primary Table (#0)
01: ----- 0000000000 0000000062 0000000063 Unallocated
02: 00:00 0000000063 0000048194 0000048132 Empty (0x00)03: 00:01 0000048195 0001982462 0001934268 Win95 FAT32 (0x0B)
04: ----- 0001982463 0007929855 0005947393 Unallocated# mmls /dev/sdc2
Cannot determine partition type# mmls -t dos /dev/sdc2
Invalid magic value (dos_load_prim_table: No valid entries in primary table)
mmls of the aff image results in the same output. Now some really interesting differences:
# fls -o48195 /dev/sdc ### offset determined from mmls
Cannot determine file system type
# fls /dev/sdc2
r/r 3: ERIC'S IPOD (Volume Label Entry)
d/d 5: iPod_Control
d/d 7: Contacts
d/d 9: Calendars
d/d 11: Notes
v/v 123549443: $MBRv/v 123549444: $FAT1
v/v 123549445: $FAT2d/d 123549446: $OrphanFiles
# sigfind -t fat /dev/sdc
Block size: 512 Offset: 510 Signature: 55AA
Block: 0 (-)
Block: 299 (+299)
Block: 33066 (+32767)Block: 192780 (+159714)
Block: 192784 (+4)Block: 192788 (+4)
Block: 192804 (+16)Block: 192808 (+4)
Block: 192812 (+4)...
root@eee:~# fls -o192780 /dev/sdc ### offset determined from sigfind
r/r 3: ERIC'S IPOD (Volume Label Entry)
d/d 5: iPod_Control
d/d 7: Contacts
d/d 9: Calendars
d/d 11: Notes
v/v 123549443: $MBR
v/v 123549444: $FAT1v/v 123549445: $FAT2
d/d 123549446: $OrphanFilesA view into the sectors:
# xxd -s 24675840 -l 512 /dev/sdc2 ### Sector 48195 f
1788600: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788610: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788620: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788630: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788640: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788650: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788660: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788670: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788680: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788690: 0000 0000 0000 0000 0000 0000 0000 0000 ................
17886a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................17886b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
17886c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................17886d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
17886e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................17886f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788700: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788710: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788720: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788730: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788740: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788750: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788760: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788770: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1788780: 0000 0000 0000 0000 0000 0000 0000 0000 ................1788790: 0000 0000 0000 0000 0000 0000 0000 0000 ................
17887a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................17887b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
17887c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................17887d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
17887e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................17887f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
# xxd -l 512 /dev/sdc20000000: eb3c 902a 554f 4b4a 4948 4300 0802 2000 .<.*UOKJIHC... .
0000010: 0200 0000 00f8 0000 3f00 ff00 43bc 0000 ........?...C...0000020: bc83 1d00 6007 0000 0000 0000 0200 0000 ....`...........
0000030: 0100 0600 0000 0000 0000 0000 0000 0000 ................0000040: 0000 2963 efa4 b649 504f 4420 2020 2020 ..)c...IPOD
0000050: 2020 4641 5433 3220 2020 0e1f be5b 7cac FAT32 ...[|.0000060: 22c0 740b 56b4 0ebb 0700 cd10 5eeb f032 ".t.V.......^..2
0000070: e4cd 16cd 19eb fe7b 7b7e 7e7c 2053 2054 .......{{~~| S T0000080: 204f 2050 207c 2054 6869 7320 6973 2041 O P | This is A
0000090: 7070 6c65 2069 506f 6420 6e6f 7420 6120 pple iPod not a 00000a0: 626f 6f74 6162 6c65 2064 6973 6b2e 506c bootable disk.Pl
00000b0: 6561 7365 2074 7279 2061 6761 696e 202e ease try again .00000c0: 2e2e 2000 0000 0000 0000 0000 0000 0000 .. .............
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................0000100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000110: 0000 0000 0000 0000 0000 0000 0000 0000 ................0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................0000180: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000190: 0000 0000 0000 0000 0000 0000 0000 0000 ................00001a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................00001c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................00001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U.# xxd -s 98703360 -l 512 /dev/sdc
5e21800: eb3c 902a 554f 4b4a 4948 4300 0802 2000 .<.*UOKJIHC... .5e21810: 0200 0000 00f8 0000 3f00 ff00 43bc 0000 ........?...C...
5e21820: bc83 1d00 6007 0000 0000 0000 0200 0000 ....`...........5e21830: 0100 0600 0000 0000 0000 0000 0000 0000 ................
5e21840: 0000 2963 efa4 b649 504f 4420 2020 2020 ..)c...IPOD 5e21850: 2020 4641 5433 3220 2020 0e1f be5b 7cac FAT32 ...[|.
5e21860: 22c0 740b 56b4 0ebb 0700 cd10 5eeb f032 ".t.V.......^..25e21870: e4cd 16cd 19eb fe7b 7b7e 7e7c 2053 2054 .......{{~~| S T
5e21880: 204f 2050 207c 2054 6869 7320 6973 2041 O P | This is A5e21890: 7070 6c65 2069 506f 6420 6e6f 7420 6120 pple iPod not a
5e218a0: 626f 6f74 6162 6c65 2064 6973 6b2e 506c bootable disk.Pl5e218b0: 6561 7365 2074 7279 2061 6761 696e 202e ease try again .
5e218c0: 2e2e 2000 0000 0000 0000 0000 0000 0000 .. .............5e218d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e218e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e218f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e21900: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e21910: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e21920: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e21930: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e21940: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e21950: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e21960: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e21970: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e21980: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e21990: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e219a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e219b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e219c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e219d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5e219e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................5e219f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U.
Finally, mmls is not inconsistent with fdisk:
# fdisk -lu /dev/sdc
Note: sector size is 2048 (not 512)Disk /dev/sdc: 4060 MB, 4060086272 bytes
103 heads, 42 sectors/track, 458 cylinders, total 1982464 sectorsUnits = sectors of 1 * 2048 = 2048 bytes
Disk identifier: 0x20202020 Device Boot Start End Blocks Id System
/dev/sdc1 63 48194 96264 0 EmptyPartition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 1, 22)Partition 1 has different physical/logical endings:
phys=(2, 254, 63) logical=(11, 14, 21)Partition 1 does not end on cylinder boundary.
/dev/sdc2 48195 1982462 3868536 b W95 FAT32Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(3, 0, 1) logical=(11, 14, 22)Partition 2 has different physical/logical endings:
phys=(123, 102, 42) logical=(458, 27, 21)