Friday, 20 November 2015

Mount iPhone onto Ubuntu

1. Prerequisite - Install ifuse

2. Connect the iPhone  to the computer using USB.

3. Click Allow / Trust on the iPhone when asked to Allow access or Trust the computer.

4. Following command will display the information about all devices connected to the computer through the USB. The information of our interest is the "Serial number".

$usb-devices

T:  Bus=02 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  4
P:  Vendor=xyz ProdID=xyz Rev=xyz
S:  Manufacturer=Apple Inc.
S:  Product=iPhone
S:  SerialNumber=
C:  #Ifs= 3 Cfg#= 4 Atr=c0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=fe Prot=02 Driver=usbfs
I:  If#= 2 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=fd Prot=01 Driver=iphe

5. Create a directory - mount point for the iPhone.
$mkdir /media/iPhone

6. Now mount the iphone using the following
$sudo ifuse /media/iPhone/ -u -o rw,allow_other

7. All done. List, copy files from iPhone.
$ls /media/iPhone/