From owner-freebsd-fs Fri Feb 4 20:35:52 2000 Delivered-To: freebsd-fs@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by builder.freebsd.org (Postfix) with ESMTP id 61D7D4282 for ; Fri, 4 Feb 2000 20:35:47 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id PAA01478; Sat, 5 Feb 2000 15:37:59 +1100 Date: Sat, 5 Feb 2000 15:35:54 +1100 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: "Gary T. Corcoran" Cc: freebsd-fs@FreeBSD.ORG Subject: Re: Read-only error when newfs'ing In-Reply-To: <37F8D4B2.4C980AD0@home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 4 Oct 1999, Gary T. Corcoran wrote: > I give up! :) Help! > I searched the email archives and found no messages at > all relating to this error. There are some now... > I recently upgraded from FreeBSD 2.2.5 to 3.2-RELEASE, > then added a new Promise Ultra/66 IDE controller and > two IBM 36G ("37.5G") drives. I've been struggling to IDE disks larger than 65536*16*63 sectors ("33.8G") don't work with the wd driver in CHS mode. "Cylinder" numbers >= 65536 are silently truncated mod 65536, so that reads from these cylinders give garbage and writes to these cylinders corrupt low cylinders (the problem is partially fixed in -current: these cylinders are inaccessble). LBA mode should work for these disks, except panic dumps don't work; they usually go to the wrong place (this bug is fixed in -current). > But my current problem is now that I think I have the > controller working, I can't newfs the disk. I keep getting > the error: > > newfs: wtfs: Read-only file system EROFS is returned for attempts to overwrite the label sector. newfs probably does attempt to overrwrite the label sector when a write to cylinder 65536 goes to cylinder 0, but I don't know how the error is detected. The explicit error check involves only the absolute sector number which doesn't get truncated. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message