Subject: ccd help needed
To: None <current-users@netbsd.org>
From: Scott Bartram <scottb@orionsoft.com>
List: current-users
Date: 12/08/1998 23:07:17
I'm trying to create a file system on a new ccd and it gives me an error
saying "wtfs: Read-only file system". What's the problem?

# uname -a
NetBSD  1.3.2 NetBSD 1.3.2 (ARIES) #3: Tue Nov 24 21:15:46 EST 1998
root@aries.orionsoft.com:/a/NetBSD/1.3.2/src/sys/arch/i386/compile/ARIES
i386

I've got two identical Quantum disks (sd1 and sd2) with labels:

# disklabel sd1
# /dev/rsd1d:
type: SCSI
disk: QM34550A
label: disk1
flags:
bytes/sector: 512
sectors/track: 150
tracks/cylinder: 10
sectors/cylinder: 1500
cylinders: 5899
total sectors: 8890760
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:  8890759        1      4.2BSD     1024  8192    16   # (Cyl.    0*- 5927*)
  c:  8890760        0      unused        0     0         # (Cyl.    0 - 5927*)
  d:  8890760        0      unused        0     0         # (Cyl.    0 - 5927*)


# cat /etc/ccd.conf
ccd0 128 none /dev/sd1a /dev/sd2a


# disklabel ccd0
# /dev/rccd0d:
type: ccd
disk: ccd
label: default label
flags:
bytes/sector: 512
sectors/track: 2048
tracks/cylinder: 1
sectors/cylinder: 2048
cylinders: 8682
total sectors: 17781504
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  d: 17781504        0      4.2BSD        0     0     0   # (Cyl.    0 - 8682*)


# newfs /dev/rccd0d
Warning: 1280 sector(s) in last cylinder unallocated
/dev/rccd0d:    17781504 sectors in 8683 cylinders of 1 tracks, 2048
sectors
        8682.4MB in 543 cyl groups (16 c/g, 16.00MB/g, 3968 i/g)
ccd0: error 30 on component 1
super-block backups (for fsck -b #) at:write error: 128
wtfs: Read-only file system


scott
---
Scott Bartram
scottb@orionsoft.com
http://www.orionsoft.com/