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".
- Install Apple Dev tools if they're not already on your computer.
- Copy this to your Mac, name it dbextract, make it executable, and add it to your path somewhere.
- Navigate to ~/Library/Application Support/MobileSync/Backup.
- List all folders chronologically, i.e. ls -lt
- Go into the newest folder and run dbextract against the mdbackup files in that folder: i.e. dbextract *.mdbackup
- 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.
- 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.
Share
Categories
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
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
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)?
@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.
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 Permalink rate up rate down ReplyMy 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 Permalink rate up rate down ReplyI 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.
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.
Don't hack your phone and you won't lose them.
August 22 2007 at 10:57 AM Report abuse Permalink rate up rate down ReplyYou'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 Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



18 Comments