Data transfer from iPad to Ubuntu via USB

bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello,

I'm trying to transfer files from my iPad to my PC running Ubuntucinnamonremix 20.04 LTS.
The iPad mounts fine via USB, and I can browse the files, but whenever I try to transfer, I get the error message "The connection was interrupted." What is blocking me and preventing the copy?
My system is up to date. Note: I'm a noob on Linux.

Best regards.

Configuration: Linux / Firefox 98.0

4 answers

  1. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527
     
    It's worse now, my iPad won't charge anymore. :(

    --
    “It has unfortunately become evident today that our technology has exceeded our humanity.” Albert Einstein
    0
    1. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527
       
      The iPad is syncing again, but still impossible to copy from it to Ubuntu.
      0
      1. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527 > bendrop Posted messages 12659 Registration date   Status Contributor Last intervention  
         
        Now I have the message "unhandled apple file control error (7)" when I click on one of the apps on the iPad, the problem must come from libimobiledevice but I don't know exactly where.

        0
      2. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527 > bendrop Posted messages 12659 Registration date   Status Contributor Last intervention  
         
        I am making progress, I no longer have the error because I needed my account to be a member of the plugdev group.
        So you need to run the command: sudo gpasswd -a USER (to be replaced with the username) plugdev

        I will continue the investigation.
        0
  2. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     
    Hello bendrop,

    I advise against auto-replying to your topic, as it’s the best way for no one to see it, believing that someone is already responding to you.

    Next, you should let us know how your Ubuntu and your iPad are interconnected (via WiFi through your box?), and which software you want to use to transfer your files. There are many protocols and software that can meet this need, including SSH, FTP, and kdeconnect (and many others).

    Personally, I use kdeconnect (on Android) between my smartphone and my PC, but apparently, it also exists for iOS (see this link). Pairing is simple, it works well, and it offers other features beyond file transfer...

    Good luck.
    0
    1. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527
       
      Good evening mamiemando,

      It is connected via USB. My issue is with a book application that no longer works on iOS 15.
      So I want to recover my few e-books.
      Yesterday I connected via SMB to my Linux and I was able to transfer videos from the iPad to Linux without any problem. The issue remains with these e-books, and that's why I'm using libimobiledevice with usbmuxd, which are already implemented. I see the relevant files, but as soon as I transfer them, I get this error message.

      For the auto-reply, it was only to provide additional information.

      I will check what you proposed.

      Best regards.
      0
  3. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     
    Hello,

    If you connect via USB, it is important on the mobile device to allow access (especially for MTP transfers on Android). I don't know if the same applies in the case of eBooks.

    This tutorial seems pretty good (you just need to adapt the commands
    sudo dnf
    to
    sudo apt
    ).

    sudo apt install usbmuxd libimobiledevice6 libimobiledevice-utils mkdir ~/iPhone ifuse ~/iPhone


    I find it surprising that your user was not originally in the
    plugdev
    group. Here are the groups that my user profile belongs to under Debian (note that depending on the applications you have, some of these groups may not exist for you):

    (mando@silk) (~) $ groups
    mando cdrom floppy sudo audio dip video plugdev input netdev lpadmin scanner bluetooth


    Good luck
    0
    1. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527
       
      Hello mamiemando,

      Thank you for the additional information. I will take a look at that tomorrow.

      Have a nice day.
      0
  4. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527
     
    Well, after several tests, it's impossible to retrieve these books. No problem retrieving the photos, videos, etc. But it's impossible to recover files from an app that is no longer supported. Too bad for me.

    Best regards.

    --
    “It has unfortunately become clear today that our technology has surpassed our humanity.” Albert Einstein
    0
    1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
       
      Typically, these books are stored in their own individual files, and therefore accessible/copyable just like any other file (and independently of the installed applications). Have you located the files in question? Have you tried transferring them?
      0
    2. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527 > mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention  
       
      On the iPad, books are stored in the application's directories. With KDE Connect, it doesn't work. The same goes for libimobiledevice, in which case I sometimes manage to see the files but cannot retrieve them because I get the following message: "unhandled apple file control error (2)". So I am going in circles.
      0
    3. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940 > bendrop Posted messages 12659 Registration date   Status Contributor Last intervention  
       
      Hello,

      I don't know Apple devices, but according to this discussion, your error might be due to a permission issue (on the Apple device). Because regardless of the technical solution used to access the file, your Apple device must allow your computer to access these files.

      Then, if you launch
      kdeconnect
      on your Apple device, you should be able to choose the file to send, and since the access is direct, it should work (and you're vague about why it's not working). Have you managed to find the files in question? Have you managed to pair the two devices?

      Good luck.
      0
    4. bendrop Posted messages 12659 Registration date   Status Contributor Last intervention   8 527 > mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention  
       
      Good evening,

      You need to use TestFlight to download and try KDE Connect, which is only a beta version.
      Once launched, it does not see my Linux PC despite being on the same network. I reported the bug to the developer.
      Regarding my issue, it is a permissions problem and it is really locked down by Apple.

      Best regards.
      0
    5. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940 > bendrop Posted messages 12659 Registration date   Status Contributor Last intervention  
       
      Have you tried (as suggested in the link from the message #12) unplugging/replugging your iPad to see if it resolved the permissions issue?
      0