Date: Thu, 18 Mar 1999 17:54:27 +1100 From: Bruce Evans <bde@zeta.org.au> To: ken@plutotech.com, winter@jurai.net Cc: freebsd-scsi@FreeBSD.ORG, joerg_wunsch@uriah.heep.sax.de Subject: Re: SONY SMO-C501-09 not recognized under CAM Message-ID: <199903180654.RAA13465@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>eisa-test# disklabel da5 >disklabel: ioctl DIOCGDINFO: Invalid argument ><on console> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903180654.RAA13465>