How to install MTPfs on Ubuntu 17.04

How to install MTPfs on Ubuntu 17.04

The MTPfs is a FUSE filesystem that supports reading and writing from any MTP devices supported by libmtp. When files are written, their file extensions is checked to determine the filetype. It supports multiple storage areas, browsing folders, writing files, and writing music tracks with metadata. This tutorial covers the installation process of MTPfs on Ubuntu 17.04.

Installation procedure

To start with the installation procedure, add the repo by executing the following command.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.
+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of
.
.
.
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg'  create
gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:imported: 1
OK

The repositories are added to the target system. Update the repo by executing the apt-get update command.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done

The target system is updated with the required repositories. Now install the MTPfs package by running the following command and press y to continue with the installation procedure.

root@linuxhelp1:~# apt-get install mtpfs -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libid3tag0 libmad0
The following NEW packages will be installed:
libid3tag0 libmad0 mtpfs
0 upgraded, 3 newly installed, 0 to remove and 92 not upgraded.
Need to get 119 kB of archives.
After this operation, 388 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 libmad0 amd64 0.15.1b-8ubuntu1 [71.5 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 libid3tag0 amd64 0.15.1b-12 [31.4 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 mtpfs amd64 1.1-5 [16.2 kB]
Fetched 119 kB in 1s (100 kB/s)
Selecting previously unselected package libmad0:amd64.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../libmad0_0.15.1b-8ubuntu1_amd64.deb ...
Unpacking libmad0:amd64 (0.15.1b-8ubuntu1) ...
Selecting previously unselected package libid3tag0:amd64.
Preparing to unpack .../libid3tag0_0.15.1b-12_amd64.deb ...
Unpacking libid3tag0:amd64 (0.15.1b-12) ...
Selecting previously unselected package mtpfs.
Preparing to unpack .../archives/mtpfs_1.1-5_amd64.deb ...
Unpacking mtpfs (1.1-5) ...
Setting up libid3tag0:amd64 (0.15.1b-12) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libmad0:amd64 (0.15.1b-8ubuntu1) ...
Setting up mtpfs (1.1-5) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...

The MTPfs application is installed successfully. To use the MTPfs application, type the following mtpfs command and execute it to run the application.

root@linuxhelp1:~# mtpfs
Listing raw device(s)
No raw devices found.

For removing the package, execute the remove command and press y to continue with the uninstallation procedure.

root@linuxhelp1:~# apt-get remove mtpfs -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libid3tag0 libmad0
Use ' apt autoremove'  to remove them.
The following packages will be REMOVED:
mtpfs
0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded.
After this operation, 76.8 kB disk space will be freed.
(Reading database ... 168857 files and directories currently installed.)
Removing mtpfs (1.1-5) ...
Processing triggers for man-db (2.7.6.1-2) ...

Wasn' t that an easy installation procedure? MTPfs can diasble libmad by adding or disable mad to the configure command.

Tag : Ubuntu MTPfs
FAQ
Q
how to add the repo for MTPfs in ubuntu?
A
add the repo by executing the following command.
# add-apt-repository ppa:eugenesan/ppa
Q
what is the use of MTPfs in ubuntu?
A
The MTPfs is a FUSE filesystem that supports reading and writing from any MTP devices supported by libmtp. When files are written, their file extensions is checked to determine the filetype.
Q
Give me the git repo for install MTPfs on Ubuntu?
A
Please refer the link as follow install MTPfs on Ubuntu
https://github.com/phatina/simple-mtpfs
Q
how to install MTPfs in Linuxmint?
A
to install MTPfs in Linuxmint by below link
https://linuxhelpdevv2.revyy.com/how-to-install-mtpfs-on-ubuntu-17-04"
Q
what MTPFS stands for ?
A
Simple Media Transfer Protocol FileSystem.