So I've got a mac formatted ipod nano 8GB that uses hfsplus and I want to mount it under knoppix.
The basic procedure is the same as my earlier post about "mounting apple hfsplus partitions under knoppix", the primary difference being that the blocksize of my ipod nano is not 512 bytes, but 4096 bytes.
Running a hexdump on the nano:
"hexdump -C /dev/sda | less" gives this output
00000000 45 52 10 00 00 1d 9f c0 00 00 00 00 00 00 00 00 |ER..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00001000 50 4d 00 00 00 00 00 02 00 00 00 01 00 00 00 3e |PM.............>|
00001010 70 61 72 74 69 74 69 6f 6e 20 6d 61 70 00 00 00 |partition map...|
00001020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00001030 41 70 70 6c 65 5f 70 61 72 74 69 74 69 6f 6e 5f |Apple_partition_|
00001040 6d 61 70 00 00 00 00 00 00 00 00 00 00 00 00 00 |map.............|
00001050 00 00 00 00 00 00 00 3e 00 00 00 00 00 00 00 00 |.......>........|
00001060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00002000 50 4d 00 00 00 00 00 02 00 00 00 3f 00 1d 9f 81 |PM.........?....|
00002010 64 69 73 6b 00 00 00 00 00 00 00 00 00 00 00 00 |disk............|
00002020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00002030 41 70 70 6c 65 5f 48 46 53 00 00 00 00 00 00 00 |Apple_HFS.......|
00002040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00002050 00 00 00 00 00 1d 9f 81 00 00 00 00 00 00 00 00 |................|
00002060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
This is the important line to look for, the one with "|PM.........?....|" that goes with the Apple_HFS partition
00002000 50 4d 00 00 00 00 00 02 00 00 00 3f 00 1d 9f 81 |PM.........?....|
_____________________________^^^^^^^^
start block is 00 00 00 3F
partition size is 00 1d 9f 81 blocks
so I use bc to calculate what 3F * 1000 is (1000 is 4096 bytes in hex)
"bc" fire up bc
"ibase=16" set the base up for hex
"3F * 1000" multiply 3F by 1000 and bc tells me that it's 258048 Make sure that your hex numbers are uppercase.
"quit" to drop out of bc
"modprobe hfsplus" to load the hfsplus file system driver (works on knoppix 5.1)
"mkdir /mnt/a" to create a mount point
"mount /dev/sda /mnt/a -o offset=258048,ro -t hfsplus" to mount an ipod on /dev/sda with offset of 258048 read only
"ls /mnt/a" should show you the contents of your ipod
If you have google up in a web browser, you can do your hex calculations in the google search box.
Type 4096 * 0x3F into the google search box and it will return 258048.
Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS
$712.98
DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED
$269.99
Dell PowerEdge R730 8 SFF 2x E5-2660 v4 28 Cores 128/256GB 0/3x 900GB 6Gbps H730
$349.99
Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays
$1849.00
Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD
$89.99
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB
$510.00
Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox
$340.00
DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45
$284.00
Dell PowerEdge R620 Server 2x E5-2650 V2 = 16 Cores H710P 128GB RAM 2x 600GB SAS
$274.99