[comp.sys.amiga] Help, I can't write to my hard drive!

chris@graham.UUCP (Chris Graham) (02/03/90)

> Keywords: Help! I restarted my Amiga a while ago and was surprised to see
>            System Request
>            Error Validating Disk
>            Key 84432 already set
> I can read stuff normally, but whenever I try to write (delete, etc)
> I am told that the Disk is not validated. I tried checking the drive for errors, but that was not the problem. The message above is displayed before the startup sequence opens up the CLI window.
> I would really appreciate any help.

   In my experience, this problem is usually caused by a crash occurring
during a write operation to a file.  The problem is that a sector was
attached to the write-file but the DOS didn't have a chance to complete the
operation before the interruption.  The etiology underlying your symptoms
is that the write-file has a sector linked into it that is also linked into
a file which is also a part of the directory tree.  In your particular
example, sector 84432 got linked into your write-file but it was also a
part of another file which also exists.
 
  The simplest solution is to delete the offending write-file.  Assuming
you know what file was being written during the offending incident, most of
your problem is accomplishing the deletion.  My favorite tool for this
purpose is Sectorama.  I use the hash function to get me to the location
in the directory hash-table which contains the pointer to the write-file
header.  Then I take the offending file out of the hash chain.  If there
are no hash collisions, doing so is a matter of simply overwriting the
pointer with zeros.  Rebooting the system after that will cause the system
to traverse the directory structure again and validate the bitmap.
  
  BTW, I don't have a recent Sectorama that knows FFS.  But that doesn't
matter unless you attempt to follow sector chains (which are contained in
OFS sectors, but not in FFS sectors).