iTunes cannot read the contents of the iPhone

by JC on October 5, 2008 · 20 comments

in Settings

If, like me, you spent days hacking your iPhone to make it work on an unofficial cell phone network, then you can understand how scary it is when iTunes tells you that it wants to restore the phone to factory defaults.

If I’d followed iTunes advice my phone would’ve been rendered useless. So, I was quite pleased when I discovered another fix.

It seems that my phone went on the fritz in the middle of exporting images to iPhoto. So I found a fix online where you delete the contents of the media folder, then when you reconnect to iTunes you get the option to load a the backup. No restore, no factory defaults, all is good!

If you have command line access to your phone you can use the following:

rm -R /var/root/Media

Otherwise you can connect via SSH or SFTP and delete the files manually.

Related posts:

  1. Nicest support email ever from Bianca at iTunes Store
  2. Gmail settings for iPhone & MacBook Pro
  3. How to change time-zone on a Linux server
  4. Repair cracked iPhone screen
  5. An update to the carrier settings for your iPhone is available. Would you like to download it now?

{ 20 comments… read them below or add one }

1 Danail Petrov October 24, 2008 at 2:22 pm

I’ve just got the same message on my iPhone but this clue doesn’t work for me. What is your iPhone version? I have iPhone 8G (old generation) with software version 2.1.

2 JC October 24, 2008 at 2:25 pm

I’m on an unlocked 8gb 1.1.2.

Do you have root access to your phone?

3 Danail Petrov October 24, 2008 at 3:00 pm

Yes, I have. Actually, I found what was the problem. Because I’m using a Custom Firmware which is created with symbolic links, I’ve had to remove the /private/var/mobile/Media/ as well.

Anyway, thank you for your effort! My explanation can be used from other people (or at least I hope so because this page comes at the first place in google result)

Kind regards,
Danail Petrov

4 JC October 24, 2008 at 3:07 pm

Thanks for posting your findings, I too hope this will help others.

Just out of interest, where did you get the custom firmware and what benefits does it have?

5 Danail Petrov October 24, 2008 at 3:51 pm

Well, I’ve downloaded it from a website. I can’t remember what was actually it’s url address but I can find it if you ask to. There are lot of programs which allows you to create even your custom firmware with your favorite applications as well. So once you have installed all the thinks you need, you can create your own image/firmware. It works like old school software called “Norton ghost” (if you’ve heard it).

6 bosaka October 24, 2008 at 7:42 pm

I have figured out more specific cure:
Instead of deleting entire “/private/var/mobile/Media folder”,
just delete “/private/var/mobile/Media/iTunes_Control/iTunes/iTunesDB” database file. Make sure also to remove (back up) media files from”/private/var/mobile/Media/iTunes_Control/Music”. Since database file is deleted these files will have no reference inside itunes anymore. You can add them again to iTunes later.

Next time you launch iTunes -will create new database file.

(I was using iphone 3G, Itunes 8)

7 JC October 24, 2008 at 9:46 pm

Danail, sounds cool, fire me the link if you find it.

bosaka, neat! 3g is my next purchase, just as soon as they iron-out those bugs.

8 alex October 30, 2008 at 4:31 pm

thnx bosaka…this works for iphone 3G 2.1….

9 abdullah October 31, 2008 at 4:33 pm

thank you :)

10 David November 2, 2008 at 2:37 pm

WOW!!! thanks a lot. i was going crazy here for a sec. works great.

11 sapir December 26, 2008 at 6:01 pm

thank you very much bosaka!!!

12 b January 3, 2009 at 9:52 am

You guys are the shit. Thank you so much. I was actually able to grab the photos I thought that were lost when I started the 2.2 restore in itunes without syncing my pix. WOHOO!

13 vick January 24, 2009 at 8:59 am

yo boska boy…u fkin genius man….thanks it worked like butter….thanks

14 Sid January 24, 2009 at 2:32 pm

Bosaka…BOOYAKA! May ALLAH have Mercy on you for the advice. It was an immense help and provided much relief to me after over a month of being without my music and updates to my photo albums. JC, may the Most Gracious provide HIS Grace to you too for providing the forum on which this advice can be found.

PEACE!s

15 Appreciator January 26, 2009 at 12:51 pm

My appreciation to you.

Rgds

16 ahmed April 8, 2009 at 6:15 pm

bosaka you are the best thank you very much .

17 Darren Fava June 20, 2009 at 4:27 pm

Worked beautifully! Thanks very much!!!! especially bosaka! xxxx

18 Sean June 20, 2009 at 4:55 pm

Just a note to all the jailbroken 3.0 fw peeps out there…this fix will work for you too. I thought the jailbreak FUBAR’d my phone…but it was indeed this file that bosaka directs you to delete above.

1. Recover via iTunes.
2. Jailbreak
3. Use iFunBox or the like to delete the file above
4. Open iTunes.
5. Rejoice to the Deity of your choice.

Have a nice day =)

19 judas June 20, 2009 at 6:17 pm

This saved me!!!! THANK YOU VERY MUCH!!

20 NAT June 21, 2009 at 10:52 pm

Need help.. Mine is the 4GB software V. 2.1

I have this problem and I don’t know how to do the command thing, please provide full details.. Any help will truly be appreciated

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: Ubuntu server distro direct-upgrade

Next post: NetInsight website analytics