Subject: Re: rescue filesystem overwritten by TOS?
To: None <D.L.Hastings@exeter.ac.uk>
From: Leo Weppelman <leo@wau.mis.ah.nl>
List: port-atari
Date: 07/11/1997 13:40:34
D.L.Hastings@exeter.ac.uk wrote:
> 
> 
> Apologies if this is the wrong list to ask this, but any help
> would be appreciated.
> 
> Whilst playing with Diamon Edge tonight I made a horrific error
> and managed to write a GEM/DOS header (FAT/directory I guess)
> onto my /local ffs partition. Now fsck on that partition reports
> bad superblock and states the partition is MSDOS.. The question
> is (you guessed it) is there anyway to rebuild the ffs info
> that should be at the start of the partition without losing the
> files that are still presumably written to it somewhere?
> 
> I've tried fsck -b 32 /dev/sd0d and a few other alternate superblock
> locations but fsck meerly complains "BAD SUPERBLOCK: MAGIC NUMBER WRONG"
> and gives up.

I don't understand the message about MSDOS. Can it be that the partition
id was changed? You can check this with edahdi(1). If so, part of the
solution will probably be to revert this change...

Leo.