Comments (10)
Thanks for the extended report. Just pass "-e" to enable erase restore mode to idevicerestore and run it again. This should work for an iPhone 4 just fine with the current git master. You also need to use "idevicebackup2" and not "idevicebackup". Latter only works up to iOS 3.x afair. We also noticed that when doing "update restores" of major versions (example: iOS 6 to iOS 7), fsck will always complain and fail which appears to be "by design" from Apple. Therefore an "erase restore" is required here.
from idevicerestore.
Thanks, I ended up with a working iPhone4 iOS7. No contacts or other data though.
Also, my iPhone does not connect to my computer anymore not even idevice_id
recognises the phone and asks whether it is plugged in. The iphone keeps asking whether to trust the computer but nothing else happens.
However, the file manager displays the phone even though not accessible.
How to proceed in order to retrieve my contacts I (hope I) saved using idevicebackup2
in a filefolder before the erase-restore odyssey to iOS7?
from idevicerestore.
The "-e" option to idevicerestore repartitions the flash, creating new System and Data partitions. You must restore from backup and re-sync your media to get the device back to the state before the upgrade. You should start by restoring your backup. I think you want:
$ idevicebackup2 restore --system --reboot /path/to/backup
If the backup is encrypted, you will also need the "--password" option. If it's not encrypted, the Keychain, containing all your passwords, is not included in the backup. Thus, that is a practical reason to enable encrypted backups even if you are not concerned about the security of your backup. The reason your attempt to restore before did not work is that the device was in Recovery Mode; the backup service that idevicebackup{2} backs up and restores your user data, and it requires the device to be fully booted and operating normally to operate. idevicerestore installs or updates the OS and does not operate on your data, except that doing a full restore erases everything, including your data.
Hope this helps,
Aaron
On Dec 17, 2013, at 8:02 AM, Amoremio [email protected] wrote:
Thanks, I ended up with a working iPhone4 iOS7. No contacts or other data though.
Also, my iPhone does not connect to my computer anymore not even idevice_id recognises the phone and asks whether it is plugged in. The iphone keeps asking whether to trust the computer but nothing else happens.
However, the file manager displays the phone even though not accessible.How to proceed in order to retrieve my contacts I (hope I) saved using idevicebackup2 in a filefolder before the erase-restore odyssey to iOS7?
—
Reply to this email directly or view it on GitHub.
from idevicerestore.
Thanks Aaron, that would probably help going forward. If only the iPhone would show up on the computer when connected. I assume there may be some sort of firewall coming with the new OS which keeps asking me whether to trust the computer, but I cannot identify the idevice nor send a command as reboot. In brief, iPhone keeps asking whether to trust the computer it's connected to and computer keeps asking whether iPhone is plugged in.
Any idea on how to troubleshoot that first?
from idevicerestore.
When you run a utility like "ideviceinfo", does that trigger the "Trust this Computer" dialog? If so, that indicates that the device is visible on the USB bus and your problem is with establishing a trust. Without the trust, the utilities will be denied and they will report the message you see. I've had some luck by repeatedly running ideviceinfo and responding to the dialog as quickly as possible. Usually, by the second or third attempt it has been able to pair (establish a "trust") with the device. But, I'm on Mac OS X, not Linux, so YMMV.
The libimobiledevice maintainers were working on some fixes to improve the pairing process. If you can't get it paired, I will double-check to see if their fixes have been committed.
Another option may be to connect it to an OS X or Windows machine to create a pairing file, then copy that to the appropriate location on your Ubuntu machine. I think libimobiledevice is using a compatible file format for the host pairing file.
Aaron
On Dec 17, 2013, at 12:19 PM, Amoremio [email protected] wrote:
Thanks Aaron, that would probably help going forward. If only the iPhone would show up on the computer when connected. I assume there may be some sort of firewall coming with the new OS which keeps asking me whether to trust the computer, but I cannot identify the idevice nor send a command as reboot. In brief, iPhone keeps asking whether to trust the computer it's connected to and computer keeps asking whether iPhone is plugged in.
Any idea on how to troubleshoot that first?Gesendet: Dienstag, 17. Dezember 2013 um 15:07 UhrVon: "Aaron Burghardt" [email protected]: libimobiledevice/idevicerestore [email protected]: Amoremio [email protected]: Re: [idevicerestore] iOS upgrade fail (#1)
The "-e" option to idevicerestore repartitions the flash, creating new System and Data partitions. You must restore from backup and re-sync your media to get the device back to the state before the upgrade. You should start by restoring your backup. I think you want:
$ idevicebackup2 restore --system --reboot /path/to/backup
If the backup is encrypted, you will also need the "--password" option. If it's not encrypted, the Keychain, containing all your passwords, is not included in the backup. Thus, that is a practical reason to enable encrypted backups even if you are not concerned about the security of your backup. The reason your attempt to restore before did not work is that the device was in Recovery Mode; the backup service that idevicebackup{2} backs up and restores your user data, and it requires the device to be fully booted and operating normally to operate. idevicerestore installs or updates the OS and does not operate on your data, except that doing a full restore erases everything, including your data.
Hope this helps,
Aaron
On Dec 17, 2013, at 8:02 AM, Amoremio [email protected] wrote:
Thanks, I ended up with a working iPhone4 iOS7. No contacts or other data though.
Also, my iPhone does not connect to my computer anymore not even idevice_id recognises the phone and asks whether it is plugged in. The iphone keeps asking whether to trust the computer but nothing else happens.
However, the file manager displays the phone even though not accessible.
How to proceed in order to retrieve my contacts I (hope I) saved using idevicebackup2 in a filefolder before the erase-restore odyssey to iOS7?
—
Reply to this email directly or view it on GitHub.
—Reply to this email directly or view it on GitHub.
—
Reply to this email directly or view it on GitHub.
from idevicerestore.
What I tried so far:
using 'lsusb' to list all usb devices, the iPhone clearly registers as connected. However it does not throw a "trust" query on the phone. A following 'ideviceinfo' says there is no device plugged in and it doesn't even trigger a "trust query on the phone. There is no trust query at all anymore using any idevice* command. Only when newly plugged into the usb port a single query is encountered and fails no matter which answer I give.
I have tried to enable the wifi hotspot on my phone which lead to several "trust" queries but even after 24 trustful answers was not successful in producing any kind of data connection.
May it be a timing problem between the computer trying to connect hence waiting for positive response and the user being able to "trust" only after a certain time interval the phone needs to even pop up the dialog?
As for the pairing file - my computer says it already paired with the phone (as says 'idevicepair list'). But validation fails with
mynotebook@home:~$ sudo idevicepair -u 2a527e79fe* validate
No device found with udid (null), is it plugged in?
So I doubt some Windows pairing file would make a difference.
Could one implement a way to pair via the known usb details from the 'lsusb' response? Or some way to refresh the trust query?
Thanks a lot for your responses so far and for the considerations.
Amo
from idevicerestore.
On Dec 17, 2013, at 5:07 PM, Amoremio [email protected] wrote:
What I tried so far:
usinglsusb
to list all usb devices, the iPhone clearly registers as connected. However it does not throw a "trust" query on the phone. A followingideviceinfo
says there is no device plugged in and it doesn't even trigger a "trust query on the phone. There is no trust query at all anymore using any idevice* command. Only when newly plugged into the usb port a single query is encountered and fails no matter which answer I give.
I have tried to enable the wifi hotspot on my phone which lead to several "trust" queries but even after 24 trustful answers was not successful in producing any kind of data connection.
May it be a timing problem between the computer trying to connect hence waiting for positive response and the user being able to "trust" only after a certain time interval the phone needs to even pop up the dialog?
On my OS X machine, I see regular connects and disconnects via wifi, so it appears either the device or the computer is polling at a regular interval, even after a trust is set up. In your case, I perhaps the polling is occurring and triggering the trust dialog.
As for the pairing file - my computer says it already paired with the phone (as says
idevicepair list
). But validation fails with
mynotebook@home:~$ sudo idevicepair -u 2a527e79fed0f065c3fe1d001089ca2a954124a4 validate No device found with udid (null), is it plugged in?
So I doubt some Windows pairing file would make a difference.
Could one implement a way to pair via the known usb details from thelsusb
response?
No, the trust is a secure negotiation between the device and the host computer, so the USB parameters are not enough.
Or some way to refresh the trust query?
Thanks a lot for your responses so far and for the considerations.
Amo
Getting a file from a Windows machine may work. Your existing one won't validate because the corresponding file on the device got erased when you restored, so you need to set up a new trust, which will create new files on the computer and the device. The pairing file on the computer side does not have any host info in it, so it can be moved to other machines (although they can be made machine-specific with the Apple Configurator or other MDM solutions).
Aaron
from idevicerestore.
@Amoremio Are you using the latest usbmuxd, libusbmud and libimobiledevice git master or some version installed from packages? For iOS 7 support, currently the latest git master of the listed libraries is required.
from idevicerestore.
I have compiled and installed all packages from github.com/libimobiledevice including usbmuxd, libusbmuxd and libimobiledevice (except for sbmanager as the libbz2 package reference seems to be out-of-date being replaced by bzip2). In the current state meaning as they are at the moment on the web.
from idevicerestore.
Try this procedure and report back the output of usbmuxd, idevicepair, and ideviceinfo:
- Disconnect the phone
- start usbmuxd with "usbmuxd -f -v -v" (it runs in the foreground)
- connect the phone
- If prompted, tap "Trust" on the phone
- When the output from usbmuxd settles, note the point in the output
- attempt to pair, with the debug flag: "idevicepair -d pair"
- If prompted, tap "Trust" on the phone
- run "ideviceinfo -s" (this queries the device without requiring a trust)
Aaron
On Dec 19, 2013, at 12:26 PM, Amoremio [email protected] wrote:
I have compiled and installed all packages from github.com/libimobiledevice including usbmuxd, libusbmuxd and libimobiledevice (except for sbmanager as the libbz2 package reference seems to be out-of-date being replaced by bzip2). In the current state meaning as they are now. I keep installing the new one since I do not know of any options within the 'idevice*' commands or any other simple way to make the terminal print out a version number for the usbmuxd, libusbmuxd or libimobiledevice which I could compare to something. (ifuse has a such option though.)
I'll have another look whether there may be a conflicting package installed..—
Reply to this email directly or view it on GitHub.
from idevicerestore.
Related Issues (20)
- Soft flash issue Version 17.0 HOT 2
- iPhone 15 model Restore issue with iOS 17.0.2 ERROR: Unable to send TSS request HOT 3
- iPhone 15 in recovery mode fails HOT 3
- ERROR: could not retrieve device serial number. Can't continue.
- Unhandled component 'Ap,SecurePageTableMonitor' on iPad mini 6th gen HOT 2
- ERROR: Unable to read OOB data from filesystem offset: No such file or directory HOT 2
- Failing to restore iPhone 12 with `iPhone13,2,iPhone13,3_17.0.3_21A360_Restore.ipsw` HOT 5
- Failing restore on multiple devices and Raspberry Pi 4 (Unable to send data to ASR)
- ERR0R : Device failed to enter restore mode. HOT 2
- [idevicerestore] ERROR: Unable to place device into restore mode HOT 1
- Failing to restore iPhone 12 with iOS 17.1.1
- Cant compile using make.
- Can't restore iPad 2,4 to iOS 9.3.5 HOT 1
- Install aborts because my system is too up-to-date. libtool version error.
- Restore iPhone blocked in Demo Mode
- STATUS=94&MESSAGE=This device isn't eligible for the requested build. HOT 9
- Not working on Windows HOT 1
- win restore error
- Error during restore
- Unable to send data to ASR. Sent 0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idevicerestore.