Subject: Re: Unable to newfs logical disk in 1.6I-i386
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: current-users
Date: 10/09/2002 12:09:40
On Wed, 9 Oct 2002, Manuel Bouyer wrote:
> On Wed, Oct 09, 2002 at 09:34:56AM -0700, Sean J. Schluntz wrote:
> >
> > Now I get a sector 16 read-only error when trying to run newfs on
> > the ld1a partition. This is with the GENERIC.MP as well as the
> > GENERIC kernels.
> >
> > Here is the disklabel info on the logical disk:
> >
> > # disklabel /dev/ld1
> > # /dev/ld1d:
> > type: ld
> > disk: unknown
> > label: fictitious
> > flags:
> > bytes/sector: 512
> > sectors/track: 63
> > tracks/cylinder: 128
> > sectors/cylinder: 8064
> > cylinders: 6237
> > total sectors: 50299515
> > rpm: 7200
> > interleave: 1
> > trackskew: 0
> > cylinderskew: 0
> > headswitch: 0 # microseconds
> > track-to-track seek: 0 # microseconds
> > drivedata: 0
> >
> > 16 partitions:
> > # size offset fstype [fsize bsize cpg/sgs]
> > a: 50299515 0 4.2BSD 2048 16384 46 # (Cyl. 0 - 6237*)
> > d: 50299515 0 unused 0 0 # (Cyl. 0 - 6237*)
>
> Maybe you should not start your a partition on sector 0. It steps on the
> disklabel.
> Try to start a on cylinder one (i.e. offset = 8064).
That should be fine. All file systems leave a little space at the bottom
of the file system for boot programs. ffs leaves 8k, and ext2fs leaves I
think 2k. So the disklabel should be free & clear.
Take care,
Bill