ICloud disaster destroyed all my Pages work on the iPad!

I have an IPad 2 with Pages that I have used for months to write business articles and research papers for publication. I have been using iCloud to synch it through a single user account.
Last week, I was forced to upgrade my iMac to Lion because corrupted account permissions locked me out of all my home folders as well as my two different external drives and even my Time Capsule and Time Machine --- something supposedly impossible. But it all inexplicably happened. It took over a week for assorted sympathetic Apple care specialists and engineers to try to sort it out. The original problem was still never diagnosed or solved. Instead, my hard drive was erased, OSX 10.6 reinstalled, a date back up restored, and then Lion loaded as new. 
As per Apple care instruction, iCloud in Lion was immediately activated on the iMac -- but no document files were ever shared.
Four days later, after synching my iPad to iCloud, when I next opened Pages I watched in horror as in a mere second more than 30 documents vanished en masse right before my eyes.
Somehow all these files never got backed up in my iTunes even though I had made several recent saves to the hard drive as well as an iCloud back up!
And as for the files or even the mobile documents library folder being save in my recent Time Machine back ups, they never were. The back ups contain no iOS Pages text nor any deleted folder files to restore. 
Despite all the Time Machine and iTunes back ups, and despite all the free space on the iPad where I actually did all the work without an internet connection, as soon as I synched they were mysteriously deleted by iCloud. 
Pages on iPad was left empty and blank. Replacing the mobile documents folder on my iMac from a back up did at least managed to provide Pages file some icons with names dates, but they are ghost documents, mere skeleton files that can’t be opened. All my actual text content is now apparently nowhere; lost in Apple’s iCloud ether!
This is an iPad which for months I used for Pages work without any internet connection, 3G or WiFi, and yet in an instant the iCloud on its own disintegrated everything it contained!  Apple essentially reached down into my device, into my personal property that I own, and without warning, notice, or permission and simply erased all my work; all my personal labor and effort that belonged to me. They essentially committed sabotage and theft.
I have nothing saved anywhere despite being told how the iCloud was a trustworthy safety net, that Time Machine provided worry free back up, and that saving through iTunes could restore iPad content. Garbage. I did everything right and still got screwed.
Further…
In just the past two weeks alone I have suffered: my second iPhone -- a month old replacement for a previous defective iPhone itself only a month old -- experience a “software corruption” that caused it to continuously shut down if unplugged; my iMac and Time Capsule failing; and now this catastrophic iPad disaster.
If this is not resolved with my fiels returned to me I simply will never use iCloud and I will never trust Apple again.
I am disgusted and furious beyond words.
JC
Atlanta

Hi JC,
My iPad is in a similar state, although I arrived in the bizarro state by a different path.  I am also waiting for the apple experts to get back with me.  I have an iPad 1 with ios 5.1.1 and Pages 1.7.1.
In the mean time, while I was waiting, I found a way to extract the TEXT from a large Pages document I did not want to lose;  it was the result of many years of notes.  This might save you some time instead of sifting through the raw index.db. 
The index.db file is a sqlite3 file.  If you are on mac you can open it from a terminal with the command:
sqlite3 index.db.
I suggest you move the file out of the iTunes directory before you start working with it, just in case something unexpected happens, you don't want to lose the only copy of the data you are trying to recover. 
1) Once the file is open via 'sqlite3 index.db' from a terminal command line, type ".tables" at the 'sqlite>" prompt and press enter.  It should show five tables:
cullingState
dataStates
document
objects
relationships
2) The file with your data is named dataStates, but it has many records in it.  I found my data by looking for the "largest" record.  Let me explain.  There are two fields in the dataStates table:
identifier
state
Your data is stored in the 'state' field and it's data type is 'blob'. (I know that sounds stupid, but stick with me.)
3) I found the largest record by typing  this query at the 'sqlite>' prompt:
select identifier, length(state) from dataStates order by length(state) asc;
My 'dataStates' table had 599 records, so many lines fly by, but the largest state field is at the bottom of the list with it's identifier.  Mine was:
3|173212
That identified a dataStates record with identifier '3' and 173,212 bytes of data in the 'state' field. Most of the bytes where printable ascii.  It WAS the text of my original Pages document.
DISCLAIMER:  This method does not retrieve ANY formatting, pagination, tables bullets or numbering, images or other document rendering information.  It is just the TEXT.
4)  Type this SQL command at the 'sqlite>' prompt to pull out the blob data:
select hex(state) from dataStates where identifier=X;
In my case the identifier was 3 so MY command was:
select hex(state) from dataStates where identifier=3;
5) Now is when the funs begins.   The large block of gibberish is 'ascii encoded binary' brought to you courtesy of the hex function. 
To store it in a file, use the the sqlite3 '.output' command and type the preceding sql select.  Like the following:
.output binacii.txt
select hex(state) from dataStates where identifier=3;
.output stdout
This takes the large block of 'binary encoded ascii' and writes it to file named 'binascii.txt' rather than displaying it in the terminal window.  After the select statement ends, the output is switched back to the terminal window (stdout).    The 'binascii.txt' file is located in the same folder/directory that was the current directory when you launched the sqlite3 command.
6) I moved my 'binascii.txt' file to a windows computer at this point and wrote a simple conversion routine to decode the 'ascii coded binary' into something usable with a work processor.  In "ascii coded binary", each 8-bit byte of data is encoded as two ascii characters, it enables sending binary data via the internet, etc, similar to uuencode, but NOT the same.
7) Here is a small python program to convert the 'binascii.txt' file to the text from your Pages document on a Mac:
import sys
p = sys.stdin.read()
s = []
for location in range(0, len(p), 2):
   value = int(p[location:location+2], 16)
   if value >=32 and value <=126 or value==10:
       s.append(chr(value))
sys.stdout.write(''.join(s))
8) (NOTE: The last line has two single quotes (') not a double quote (")). I am assuming at this point that you know how to create a text file using a terminal window.   Add the python script to a text file, make sure you honor the indentations!  I named my python file 'convert.py'.  To use the python script, type the following command:
cat binascii.txt | python convert.py > your.txt
This method also assumes that the files 'binascii.txt', 'convert.py' and 'your.txt' are all in the same folder/directory.
9) The resulting file, 'your.txt' can be opened by Word or Pages (you can name the file 'your.txt' to whatever you want).  In my case, I opened the file 'your.txt' with MS Word.  It had some rudimentary formatting in the form of paragraph breaks, single lines, some headings etc.  I did lose the data stored in tables, although I expect the text is still lurking somewhere in the index.db file.
There were some ascii characters that were not part of my original document, but they were pretty easy to find and remove.  In my case the errant ascii characters were outside my document's large text block.   Also numbered and bulleted blocks run together.  Again the formatting information is still buried within the index.db file.
The iOS Pages file format is more cryptic than the simple zip/XML format from the desktop OS X version of Pages.  
Hope this helps a little, although you seem to be OK with the approach of sifting through the raw index.db file.  The Pages document  I wanted to recover was 63 pages long and manually sifting through all the crap in the index.db  drove me on a quest to find the real text within the index.db file, which i found.
Sorry for the length of this post,
Cheers

Similar Messages

  • Sharepoint 2010 - Home Page not displaying, all other pages work fine

    The web page URL <server>/sitepages/Home.aspx is not displaying when accessed. All other pages work fine. We changed the default welcome page to another page, and that works. When we try to access the Home.aspx, it displays "An unexpected error
    occurred" message. The Home.aspx only contains a couple of Lists, with Links, and a calendar. The other odd thing is that the Home.aspx displays in SharePoint designer in Advanced Edit mode, but won't display in a browser. Any ideas?

    Hi Isepic,
    1) Check the approval of the page (Home.aspx) whether it is in pending state .
    2) OR might be some problematic webpart is added in the page. You can try to close it and access. To do that,you can try to access the web part maintenance page of home.aspx and test by closing the webpart one by one.
         To access the maintenance page,pass the parameters ?contents=1 after the home.aspx
           For example, http://site url/home.aspx?contents=1
    3) Also,check the ULS logs after accessing the home.aspx to know what is happening.
    Please remember to mark your question as answered & Vote helpful,if this solves/helps your problem. 
    s p kumar

  • HT5843 I have OS X on both my iPad and my new iMac. I purchased Pages for my iPad and my husband's iPad at least a year ago. All of my stuff on the iPad is stored in the Cloud. Do I have to purchase it again on the iMac?  How do I get it to run on the iMa

    I have OS X on both my iPad and my new iMac. I purchased Pages for my iPad and my husband's iPad at least a year ago. All of my stuff on the iPad is stored in the Cloud. Do I have to purchase it again on the iMac?  How do I get it to run on the iMac?

    attymot wrote:
    Do I have to purchase it again on the iMac?  How do I get it to run on the iMac?
    You should also be able to access your docs (even without the Pages app on your iMac) by logging into iCloud.com and using the Pages for iCloud beta app via your browser.
    (By the way your iPad uses iOS and not OS X)

  • My daughter bought an 4th generation ipod classic without a charger.  We are using the charger from an ipod touch and it won't charge.  Someone posted online that not all chargers will work on the classic.  Anyone else have this issue and any suggestions?

    My daughter bought a 4th generation ipod classic without a charger.  The ipod was working just fine, but then we tried to charge it using a brand new charger for an Ipod Touch.  It won't charge and someone online someone posted that there ipod touch charger worked on the ipad, phone and whatever else he had but it wouldn't work on the classic.  Anyone else have this same issue?  Any solutions?

    The ipod did not come with a power cord as we purchased it used from ebay.  The ipod was half charged when we received it and it worked well enough to transfer songs to my computer (the previous seller didn't delete their 2000 plus songs).  My son then used the same cord on his computer to transfer the songs, but processed an update to the ipod and after that,it wouldn't work.  So, I'm not sure if we received a bum ipod, an update issue or we have a charger issue, but the cord we used to transfer the songs came from my son's brand new ipod touch.  We've also tried 2 other chargers from ipods we have in the house, 1 being a wall charger. 
    One individual posted online that he took his ipod classic, mac and phone overseas with one charger and it worked fine on all but the classic.  So, I'm thinking that they cords may not be universal.  Online I've read that it must be a 6 pin firewire, high power 2.0 usb cord.  Or that I need to purchase an applie charger.  We don't live close to an apple store and I'm reluctant to order one just to have it NOT work. 
    My daughter is learning the hard way that buying off of ebay is not always the best solution to a cash strapped 12 year old.
    Any other advice is greatly appreciated.

  • Do all the apps on the iPad work for the iPad mini?

    Do all the apps on the iPad work for the iPad mini?

    Hi
    Have you progressed your evidence based knowledge on this issue?
    I recently posted elsewhere:
    "I am very interested in this issue as I want an ipad for 7 months travel in Southern Africa and the particular app I want is Tracks4 Africa map app On App store it says "This app is designed for both iphone and ipad" and later on "Requires iOS4.3 or later." and "optimised for iphone 5"
    In emails with the developers their junior tech assistant says it is not compatible with an ipad mini with wi-fi.  My attempts to differentiate whether its compatible with an ipad mini running both wi-fi and mobile has fallen on deaf ears.
    Does the ipad mini offer 4.3?
    Could you understand why an app wouldn't be compatible with a wi-fi only app but would be ok on a wi-fi and mobile unit?"
    Thanks
    paul

  • I have problems uploading a journal from iPhoto in my iPad, the web page online works on the iPad but I can't open the link on my computer

    I have problems uploading a journal from iPhoto in my iPad, the web page online works on the iPad but I can't open the link on my computer

    What did you rent the film on, your iPad or your Mac ? If you rented it on your iPad then it should have downloaded into the Videos app on it (you should get a rentals tab in the app). If you rented it on your Mac then it should be in the Movies part of your Mac's iTunes library, you will have to connect your iPad to your Mac's iTunes and move it from your Mac to your iPad (I think that it should show on the iPad's Movies tab for moving)

  • HT204394 Does iCloud work on the iPad mini

    Does iCloud work on the iPad mini

    Welcome to the Apple Community.
    W100dy wrote:
    Does iCloud work on the iPad mini
    Yep.

  • TS3992 I recently dropped my ipad and had to get a new one.  I backed up the first I pad and used the icloud to reload all my data on my new ipad.  Now when I go to backup the new ipad it says I cannot because I don't have enough ICloud storage available.

    I recently dropped my ipad and had to get a new one.  I backed up the first I pad and used the icloud to reload all my data on my new ipad.  Now when I go to backup the new ipad it says I cannot because I don't have enough ICloud storage available.

    If you can't get the password correct, you CANNOT restore from that backup.
    However, if you've been using your phone as recommended by Apple, there should be minimal data loss.
    Your iTunes library is on your computer, so you can synch all your apps, music, movies, ringtones, etc, on to your new phone.
    Similarly, contacts should be synched to Address Book, Outlook, or a cloud service for you to easily synch back to your new phone.
    Pictures taken from your old phone and not synched to your computer are lost, but you would have been synching those photos to your computer frequently as recommended.  Other photos that you synch TO your iPhone are still on your computer.
    You won't be able to get text messages back.

  • I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

  • Wifi is not available where I come from. I have broadband connection where data transmission is through cell sites then to USB modem connected to a computer. The modem draws power from the computer. Will this setup work with the ipad?

    Wifi is not available where I come from. I have broadband connection where data transmission is through cell sites then to USB modem connected to a computer. The modem draws power from the computer. Will this setup work with the ipad?

    iPad requires Wifi (or 3G /LTE) to connect to the Internet. You cannot connect a USB modem to the iPad.
    You can create your own WiFi hotspot through your computer for your iPad to connect to, if your computer supports this functionality. All Wifi Macs and many Wifi PCs do. Check your computer manual for how to do it.

  • Is there an easy to use word processing program that works on the iPad?

    Is there an easy to use word processing program that works on the iPad?

    A gazillion.  Pages, docs to go, quick office.  Look in the app store for word processing.  Read the reviews.

  • Small CF card reader that works with the iPad Camera Kit?

    I'm looking for a small (not much bigger than a CF card) CF Card reader that works with the iPad Camera kit (USB piece) - Anyone know of one?
    All the ones I see people suggesting are big and bulky (made for a desktop). I know there are many smaller ones, but that the iPad camera kit doesn't work with everyone. Anyone know one that works with it?

    My set up, quite compact for travel, this is a no brand version but I have seen other ones branded Integra or something similar.
    http://farm5.static.flickr.com/4029/4713475185b52dae86bdb.jpg

  • How do you get Groups to work on the IPAD? They imported and show in Address Book but when used, only the first address picks up.

    How do you get Groups to work on the IPAD. They show in address book but only the first name is used when entering.

    When you select the bookmark on the upper left, you should be able to see multiple groups.
    For the groups page, select the bookmark on the upper right to see the individual entries.

  • Does SIRI work on the ipad?

    Does SIRI work on the ipad?

    Siri WILL work on "The New iPad" and it will have many of the new features in iOS 6. The iPhone 4S gets more features, but still the iPad 3 will get a healthy chunk. Unfortunately, users like me on my iPad 2, and other people on iPad 1 (who doesn't even get IOS 6) and iPhone 4, 3GS, iPod 4th Gen, don't Get Siri AT ALL and probably won't get it (fingers crossed though!
    Hope this helps, if not, messag me back!

  • Can I connect an iPad in such a manner to a Windows based PC so that all that I write on the iPad, is immediately displayed on the Windows PC and on a screen by using a data projector?

    Can I connect an iPad in such a manner to a Windows based PC so that all that I write on the iPad, is immediately displayed on the Windows PC and on a screen by using a data projector?

    In technical support, sometimes you have to make educated guesses. I'm sorry that you were offended.
    iTunes does prompt when it is going to erase a device, and the message is clear.
    She said in her message that she was able to successfully sync the old ipad. This indicated to me that itunes wiping the data was not an issue, because either it had been setup at the apple store (in which case it doesn't actually wipe the ipad despite saying it will*) (*based on a single case I saw), or because the itunes media folder was migrated.
    Furthermore, my solution was to tell her how to backup her ipad (by either doing it manually, or as a last resort, by deleting the corrupt backup -- that she couldn't access anyway.)
    I got that last part of the instructions from the "Taking Control of your iphone" book which I found samples of when I did a google search for "corrupted backup itunes".
    She marked this as a solution, so it worked for her.

Maybe you are looking for