[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

664.0. "trashed directory help!" by NORGE::CHAD (Ich glaube Ich t�te Ich h�tte) Fri Nov 10 1989 11:12

Couldn't find any suitable places to ask this with DIR/TITLE though
I know it has been discussed (?).

Last night I trashed the directory of one of my disks.  The directory of the
previous disk got written to it.  Is there a way for me to salvage this
disk?  It has lots of my music on it.  I think I have some sector editors at
home (i haven't used them so I forget if I still have them).  I didn't do
anything after the directory got rewritten so I assume the files are still
there.  thanks for the help

Chad
T.RTitleUserPersonal
Name
DateLines
664.1OLDTMR::WALLACEFri Nov 10 1989 13:2416
With out the old directory you have lost the "pointers" to the start of each
of the files. If you are sure that ONLY the directory was trashed and that the
FAT is intact then you could probably write a program to follow the links
through the FAT and build directory entries for them with arbitrary file
names. If all the files on the disk were of the same type then this may not be
to bad, but if there is a mixture of executibles, text files, songfiles,
etc... it may take a lot of trial and error to figure out which files are
which. Actualy you could probably have your program look for magic numbers and
determine if a file was an executible or not. It could also make reasonable
assumptions as to wheather a file was an ascii text file or not. Humm...
Starting to sound like it might be a fun project IF you weren't forced into
writting because of a bad disk :-).

Not a lot of help I guess, just some random thoughts on the problem.

	Ray
664.2FORTSC::MESSENGERSuspended in EthernetFri Nov 10 1989 13:373
    On the other hand, if you have PC-DITTO, the Norton Utilites work
    perfectly well for repairing Atari file systems.
    				- hbm
664.3...NORGE::CHADIch glaube Ich t�te Ich h�tteFri Nov 10 1989 14:127
Unfortunately I don't program on my Atari and know nothing about atari's FAT
(though I know what it is).  There were only song files on it.  Didn't 
someone somewhere already have this problem?  I think the FAT is still good as
the "new" directory can't find the "new" files. Searching...  I do plan on
starting to hack around the Atari after I get Turbo C and my hard disk finished

Chad
664.4????NORGE::CHADIch glaube Ich t�te Ich h�tteFri Nov 10 1989 14:136
Isn't there a copy of the directory (or is it the FAT :-( ) somewhere on the
disk?  Maybe that didn't get updated.

Chad

darn switch I have on my drive for media change detect...
664.5Undelete requires the directory be intactOLDTMR::WALLACEFri Nov 10 1989 17:2611
There are two copies of the FAT, there are not two copies of directories.

The problem that was discussed already was someone who had deleted his files.
When you delete files all you are realy doing is marking them as deleted, you
are not realy destroying anything (ie: your directory is "destroyed"). So it
is an "easy" matter to "undelete" the files as long as you haven't created any
new files subsequent to the deletion. In fact a public domain UNDELETE program 
does exist for the ST, but it requires that the directory be in tact.


	Ray
664.6Help!!! PLEASE!!!!!KBOMFG::SCHAEDLEWolfgang Schaedle,@KBO,GermanyMon Mar 16 1992 02:3116
    Hello all,

    Have anybody a "undelete" program which works also with hard disks?
    I've deleted an entire partition from my harddisk with for me VERY
    important datas and of course I've forgotten to make a backup before. 

    How could that be happen? I've taken the wrong icon (in NeoDesk) and put it 
    in the trash, then after one second the partition was empty. I know that
    the datas (files) are still on this partition but I need a program which
    reconstruct all the files including folders.
    Any help is higly welcome. 
                        
    Thanks in advance,

    Wolf
664.7ORDNE_HD recommendedUFHIS::BFALKENSTEINMon Mar 16 1992 03:0913
    
    first of all, don't write anything onto this partition as this will
    overwrite files then. If you have a disk-monitor (like in HARLEKIN)
    you could search for "E5". In the directory of the disk the first
    character of a file gets replaced by the HEX value E5 when the file
    is being deleted. Edit this E5 to the hex equivilant of a normal
    alphabetical character to get the file back. But you should use this
    as the last chance in case you don't get a undelete program. 
    The "ST Sonderdisk" ORDNE_HD has a very good undelete option. Try to
    get this one first...
    
    Bernd
    
664.8Thank you!!!KBOMFG::SCHAEDLEWolfgang Schaedle,@KBO,GermanyMon Mar 16 1992 04:3110
    
Bernd,

Thats it! Realy, thanks a lot!!!!!!!!

I'll try to get the "ST Sonderdisk" ORDNE_HD from the
ST-Computer-mag. (I think they have it).

Thanks again,
Wolfgang
664.9Backup before you undeleteVFOVAX::PATTERSONThe world is flat, it's the universe thats roundMon Mar 16 1992 10:425
    Also, get a physical backup of the partition before you do anything.

    That way, if anything goes wrong, you can start over.

    Jim Patterson
664.10Don't get too excited yetPRNSYS::LOMICKAJJeffrey A. LomickaMon Mar 16 1992 10:5717
Don't get too excited.  Those instructions were for undeleting a single file.

It sounds like you told NeoDESK to erase the root directory and fat
table.  Finding files that were in the root directory is in general
very difficult.  However, finding the subdirectories is not too
difficult, since they have a very recognizable pattern, and that will
give you the starting cluser of files in those folders.  The problem is
that if the files you want are not contiguous, the lack of a FAT table
will make it difficult to find the subsequent clusters.

Generally, it takes substantial understanding of the disk structures as
well as some good tools in order to piece it all together.  Last time I
had to do this, I borrowed an MSDOS file system expert and together we
wrote some specialized programs to search the disk for the data I
wanted, and copy it off to another partition as we found it.

Good luck, you'll need it.