From owner-freebsd-scsi Wed Mar 17 22:55:33 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id F330714D61 for ; Wed, 17 Mar 1999 22:54:47 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id RAA13465; Thu, 18 Mar 1999 17:54:27 +1100 Date: Thu, 18 Mar 1999 17:54:27 +1100 From: Bruce Evans Message-Id: <199903180654.RAA13465@godzilla.zeta.org.au> To: ken@plutotech.com, winter@jurai.net Subject: Re: SONY SMO-C501-09 not recognized under CAM Cc: freebsd-scsi@FreeBSD.ORG, joerg_wunsch@uriah.heep.sax.de Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >eisa-test# disklabel da5 >disklabel: ioctl DIOCGDINFO: Invalid argument > >da5: cannot find label (no disk label) >da5s4: cannot find label (no disk label) >dscheck: b_bcount 512 is not on a sector boundary (ssize 1024) >da5: cannot find label (no disk label) >da5s4: cannot find label (no disk label) > >No, this isn't because I've got 1024 byte sector media loaded though that >fact that it cares about blocksize is strange. This is because disklabel (un)helpfully converts da5 to /dev/da5c (the 'c' partition on the first FreeBSD slice, aka da5s4c), and the slice containing this partition doesn't have a label, and the driver thinks that the media blocksize is 1024. Requesting an i/o size of less than the media blocksize is a bug somewhere (probably in disklabel(8)). Printing this message in dscheck() is a another bug. There is no portably way to determine the blocksize; applications may need to try various multiples of DEV_BSIZE. >'disklabel /dev/da5' shows stuff. This is because /dev/da5 is the whole disk, which is completely different from the 'c' partition on the first FreeBSD slice (if any). Whole disks always have a read-only in-core label. >eisa-test# disklabel -R -r da5 foo >disklabel: No space left on device This is because sectors/unit and/or one of the partition sizes specified in "foo" is larger than the number of physical sectors. This may be caused by confusion about the physical sector size. >eisa-test# disklabel -R -r /dev/da5 foo >disklabel: ioctl DIOCWLABEL: Operation not supported by device This is because the read-only in-core label for the whole disk is read-only. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message