From owner-freebsd-hackers Sat Nov 2 13:36:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06EF537B48F for ; Sat, 2 Nov 2002 13:36:33 -0800 (PST) Received: from fed1mtao03.cox.net (fed1mtao03.cox.net [68.6.19.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 902CA43E42 for ; Sat, 2 Nov 2002 13:36:32 -0800 (PST) (envelope-from dchrist@cox.net) Received: from linus ([68.4.176.221]) by fed1mtao03.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20021102213633.GWKR21998.fed1mtao03.cox.net@linus> for ; Sat, 2 Nov 2002 16:36:33 -0500 From: "David Christensen" To: Subject: Receiving EROFS error creating a new file system Date: Sat, 2 Nov 2002 13:36:26 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm working on a disk driver and it seems to be working for random data read/write operations when I use dd, so now I'm trying to create a filesystem on the drive. I've partitioned the drive and created a slice to format, but when I lay down a filesystem I get the following error: diablo# newfs /dev/xyzd0s1e Warning: Block size restricts cylinders per group to 398. /dev/xyzd0s1e: 2097152 sectors in 512 cylinders of 1 tracks, 4096 sectors 1024.0MB in 2 cyl groups (398 c/g, 796.00MB/g, 8192 i/g) super-block backups (for fsck -b #) at: 32, 1630240 write error: 0 newfs: wtfs: Read-only file system The disk driver never receives the request to write data to block 0, so the write() call returns EROFS error from somewhere else. Why might I be receiving this error? If I partition another drive and create an identical slice, I don't get the error. David Christensen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message