Mount Phone in GhostBSD via MTP
Posted: Thu Jan 04, 2018 2:23 pm
This is useful to get access to your phone device mounted as a MTP device using FUSE-MTPFS. In case your phone has a SD CARD it would be accessible too (both phone emulated filesystem and SD filesystem are accessible at once).
You'll need FUSE.
In /boot/loader.conf:
Then install the package:
Create a script to automate the process of mount the phone. Mine is called 'freebsd_mountphone':
Create the directory:
Then connect you phone via USB and execute the previous script. Your phone will be mounted in ~/Phone (one directory for the internal storage and another one for the sd card if available).
You'll need FUSE.
In /boot/loader.conf:
Code: Select all
# Filesystems in Userspace
fuse_load="YES"
Code: Select all
pkg install simple-mtpfs
Code: Select all
#/bin/sh
S=`which simple-mtpfs`
mkdir -p ~/Phone
echo "To unmount:"
echo "umount -f ~/Phone"
$S -o direct_io ~/Phone
ls ~/Phone
Code: Select all
mkdir ~/Phone