Subject: kern/21083: lost SUPERBLOCK wrt UFS2 + Apple UFS
To: None <gnats-bugs@gnats.netbsd.org>
From: Charlie Allom <charlie@rubberduck.com>
List: netbsd-bugs
Date: 04/10/2003 16:41:52
>Number:         21083
>Category:       kern
>Synopsis:       lost SUPERBLOCK with UFS2
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 09 23:42:01 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Charlie Allom
>Release:        NetBSD 1.6R
>Organization:
 charlie@rubberduck.com
 http://rubberduck.com/yeled/
 PGP: 0x14AA7941 || finger yeled@lazy.spodder.com
>Environment:
	
	
System: NetBSD lazy 1.6R NetBSD 1.6R (LAZY) #2: Thu Apr 10 11:42:31 EST 2003 root@lazy:/usr/src/current/src/sys/arch/i386/compile/LAZY i386
Architecture: i386
Machine: i386
>Description:
	
No, this isn't what Frank mentioned about running an old fsck binary and 
losing the superblock. Well, it kinda is.

This partition also mounts without superblock.

It is also using (I imagine), FFS_EI as I originally made this partition on a
Mac OS X machine.

My sources are the same as my kernel (note I'm +1000 GMT)

# /sbin/fsck_ffs /phat
** /dev/rwd2a
BAD SUPER BLOCK: CAN'T FIND SUPERBLOCK

# ls -l /sbin/fsck_ffs
-r-xr-xr-x  1 root  wheel  82836 Apr 10 14:44 /sbin/fsck_ffs

# disklabel wd2 
# /dev/rwd2d:
type: ESDI
disk: WDC WD1200JB-75C
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 234375000
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

4 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a: 234374928        64  Apple UFS      0     0     0   # (Cyl.    0*- 232514*)
 d: 234375000         0     unused      0     0         # (Cyl.    0 - 232514*)

>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: