echo "dsbmd_enable="YES" >> /etc/rc.conf
service dsbmd start
[B]$[/B] simple-mtpfs /mnt/J7
@ balanga
After trying dsbmd+dsbmc, gmtp, android-file-transfer, I just 'discovered' proper way to mount it (by simple-mtpfs):
I created folder /media/J7 , took ownership of it, and now issuing command
[B]$[/B] simple-mtpfs /mnt/J7
will mount usb-connected phone to /media/J7 , and I have r/w access + icon in file manager
pkg install fusefs-simple-mtpfs
if anyone wants to try it...sh -c 'i=0; while [ $i -lt 10 ]; do usbconfig -u 4 -a 3 dump_string $i; i=`expr $i + 1`; done'
service dsbmd onestart
$ sh -c 'i=0; while [ $i -lt 10 ]; do usbconfig -u 4 -a 2 dump_string $i; i=`expr $i + 1`; done'
top
)What's the error message regarding the [FONT=Courier New]simple-mtpfs[/FONT] command in [FONT=Courier New]/var/log/dsbmd.log[/FONT]?- There is /media/SAMSUNG_Android/ folder created, but double click on Phone Icon (or mount drive, or open) produces "Mounting failed"
It's better not to run [FONT=Courier New]hald[/FONT] together with [FONT=Courier New]dsbmd[/FONT]. So, that's good.- maybe this helps: I don't have hald enabled
service dsbmd stop
/usr/local/libexec/dsbmd -f
$ sudo /usr/local/libexec/dsbmd -f
dsbmd: dsbmd started on Sat Dec 2 22:57:43 2017
dsbmd: ioctl(/dev/cd0, CDRIOCREADSPEED): Input/output error on Sat Dec 2 22:57:43 2017
$ simple-mtpfs
Wrong usage! See `simple-mtpfs -h' for details
$ sudo /usr/local/libexec/dsbmd -f
dsbmd: dsbmd started on Sat Dec 2 22:57:43 2017
dsbmd: ioctl(/dev/cd0, CDRIOCREADSPEED): Input/output error on Sat Dec 2 22:57:43 2017
dsbmd: Client with UID 1001 connected on Sat Dec 2 23:05:15 2017
mount_fusefs: /dev/fuse on /media/SAMSUNG_Android: Operation not permitted
fuse: failed to mount file system: Device busy
dsbmd: Command /usr/local/bin/simple-mtpfs -o "uid=${DSBMD_UID},gid=${DSBMD_GID},allow_other" ${DSBMD_DEVICE} "${DSBMD_MNTPT}" executed by UID 1001 failed with code 256 on Sat Dec 2 23:05:18 2017
/etc/sysctl.conf :
vfs.usermount=1
kern.ipc.shm_allow_removed=1
/usr/local/etc/dsbmd.conf :
# usermount - Controls whether DSBMD mounts devices as user. This requires the
# sysctl variable vfs.usermount is set to 1.
usermount = true
devfs.rules:
[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups
add path 'da*' mode 0660 group operator
add path 'ada2' mode 0660 group operator
add path 'ugen[0-9]\*' mode 0666 group usb
add path 'usb/\*' mode 0666 group usb
add path 'acd*' mode 0666
add path 'cd*' mode 0666
add path 'pass*' mode 0666
add path 'xpt*' mode 0666
rc.conf :
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="whatever"
ifconfig_igb0="DHCP"
ifconfig_igb0_ipv6="inet6 accept_rtadv"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
dbus_enable="YES"
keymap="hr"
linux_enable="YES"
kld_list="fuse"
devfs_system_ruleset="system"
cupsd_enable="YES"
dsbmd_enable="YES"
$ sudo /usr/local/libexec/dsbmd -f
dsbmd: dsbmd started on Sat Dec 2 23:49:26 2017
dsbmd: ioctl(/dev/cd0, CDRIOCREADSPEED): Input/output error on Sat Dec 2 23:49:26 2017
dsbmd: Client with UID 1001 connected on Sat Dec 2 23:49:33 2017
Could not retrieve device storage.
For android phones make sure the screen is unlocked.
### Note: Here I just pressed Allow on my phone screen when notification appears ###
dsbmd: Device /dev/ugen4.2 mounted on /media/SAMSUNG_Android by UID 1001 on Sat Dec 2 23:49:44 2017
dsbmd: Device /dev/ugen4.2 mounted on /media/ugen4.2 by UID 1001 on Sat Dec 2 23:51:06 2017
Excellent!Now there is /media/ugen4.2/ folder created, and I am the owner, and finally managed to access files!
About v 0.5 , I am not sure I know how to install it from source code (configure, make, make install?) (it is a FreeBSD, and I am a newbie, so a hint will be appreciated);
THANK YOU
% su
# service dsbmd stop
# rm /usr/local/etc/dsbmd.conf
# cd /tmp
# fetch http://freeshell.de/~mk/download/dsbmd-port.tgz
# tar xf dsbmd-port.tgz
# cd dsbmd
# make deinstall
# make install
# service dsbmd start
I am able to umnount smartphone using file manager (Thunar and/or Caja) without dsbmc-cli installed.
$ dsbmc-cli -a
and booooooom I have all devices mounted, including ext4@HDD, ntfs@SSD, fat32@USB3.0_stick, smartphone ...IMO, the most universal way of accessing any Android-based phone is using devel/android-tools-adb. You'll need to enable developers options in the phone though.How do I access data on my mobile phone via a USB cable?
adb shell
. adb push mysong.mp4 /sdcard/Music
adb pull /sdcard/Video/myvideo.mp4 /my/local/path
.