vermaden / automount

Simple devd(8) based automounter for FreeBSD
66 stars 20 forks source link

HFS+: not a block device (but mounting it manually works) #32

Open probonopd opened 3 years ago

probonopd commented 3 years ago

Attaching a HFS+ formatted USB stick does not result in it being automounted.

FreeBSD% cat /var/log/automount.log
(...)
/dev/ugen4.7: attach
command 'simple-mtpfs' not found
/dev/da1: attach
/dev/da1: not a block device

Note that it says /dev/da1: not a block device yet doing this manually does the trick:

FreeBSD% hfsfuse --force /dev/da1 /mnt -o ro 

FreeBSD% ls /mnt
Install OS X Mavericks.app
System
usr
Library

This seems to be the culprit:

FreeBSD% sudo -E sh -x /usr/local/sbin/automount da1 attach
(...)
+ __wait_for_device /dev/da1
+ local 'COUNT=0'
+ dd 'if=/dev/da1' 'of=/dev/null' 'conv=sync' 'count=1' 'bs=8k'
+ __check_block_device /dev/da1
+ fstyp /dev/da1
+ __log '/dev/da1: not a block device'
+ date '+%Y-%m-%d %H:%M:%S'
+ echo 2021-10-04 00:46:48 '/dev/da1: not a block device'
+ exit 0
vermaden commented 1 year ago

Check latest version.

Thanks.