Page 1 of 1

Mount Phone in GhostBSD via MTP

Posted: Thu Jan 04, 2018 2:23 pm
by Jes
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:

Code: Select all

# Filesystems in Userspace
Then install the package:

Code: Select all

pkg install simple-mtpfs
Create a script to automate the process of mount the phone. Mine is called 'freebsd_mountphone':

Code: Select all


S=`which simple-mtpfs`

mkdir -p ~/Phone

echo "To unmount:"
echo "umount -f ~/Phone"

$S -o direct_io  ~/Phone

ls ~/Phone
Create the directory:

Code: Select all

mkdir ~/Phone
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).

Re: Mount Phone in GhostBSD via MTP

Posted: Fri Jan 05, 2018 12:28 am
by NevilleGoddard
Nice work!

You can also install android-file-transfer-qt4 and do the same thing.