Mount Phone in GhostBSD via MTP

Configuring and tweaking your GhostBSD System.

Mount Phone in GhostBSD via MTP

Postby Jes » 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:
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: 42
Joined: Sun Dec 25, 2016 2:43 pm
Location: Spain
Has thanked: 15 times
Been thanked: 13 times

Mount Phone in GhostBSD via MTP

Re: Mount Phone in GhostBSD via MTP

Postby NevilleGoddard » Fri Jan 05, 2018 12:28 am

Nice work!

You can also install android-file-transfer-qt4 and do the same thing.
Posts: 377
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 77 times
Been thanked: 53 times

Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 1 guest