Subject: machine crashed, dumped, and is now *hosed*
To: None <port-i386@NetBSD.ORG>
From: Andrew Brown <codewarrior@daemon.org>
List: port-i386
Date: 05/06/1997 20:40:26
i was all set to swap an old drive out (500m) for the new one (5gig)
when the machine crashed ("fatal page fault in supervisor mode" iirc,
although i can't tell you any more than that).  it dumped (of course)
and now it won't boot anything at all (boot disk error, press any key
to continue sort of thing).  my root disk (1.2g) is now not working at
all.

so i boot with a new install disk (1.2.1, vs. 1.2 that the machine was
running since i didn't wanna dl the upgrade over ppp and i had 1.2 on
my laptop to install in the first place) and run disklabel on the
broken wd0 (both drives in this machine are ide).  disklabel would
usually give me the netbsd disklabel (if there was one, which there
was at one point) or the dos partition table info otherwise (like i've
got on wd1).

# disklabel wd0
# /dev/rwd0d:
type: unknown
disk: 
label: WDC AC31200F    
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 2484
total sectors: 2503872
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  d:  2503872        0    unused        0     0       	# (Cyl.    0 - 2483)
  f: 805306368 1457452991    unused        0     0       	# (Cyl. 1445885*- 2244800*)
  g:        4 -1238368256     MSDOS                    	# (Cyl. 3032340*- 3032340*)
  h:        4 -1239353409    unused        0     0       	# (Cyl. 3031362*- 3031362*)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: warning, partition e: size 0, but offset 65540
disklabel: partition f: offset past end of unit
disklabel: partition f: partition extends past end of unit
disklabel: partition g: offset past end of unit
disklabel: partition g: partition extends past end of unit
disklabel: partition h: offset past end of unit
disklabel: partition h: partition extends past end of unit

which says to me that it's completely hosed.

unfortunately for me, there's data on this disk that i'd like to keep.
not only in the netbsd partition, but also in a dos filesystem and a
couple of linux ext2fs file systems.  the 1.2 will *completely* fit
onto the 5g disk (assuming that i just start fresh on the 5g and then
want to use the 1.2g for something else).

but is there anything i can do with this?  i'm assuming that the disk
is mostly intact (unless dump really lost it's brain (how can i make
netbsd simply not dump and instead just reboot please?)) and i'm
amusing myself with the notion of trawling though the disk looking for
superblocks and stuff.  is there anything more clever i can do?

system is (was :) as follows:
intel 486dx50
32 megs ram
wd0: 1.2g western digital
wd1: 500m seagate
netbsd/i386 1.2

-- 
|-----< "CODE WARRIOR" >-----|
andrew@echonyc.com (TheMan)        * "ah!  i see you have the internet
codewarrior@daemon.org                               that goes *ping*!"
warfare@graffiti.com      * "information is power -- share the wealth."