Mount Phone in GhostBSD via MTP

Add your Tips and tricks to configure and tweak your GhostBSD System here.
Post Reply
Posts: 42
Joined: Sun Dec 25, 2016 2:43 pm
Location: Spain
Has thanked: 0
Been thanked: 0

Mount Phone in GhostBSD via MTP

Post 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).

Posts: 507
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan
Has thanked: 8 times
Been thanked: 13 times

Re: Mount Phone in GhostBSD via MTP

Post by NevilleGoddard »

Nice work!

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

Post Reply