首先需要安装hfsprogs,我用的是debian直接
apt-get install hfsprogs
然后直接mount就可以了:
root@bananapi ~ # mount -t hfsplus -o force,rw /dev/sdb /mnt/backup320g
mount: warning: /mnt/backup320g seems to be mounted read-only.
怎么还是read-only…看一下dmsg:
root@bananapi ~ # dmesg|tail
[ 4842.317034] hfs: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. mounting read-only.
哦,原来硬盘有点儿问题,需要check一下,好吧:
root@bananapi ~ # fsck.hfsplus -f /dev/sdb
** /dev/sdb
root@bananapi ~ # fsck.hfsplus -f /dev/sdb1
** /dev/sdb1
root@bananapi ~ # fsck.hfsplus -f /dev/sdb2
** /dev/sdb2
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
终于check完了,一共花了⋯⋯半天儿⋯⋯我们再remount一下吧~ 已经没问题了