Subject: Re: MO driver
To: Berndt Josef Wulf <wulf@ping.net.au>
From: David Brownlee <abs@anim.dreamworks.com>
List: netbsd-help
Date: 04/29/1997 17:10:14
AFAIK NetBSD does not currently handle non 512byte/sector media
under ffs. Koji Imada - je4wob/2 <koji@math.human.nagoya-u.ac.jp>
has a fix, though I understand they are currently discussing
which of several options is the 'best' fix.
ftp://ftp.NetBSD.ORG/pub/NetBSD/mailing-lists/tech-kern/tech-kern.0131
has a posting from him..
David/abs abs@anim.dreamworks.com
- Oakwood apartments -
- $1300 a month and people steal your laundry - What a place -
On Wed, 30 Apr 1997, Berndt Josef Wulf wrote:
> 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
>