*BSD News Article 18993


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!noc.near.net!uunet!psinntp!newstand.syr.edu!rodan.acs.syr.EDU!dhhoveme
From: dhhoveme@rodan.acs.syr.EDU (David H. Hovemeyer)
Subject: NetBSD 0.8: newfs hangs
Message-ID: <1993Jul28.231004.4098@newstand.syr.edu>
Keywords: NetBSD newfs IDE
Organization: Syracuse University, Syracuse, NY
Date: Wed, 28 Jul 93 23:10:04 EDT
Lines: 55

Hello again,
    Acting on a suggestion that the problems I had trying to
disklabel my 2nd IDE drive were due to corrupted /usr/mdec files,
I swapped them for the ones on the NetBSD install1 disk.
Sure enough,

# disklabel -w -r wd1 cp30174e

then proceeded without complaint.  Here is the /etc/disktab
entry:

cp30174e|Conner Peripherals 170MB IDE:\
	:dt=ST506:ty=winchester:\
	:nc#903:ns#46:nt#8:\
	:se#512:\
	:pa#165968:oa#0:ta=4.2BSD:ba#4096:fa#512:\
	:pb#1:ob#331936:\
	:pc#332304:oc#0:\
	:pd#332304:od#0:\
	:pe#165968:oe#165968:te=4.2BSD:be#4096:fe#512:

    At this point I thought I was home free.  I then tried

# newfs /dev/wd1a

hoping to format partition a.  It appeared to be working, but
after printing a list of super-block backups, it died.  Here
is what was left on the screen:

newfs: /dev/wd1a: not a character-special device
/dev/wd1a:	165968 sectors in 451 cylinders of 8 tracks, 46 sectors
	85.0MB in 29 cyl groups (16 c/g, 3.01MB/g, 1376 i/g)
super-block backups (for fsck -b #) at:
 32, 5968, 11904, 17840, 23776, 29712, 35648, 41584, 47136,
 53072, 59008, 64944, 70880, 76816, 82752, 88688, 94240, 100176,
 106112, 112048, 117984, 123980, 129856, 135792, 141344, 147280, 153216,
 159152, 165088,

    I am confident that newfs was truly hosed and not merely
frozen.  Trying to be clever, I ran newfs (and fsck) in the
background

# (newfs /dev/wd1a > foo ; fsck /dev/wd1a ) &

with the hope that I could then use ps to monitor its progress.
However, after a couple seconds, the machine was hung.
    Any ideas?  If you have experienced a similar problem (or
managed to set up two IDE drives *without* experiencing this
problem) please let me know.

Thanks,
Dave

--
dhhoveme@rodan.acs.syr.edu