Subject: Re: MO driver
To: David Brownlee <abs@anim.dreamworks.com>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: netbsd-help
Date: 04/30/1997 07:37:59
David Brownlee wrote
>
> I tried something similar on NetBSD/sparc just pre 1.2.
> 1024 byte/sector media lost, while 512 byte/sector media
> worked fine. I think someone is looking at getting NetBSD
> to handle non 512 byte/sector media currently...
I defined the MO as followed;
# /dev/rsd2c:
type: SCSI
disk: SONY
label:
flags:
bytes/sector: 1024
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 153
total sectors: 313344
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize cpg]
c: 313344 0 4.2BSD 1024 8192 16 # (Cyl. 0 -
152)
After this I issued -
hotdog# newfs /dev/rsd2c
/dev/rsd2c: 313344 sectors in 153 cylinders of 64 tracks, 32
sectors
306.0MB in 10 cyl groups (16 c/g, 32.00MB/g, 7680 i/g)
super-block backups (for fsck -b #) at:
16, 32816, 65616, 98416, 131216, 164016, 196816, 229616,
262416, 295216,
hotdog# fsck -f /dev/sd2c
** /dev/rsd2c
** File system is already clean
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1 files, 1 used, 303566 free (14 frags, 37944 blocks, 0.0%
fragmentation)
hotdog# mount /dev/sd2c /mnt
ffs: /dev/sd2c on /mnt: incorrect super block
I tried to use sd2a but this will not allow me to the newfs as it
complain with:
hotdog# newfs /dev/rsd2a
write error: 313343
wtfs: Invalid argument
cheerio Berndt
--
Name : Berndt Josef Wulf
E-Mail : wulf@ping.net.au
Sysinfo : DEC AXPpci33+, NetBSD-1.2