From owner-freebsd-scsi Mon Apr 3 12:19:54 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 5DF1D37B630 for ; Mon, 3 Apr 2000 12:19:48 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id FAA23950; Tue, 4 Apr 2000 05:19:08 +1000 Date: Tue, 4 Apr 2000 05:18:50 +1000 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Frank Wegmann Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Can't use 4GB 1024b/sec SCSI disk In-Reply-To: <38E89296.78012581@linguistics.ruhr-uni-bochum.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 3 Apr 2000, Frank Wegmann wrote: > ... > DETAILS: > Originally I formatted it low-level with 1024 bytes per sector (for > getting out some more MB) and used it in a NeXT machine as boot disk > for years. Although it should--in theory--be possible to use it > directly under FreeBSD, this doesn't work at all. Probing the devices > (when invoking sysinstall) leads to: > > /kernel: dscheck(rda2): b_bcount 512 is not on a sector boundary (ssize > 1024) This seems to be a bug in sysinstall. More precisely, in libdisk. libdisk uses lots of hard-coded 512's. It doesn't even use DEV_BSIZE. It only uses d_secsize in the label in order to initialize it to 512. > If formatting via sysinstall doesn't work, why not doing the old-fashioned > way (according to 8.2.2 of the Handbook)? This is what I've got: > > # dd if=/dev/zero of=/dev/rda2 bs=1k count=1 > 1+0 records in > 1+0 records out > 1024 bytes transferred in 0.004346 secs (235618 bytes/sec) The label is in the second sector, so you need a count of 2 to overwrite it. > # disklabel -Brw da2 auto "auto" is new-fashioned. > disklabel: /boot/boot2 too large <-- doh, try the other way: This means that the number of sectors specified in the label (either sectors/unit or the offset of the end of a partition) is too large for the disk. The number must be given in sector-sized units, not in DEV_BSIZE units. "disklabel -auto" is guaranteed to get this wrong unless the device described by da2 (i.e., /dev/da2c) has the same size as the whole disk, since it produces a label suitable for applying to the whole disk. However, it should get the units right. > # disklabel /dev/rda2 | disklabel -BrR da2 /dev/stdin This (when uncommented) gives the same result as "auto". The output of "disklabel /dev/rda2" must be edited if the device being labeled (/dev/rda2c) is smaller than /dev/rda2. > Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message