Author Topic: Undelete or Recover files from a disk?  (Read 2687 times)

0 Members and 1 Guest are viewing this topic.

Offline girv

  • CPC464
  • **
  • Posts: 18
  • Country: gb
  • Will be at Replay Expo 5-6 November
    • girv dot net
  • Liked: 8
  • Likes Given: 0
Undelete or Recover files from a disk?
« on: 00:09, 26 October 11 »

Is there a CPC or Windows based utility that can search a (potentially partially corrupted) DATA format disk and recover or undelete files on it?


Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.124
  • Country: br
  • Liked: 1106
  • Likes Given: 1864
Re: Undelete or Recover files from a disk?
« Reply #1 on: 18:07, 26 October 11 »
In the wiki appears this tool, but you can find a lot of disk tools here (search for disc, era or similar string), i don't know which tool recommend you, because the last time that i need recover files from a disk, i was using DiskSalv in my Amiga :P

Although to recover or undelete files, you can use a hex editor, load the disk image, the catalog the first 4 sectors (remember that they are interleaved 1,6,2,7,3,8,4,9,5), the byte before each filename is the USER for that file (usually a 0) an $E5 in the case is erased, change the $E5 to 0 and the file will appear when you make a CAT... of course, the sectors can be in use by other file written in the disk at a later date.

Offline Cholo

  • 6128 Plus
  • ******
  • Posts: 517
  • Country: dk
  • Liked: 105
  • Likes Given: 117
Re: Undelete or Recover files from a disk?
« Reply #2 on: 19:39, 26 October 11 »
Well, ive never been much of a disc user myself, and im trying hard to recall the names of programs ive used for saving files from disc/tape. I remember especially a quite nifty program that allowed you to load basic programs even tho they suffered from Error A/B and then allow you to delete/alter the bad lines in the middel of the program and save it somewhere else safely.
Also there is a lot of "Disc format" or "disc edit" tools out there that allow you to un-hide, un-delete whole files or just view/edit single bytes/sectors.
Then there is the programs to use after recovering the discs to "mark" bad area on the disc with "dummyfiles" so that the rest of the disc becomes usefull again.

Here is a couple i can remember from AA tapes:

Disc Editor, Amstrad Action, issue 28, jan 1988 "Christmas 1987" (the christmas tape with The Duct on one side): Disc monitor/editor program (aka view/edit disc directly as Hex and Chars a bit like Maxam assembler view).

DMon, Amstrad Action issue 88, January 1993 Tape "Pack 22": Another Disc sector editor program.

Special Disc Formatter, Amstrad Action issue 37, oct 1988 "Birthday" (the birthday tape with the AA Dizzy SE game on one side): This program will reformat the disc and mark all bad sectors into a "corrupted"-dummy file. (Note it erases the disc so only use AFTER you have saved your data/files).

Offline Johnny Olsen

  • Supporter
  • CPC6128
  • *
  • Posts: 265
  • Country: dk
  • Liked: 192
  • Likes Given: 361
Re: Undelete or Recover files from a disk?
« Reply #3 on: 00:52, 27 October 11 »
A quick way to see deleted files is poke &a701,&e5 then make a cat.
You can now load a file - poke &a701,0 and save it again.
This works for basic files not overwritten.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1980
  • Likes Given: 4650
Re: Undelete or Recover files from a disk?
« Reply #4 on: 07:21, 27 October 11 »
Is there a CPC or Windows based utility that can search a (potentially partially corrupted) DATA format disk and recover or undelete files on it?

You can use the REName function of FutureOS. Just change to user number from &E5 back to &00.
 
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline TomEtJerry

  • CPC6128
  • ****
  • Posts: 183
  • Country: fr
  • Liked: 122
  • Likes Given: 0
Re: Undelete or Recover files from a disk?
« Reply #5 on: 21:06, 27 October 11 »
Hello,

If the directory of the disk is totally damaged, you can use Dir Doktor. This tool is not very "user friendly" (sorry, done for my own business when I used to store datas on an external drive that sometimes had the strange habit to unformat track 0), but is always better in most cases that other programs not designed for this difficult task.

T&J/GPA

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1980
  • Likes Given: 4650
Re: Undelete or Recover files from a disk?
« Reply #6 on: 21:44, 27 October 11 »
Well, if you have problems reading sectors, you also can reduce the number of reads to 1 under FutureOS and you get what the FDC delivers. Check it 3 times and be sure that some reads are the same. This always brought best results to me. If detailed help is needed let me know.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: Undelete or Recover files from a disk?
« Reply #7 on: 03:26, 28 October 11 »
From ParaDOS, choose 'F'ilespec, then use the left cursor key to go to the User: field and enter 229. You should then be able to see the deleted files and use 'M'ove to move them back to User 0.

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.875
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1082
  • Likes Given: 1829
Re: Undelete or Recover files from a disk?
« Reply #8 on: 05:31, 29 October 11 »
There was something like this in AA50:
 
Code: [Select]

poke &a701,229:|ren,"0:filename.ext","filename.ext":poke &a701,0:cat

which works in BASIC 1.1.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline 00WReX

  • 6128 Plus
  • ******
  • Posts: 690
  • Country: au
  • The time you enjoy wasting is not wasted time.
    • index.php?action=treasury
    • CPCwiki
  • Liked: 398
  • Likes Given: 928
Re: Undelete or Recover files from a disk?
« Reply #9 on: 04:49, 31 October 11 »
OddJob from Pride Utilities (1985) has a utility within it called "Diredit". This has an "unerase" option.
If files are erased and available to be unerased it will list them.

Check out the screenshot...
 
Cheers,
Shane
« Last Edit: 04:57, 31 October 11 by 00WReX »
The CPC in Australia...
Awa - CPCWiki