Linux mount Apple HFS+ img file

Tody, I met some problems on mount apple hfs+ img file.

First, install the lib hfs+ supported,

sudo apt-get install hfsprogs

Then, create a mount point with /mnt/sdb

sudo mkdir /mnt/sdb

Next, use command mount to mount a img file.

sudo mount -t hfsplus -o force,rw ./some-file.img /mnt/sdb

But on this step, it arrise an error, mount: /mnt/sdb: wrong fs type, bad option, bad superblock on /dev/loop25, missing codepage or helper program, or other error.

What’s wrong with this, I do not clear, with some search on google, a netizen gave a solution

sudo mount /dev/loop25p1 /mnt/sdb

And it worked, but what different loop25 and loop25p1 ?

Author: Gavin Zhao
Link: https://www.gavinz.xyz/2022/09/04/linux-mount-apple-hfs-img-file/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.