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
For Lenovo ideapad 5 15IIL05 15ARE05 15ITL05 15ALC05 Lcd Back Cover Rear Lid NEW
$49.98
NEW Palmrest Keyboard For Lenovo Thinkpad E15 Gen 2 20T8 20T9 Black 5M10W64513
$80.99
For Lenovo IdeaPad 3 15IIL05 15IML05 15ADA05 15ARE05 Palmrest Keyboard Touchpad
$59.25
Lenovo 500w Gen 3 Laptop, 11.6" IPS Glass, N6000, 8GB, 128GB SSD, Win 11 Home
$186.99
Lenovo Ideapad 1i 15.6" FHD Notebook Intel Core i5-1235U 8GB RAM 256GB SSD
$339.99
Lenovo IP 5 16IAU7 16" 2.5K Chromebook i3-1215U 8GB Ram 128GB eMMC Chrome OS
$199.99
lenovo thinkpad x1 yoga 4th gen i7 16gb $120 O.B.O
$120.00
Lenovo ThinkPad Yoga 11e 11.6" 2in1 Touch Intel Core i3 4GB RAM 128GB SSD Win10
$60.00
Lenovo ThinkPad T15 Gen 1 15.6" 2020 1.8GHz i7-10510U 40GB RAM 512GB SSD
$325.00
~10th Gen~ 14" Lenovo i7 Quad Core Laptop: 16GB RAM 512GB SSD Windows 11 Pro
$359.99