Mount Phone in GhostBSD via MTP

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

Mount Phone in GhostBSD via MTP

Post by 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
fuse_load="YES"
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

#/bin/sh

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

NevilleGoddard
Developer
Posts: 431
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan
Has thanked: 7 times
Been thanked: 4 times

Re: Mount Phone in GhostBSD via MTP

Post by NevilleGoddard » Fri Jan 05, 2018 12:28 am

Nice work!

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

Post Reply