[root@rhce-ryanrudolf]# rm -rf / 2> /dev/null

things I break/fix for fun and learning

Apr 6, 2018 - 1 minute read - Comments - android linux

Accessing Files in Android Phones using Linux

From time to time I need to plug-in my Android phone to my computer to be able to transfer files. But since my laptop is running a Linux operating system (Fedora to be exact), there is no easy point-and-click way like in Windows operating systems. Usually what I do is boot into my Windows partition or launch a Windows virtual machine. It’s not ideal, but it works.

Got fed up and did further research on how to access android phones in Linux. Looks like it is quite easy to achieve, with just a few simple steps.

  • install the needed package

yum install simple-mtpfs

  • create the mount points

mkdir -p /mnt/android

  • plug the Android phone and list mtp devices. here it shows that it is assigned as “1”

[root@localhost ~]# simple-mtpfs -l

1: AsusZenFone 5 A500KL (MTP+ADB)

[root@localhost ~]#

  • mount the mtp device to the mountpoint

[root@localhost ~]# simple-mtpfs –device 1 /mnt/android/

  • navigate to the mount point and view the files!

[root@localhost ~]# ls /mnt/android/

‘Internal shared storage’ sdcard1

[root@localhost ~]#

Enjoy! No need to boot to Windows or launch a Windows VM to access the files in my Android phone.

Like this page? Share it!

4months with VoIP.ms Homelab Upgraded

comments powered by Disqus