Skip to Content

HowTo: Restoring your iPhone Notes from a Mac

If your notes got wiped during a recent firmware upgrade, here are some steps that may help you recover them. Warning: Hacking expertise for this exercise is rated "high" to "severe".
  1. Install Apple Dev tools if they're not already on your computer.
  2. Copy this to your Mac, name it dbextract, make it executable, and add it to your path somewhere.
  3. Navigate to ~/Library/Application Support/MobileSync/Backup.
  4. List all folders chronologically, i.e. ls -lt
  5. Go into the newest folder and run dbextract against the mdbackup files in that folder: i.e. dbextract *.mdbackup
  6. Examine the extracted database files. Open them if needed in sqlite3 and .dump their contents. If they have your content, great. If not, go to the next folder in chronological order and repeat.
  7. Once you find the notes.db file you're looking for, scp or sftp it over to your iPhone and place it into /var/root/Library/Notes.


If your notes got wiped during a recent firmware upgrade, here are some steps that may help you recover them. Warning: Hacking expertise...
 

Add a Comment

*0 / 3000 Character Maximum

18 Comments

Filter by:
Xceler8

If anyone knows how the Notes function works on the iPhone in comparison to Notes on an iPod where you can load the Notes directory (& Calendar too) up with a set of files (if the iPod is accessible in disk mode) in a hierarchical structure so they can be navigated offline & meaningful content (in my case travel destination info) can be used by folks - (in Calendar - events at a destination can be searched as well), I'd appreciate being pointed to reference material that might help me better use the iPhone platform for my applications & preload notes into the iPhone notes.db file.

Thanks in advance for any help,

Marvin

November 04 2007 at 3:10 PM Report abuse rate up rate down Reply
egg

Nice work, thanks!

August 31 2007 at 12:35 PM Report abuse rate up rate down Reply
Zeb

Do Apple Dev Tools = xcode? (1gb of code, yikes!) http://developer.apple.com/tools/download/

Or what exactly needs to be installed? I need to try this, so will someone please provide a link to the specific app(s)?

August 23 2007 at 7:50 PM Report abuse rate up rate down Reply
R Muffet

@Mark, from memory there's a "DCIM" folder in the root directory, just like any digital camera would have.

But just plug the iPhone in and launch iPhoto to offload the photos.

August 22 2007 at 10:17 PM Report abuse rate up rate down Reply
mark

Any idea where photos taken on the iPhone but not transferred to iPhoto are stored as they don't seem to be backed up in iTunes and do get wiped out with restores.

August 22 2007 at 6:24 PM Report abuse rate up rate down Reply
ZuDfunck

My notes are all good, ZuD doesn't mess with things he doesn't comprehend. Apple will give us what we need when they have it ready.

August 22 2007 at 4:41 PM Report abuse rate up rate down Reply
Thayne Miller

I found a really good way to make sure that a restore doesn't blow away your backed up stuff.

1) go into iTunes Preferences and DELETE your current iPhone backup.
2) Re-sync the iPhone to create a NEW iPhone backup.
3) (this is the most important part) When you want to update your phone, DO NOT CLICK UPDATE. Instead, click RESTORE. This way, the apple software won't have the unknown error and fritz up. Just do the restore because if you're hacked your phone, you'll have to do that anyway.

Following these instructions, I restored all my texts, notes, settings, etc with no problems, where-as with the 1.0.1 update, I didn't follow these and I lost everything.

Hope that helps.

August 22 2007 at 2:54 PM Report abuse rate up rate down Reply
MacSlut

I don't know why, but for some reason I retained a lot of stuff when I restored for the 1.0.2 upgrade as opposed to the 1.0.1 upgrade. Of course the restore was expected in advance due to hacking, but this time I had kept everything organized for re-hacking. I was up and running as before with all my hacks and apps in about 30 minutes.

David's comment above is awesome. I've added it to my list. In fact, since iTunes doesn't back this stuff up, I'm adding it to my weekly maintenance/backup routine for my Mac.

August 22 2007 at 12:06 PM Report abuse rate up rate down Reply
Johnny Thrash

Don't hack your phone and you won't lose them.

August 22 2007 at 10:57 AM Report abuse rate up rate down Reply
David

You've already got SSH into the phone, why go to this trouble. Before restoring, ssh, grab /var/root/Library/Notes/notes.db restore/update phone, then put the file back. It's a whole lot easier. In fact, I did that for everything from notes, browser bookmarks, stocks, etc. Worked great.

August 22 2007 at 10:21 AM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.