[comp.os.minix] Desperate help with hard disk

greg@mobius.Viewlogic.COM (Gregory Larkin) (02/27/91)

Hello,

(I promise not to repeat this post 3 times!)

Somehow, for the nth time, I have managed to trash the super block of
one of my hard disk partitions.  Is there any way I can restore the
super block?  This partition contains my entire source tree, and would
be very time consuming to replace.  "fsck -r /dev/hd6" reports "bad 
magic number in super block - fatal".

Could the super block be trashed if the start sector is not even? I 
remember seeing this as an incompatibility between 1.3 and 1.5.  The
super block somehow got trashed around the time when I first booted
minix 1.5 up from a shoelace diskette (i.e. loaded on the fly).

related question:  say I have 3 HD partitions mounted.  I log out. Is
	 	   it safe to reboot at this time, or must all 
		   partitions be umounted first?

How can this problem be prevented forever??

Thanks,
(waiting desperately)
--
Greg Larkin (ASIC Engineer)
Viewlogic Systems, Inc. (The CAE Company)
293 Boston Post Road West ____________________________________________
Marlboro, MA 01752        |"This is a fragile ball we are living on; |
508 480 0881 x321         |it's a miracle and we are destroying it.."|
Email: greg@Viewlogic.COM |Peter Garrett, Midnight Oil               |
                          --------------------------------------------

greg@mobius.Viewlogic.COM (Gregory Larkin) (02/27/91)

I forgot to ask this in the original post: 

Is there any way to introduce a filesystem on top of existing data?
i.e. my data is all there (checked it with de(1)).  All I need is
something to lay down the filesystem structure around it.

Suggestions from filesystem gurus would be greatly appreciated!!

Thanks,
--
Greg Larkin (ASIC Engineer)
Viewlogic Systems, Inc. (The CAE Company)
293 Boston Post Road West ____________________________________________
Marlboro, MA 01752        |"This is a fragile ball we are living on; |
508 480 0881 x321         |it's a miracle and we are destroying it.."|
Email: greg@Viewlogic.COM |Peter Garrett, Midnight Oil               |
                          --------------------------------------------