oops sorry that should be
"mount /dev/sda /mnt/a -o offset=622592,ro -t hfsplus"
I left off the equals sign
So I've got a macintosh SCSI drive that has an apple hfsplus partition I'd like to mount.
Let's say it's on /dev/sda
so I run "hexdump -C /dev/sda | less" and look at the output
*
00000c00 50 4d 00 00 00 00 00 07 00 00 04 c0 00 61 6b 4f |PM...........akO|
00000c10 75 6e 74 69 74 6c 65 64 00 00 00 00 00 00 00 00 |untitled........|
00000c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000c30 41 70 70 6c 65 5f 48 46 53 00 00 00 00 00 00 00 |Apple_HFS.......|
00000c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000c50 00 00 00 00 00 61 6b 4f 44 00 03 7f 00 00 00 00 |.....akOD.......|
00000c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
what you're looking for is the apple_HFS part, and zero in on the PM line
00000c00 50 4d 00 00 00 00 00 07 00 00 04 c0 00 61 6b 4f |PM...........akO|
^^^^^^^
This is the starting block of the partition = 04C0
so drop out of less and run "bc"
type "ibase=16" and hit enter (this will set you up in hexadecimal)
type "4C0*200" which is multiplying 4C0 by 200 (ie multiply by 512 bytes)
bc will tell you the result 622592
type "quit" to drop out of bc
before you proceed, "modprobe hfsplus" (works for me on knoppix 5.1)
now "mkdir /mnt/a"
then "mount /dev/sda /mnt/a -o offset 622592,ro -t hfsplus"
(I added the ro to make it read only)
and you should have the apple partition mounted.
Man do I love knoppix!
oops sorry that should be
"mount /dev/sda /mnt/a -o offset=622592,ro -t hfsplus"
I left off the equals sign
00000c00 50 4d 00 00 00 00 00 07 00 00 04 c0 00 61 6b 4f |PM...........akO|
_____________________________^^^^^^^^
________________________________________^^^^^^^^
(my arrows didn't come through very well, I'll try underlines)
with regards to apple partitions
the start block of this partition is 00 00 04 c0
and the length of this partition is 00 61 6b 4f
but all you really need is the start block number to calculate the offset
HP ProLiant ML350 Gen 9 Server 64GB RAM 2.4GHz Xeon 12-Core E5-2667 v3
$300.00
Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB
$279.99
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE
$273.00
Dell Poweredge R730xd 3.5 2x E5-2690 v3 2.6ghz 64gb H730 14x Trays 2x 1100w
$489.99
Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox
$320.00
R630 DELL 8 x 2.5'' POWEREDGE 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU
$172.95
Supermicro 6028U X10DRU-i+ 2x LGA2011v3 Xeon E5-2600v3/v4 2U Server CTO
$199.99
CEOhack 1U X9DRW-3TF+ 4 Bay Server 64GB DDR3 1x E5-2667 V2 3.30GHz 8C 1x 1TB HDD
$119.00
Supermicro 1U X11DPU 2x Xeon Gold 6132 2.6GHz / 128gb / 10x 2.5 Trays / 2x 750w
$649.99
R630 DELL OEM 10X2.5'' 2X E5-2660V3 32GB RAM 2X750W PSU SERVER POWEREDGE
$159.95