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
Intel Core i7-7800x CPU processor sr3nh 3.50ghz 6-Core 8.25mb lga-2066 X series
$57.31
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$419.99
Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1
$39.99
Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...
$619.99
Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62
$46.03
AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor
$79.00
Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread
$539.99
Intel Core i7-3770 3.40GHz Quad-Core CPU Processor QC1W LGA1155 Socket
$33.49
AMD Ryzen 7 7700 Processor (5.3 GHz, 8 Cores, Socket AM5) Boxed -...
$259.99
Intel Core i7-3770 3.40GHz 8MB Quad Core Socket LGA1155 CPU Processor SR0PK
$35.00