charlie@ureka.UUCP (charlie crassi) (01/31/91)
I believe I posted this before but got zero replies so here goes again. I would like to know if anyone has found a way to recover the lost file .phdir when the phone manager crashes with the database open. Recently, I called up my phone directory to retrieve an unlisted phone number of a friend. When I did the manager crashed. After that occasion, the .phdir in EVERY account was trash. The phone manager would not recognize ANY .phdir. However, it would allow you to start over from scratch and it would create a new file and work properly from it. Now I need to recover the corrupted file to retrieve all of the private unlisted and business contact phone numbers. I could write a getc putc routine to retreive the ascii portions and reconstruct the database again but I don't want to if someone else has already figured this mess out. Any help would be appreciated :-) -- charlie
gak@gakbox.Corp.Sun.COM (Richard Stueven) (01/31/91)
In article <170@ureka.UUCP>, charlie@ureka.UUCP (charlie crassi) writes: > >I would like to know if anyone has found a way to recover the lost file >.phdir when the phone manager crashes with the database open. Check your /lost+found directory. If your machine behaves like mine, you'll find a number of copies of .phdir files there...just decide which one you need and copy it back to the appropriate directory. have fun gak ** Richard Stueven attmail!gak gak@sun.com ** ** Monday is a work day, Tuesday's much the same ** ** Wednesday comes and goes away, Thursday's back again - Madness ** ** Relax, don't worry, have a homebrew! **
yarvin-norman@cs.yale.edu (Norman Yarvin) (02/03/91)
charlie@ureka.UUCP (charlie crassi) writes: >Now I need to recover the corrupted file to retrieve all of the private >unlisted and business contact phone numbers. Most of the file consists of unprintable characters, and the remainder is what you want, stored as text. If the 3b1 cat took the '-v' option, that would work; but it doesn't. So you can use od -c to find out the numbers of the unprintable characters in the file, and tr -d to remove them. -- Norman Yarvin yarvin-norman@cs.yale.edu
guy@cbnewsc.att.com (guy.r.berentsen) (05/07/91)
In article <170@ureka.UUCP>, charlie@ureka.UUCP (charlie crassi) writes: > > Now I need to recover the corrupted file to retrieve all of the private > unlisted and business contact phone numbers. I could write a getc putc > routine to retreive the ascii portions and reconstruct the database again > but I don't want to if someone else has already figured this mess out. > > Any help would be appreciated :-) > -- > charlie I had the same problem and wrote a short program to do an ascii dump of the complete directory, including deleted entries. I printed this out and reeentered anything I needed by hand. (This was alot easier than tring to rebuild the whole file.) I could Email or post the recovery program if anyone wants it. The .phdir file structure is documented in one of the manuals. Guy Berentsen att!ihlpf!guy