
我正在尝试安装从 dmg2img 创建的 .img 文件。我已经尝试过以下方法:
sudo modprobe hfsplus
sudo mount -o loop -t hfsplus ./path/to/img /mnt/iso
这给了我一个错误:
mount: /mnt/iso: wrong fs type, bad option, bad superblock on /dev/loop9, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
我已将错误跟踪到 HFSPlus,从 dmesg 给出此错误:
hfsplus: unable to load nls for utf8
快速谷歌搜索只能找到一个相关结果,RFC补丁其中说NLS table for utf8 is broken and cannot be fixed.
我该如何让它发挥作用?
顺便说一句我用拱门
答案1
当 hfsplus 分区的分区类型设置为非 Apple 文件系统时,我遇到了此问题。
检查分区的类型 ID 是否是 Apple 提供的。
fdisk /dev/sdX
然后按i
并选择分区。如果该Type
字段不包含“Apple”或“Apple boot”,请按 t 并将类型 ID 更改为 144 或 149。
(/dev/sdX
是包含 hfs 分区的驱动器)