Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2002 13:36:26 -0800
From:      "David Christensen" <dchrist@cox.net>
To:        <freebsd-hackers@FreeBSD.ORG>
Subject:   Receiving EROFS error creating a new file system
Message-ID:  <B1154A80CE56844B9EA4F77FAD2BA951F7F8@hobbes.drc.dhs.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B1154A80CE56844B9EA4F77FAD2BA951F7F8>