Skip to content

Instantly share code, notes, and snippets.

@pinge
Last active September 14, 2024 08:18
Show Gist options
  • Save pinge/3b118bef18edd33816a95440bcbd5a30 to your computer and use it in GitHub Desktop.
Save pinge/3b118bef18edd33816a95440bcbd5a30 to your computer and use it in GitHub Desktop.
mounting iPhone storage in Ubuntu 16.04 LTS

mounting iPhone storage in Ubuntu 16.04 LTS

check if your device was recognized correctly

$ dmesg | grep ipheth
[62051.385352] ipheth 1-5:4.2: Apple iPhone USB Ethernet device attached
[62051.385437] usbcore: registered new interface driver ipheth

create mounting point and make it writable (optional)

$ sudo mkdir /media/iphone
$ sudo chmod +777 /media/iphone

install dependencies

sudo apt-get update
sudo apt-get -y install ideviceinstaller libimobiledevice6 libimobiledevice-utils ifuse

edit /etc/fuse.conf and paste the following lines below # Allow non-root users to specify the allow_other or allow_root mount options.

# Allow non-root users to specify the allow_other or allow_root mount options.
op$
user_allow_other

pair the iphone

$ idevicepair pair

mount the filesystem

$ ifuse /media/iphone

at this point you may mount the root filesystem if your phone is jailbroken

$ ifuse /media/iPhone/ --root

unmount the filesystem and unpair the phone

$ fusermount -u /media/iphone/
$ idevicepair unpair

iOS 10.1 and lower

if you get an error like the one below when mounting the filesystem

$ ifuse /media/iphone
GnuTLS error: Error in the pull function.
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.

you should use Marti Salbaba's PPA for libimobile6 to avoid issues with GnuTLS:

sudo add-apt-repository ppa:martin-salbaba/ppa+libimobiledevice
sudo apt-get update
sudo apt-get -y install libimobiledevice6 libimobiledevice-utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment