Subject: failure to boot to single user mode!
To: None <current-users@NetBSD.ORG>
From: matthew green <mrg@eterna.com.au>
List: current-users
Date: 11/18/1997 03:00:53
hi folks.


i have a sparcstation2 running 1.3_ALPHA, that is currently having lots
of problems booting.  the tail of the boot shows:

init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
First bad
/: bad dir ino 2 at offset 0: mangled entry
First bad
/: bad dir ino 2 at offset 0: mangled entry
Nov 17 15:29:56 init: /etc/spwd.db: No such file or directory
Enter pathname of shell or RETURN for sh:
First bad
/: bad dir ino 2 at offset 0: mangled entry
Nov 17 15:29:59 init: can't exec /bin/sh for single user: No such file or directory
Nov 17 15:29:59 init: can't exec /bin/sh for single user: No such file or directory
Nov 17 15:30:23 init: can't exec /bin/sh for /etc/rc: No such file or directory

this happens with two bootable disks i have attached to this machine, that
never happened until i upgraded to a recent 1.3_ALPHA.  when i fsck these
file systems, there are no problems (from a network boot):

# fsck -f /dev/rsd0a /dev/rsd1a
** /dev/rsd0a
** File system is already clean
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
4638 files, 105234 used, 16885 free (533 frags, 2044 blocks, 0.4% fragmentation)
** /dev/rsd1a
** File system is already clean
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1026 files, 16471 used, 4416 free (240 frags, 522 blocks, 1.1% fragmentation)

i can mount the file systems just fine:

/dev/sd0a                        122119   105234    10779    91%    /mnt
/dev/sd1a                         20887    16471     3371    83%    /mnt2

and all the relevant files exist just fine:

-r-xr-xr-x  1 bin   bin    360448 Nov 14 05:20 /mnt/bin/sh
-rw-r--r--  1 root  wheel   10406 Nov  7 22:08 /mnt/etc/rc
-rw-------  1 root  wheel   40960 Nov  7 18:54 /mnt/etc/spwd.db
-r-xr--r--  1 bin   bin    172032 Nov 14 05:21 /mnt/sbin/init

often after mounting the file system (eg, from a netboot), i am
able to reboot once, and everything *looks* ok, but the same failure
occurs next time i reboot.


anyone have *any* ideas ?



.mrg.