From owner-freebsd-scsi Mon Apr 3 14:58:30 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from springbank.linguistics.ruhr-uni-bochum.de (springbank.linguistics.ruhr-uni-bochum.de [134.147.14.9]) by hub.freebsd.org (Postfix) with ESMTP id 2A05837BA6C for ; Mon, 3 Apr 2000 14:58:23 -0700 (PDT) (envelope-from wegmann@acm.org) Received: from dialppp-3-117.rz.ruhr-uni-bochum.de ([134.147.3.117] helo=acm.org) by springbank.linguistics.ruhr-uni-bochum.de with esmtp (Exim 3.12 #1) id 12cEot-0004FA-00; Mon, 03 Apr 2000 23:55:39 +0200 Message-ID: <38E913F1.87479CF@acm.org> Date: Mon, 03 Apr 2000 23:58:09 +0200 From: Frank Wegmann Reply-To: wegmann@linguistics.ruhr-uni-bochum.de X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: bde@zeta.org.au Cc: freebsd-scsi@freebsd.org Subject: Re: Can't use 4GB 1024b/sec SCSI disk Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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. Hopefully someone is going to fix this. Frankly I can't believe that I'm the first stumbling over this problem. > > # 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. Did that: # dd if=/dev/zero of=/dev/rda2 bs=1k count=1 2+0 records in 2+0 records out 2048 bytes transferred in 0.006840 secs (299416 bytes/sec) > 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. Hmm here I'm getting lost, sorry. Here is the output of disklabel: tanqueray<35># disklabel /dev/rda2 # /dev/rda2: type: SCSI disk: SEAGATE label: ST34371N flags: bytes/sector: 1024 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 2170 sectors/unit: 4445468 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 bps/cpg] c: 4445468 0 unused 0 0 # # disklabel /dev/rda2c disklabel: ioctl DIOCGDINFO: Invalid argument One of the things I don't quite understand here is what information must be used for disklabel: data of the physical driver or of the transliterated one. I'm still puzzled and my disk still doesn't want to cooperate... Frank To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message