Date: Thu, 11 Apr 2002 08:37:35 +0200 (CEST) From: Nick Hibma <n_hibma@van-laarhoven.org> To: "jstocker@tzi.de" <jstocker@tzi.de> Cc: "freebsd-scsi@FreeBSD. ORG" <freebsd-scsi@FreeBSD.ORG> Subject: Re: USB / wrong disklabel params Message-ID: <20020411083549.T31033-100000@heather.van-laarhoven.org> In-Reply-To: <000c01c19763$1e3c2860$fe02010a@twoflower.liebende.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is strange: 0MB (1441 512 byte sectors: 2H 9S/T 80C) It thinks the device is a floppy drive. The 0Mb should be correct because that comes from inquiry data if I am not mistaken. The geometry calculation is a botch because I haven't bothered to find a way to get that correct. See 'XXX' in the /sys/dev/umass driver. Nick On Mon, 7 Jan 2002, Jan Stocker wrote: > Hi boys n girls, > ive discussed the following stuff with Ed Hudson, who owns a RICOH-RDC5000 > digital cam. This cam doesn't know the 6-byte commands (like the most), so a > quirk was added. > > But some disk information is wrong... lets have a look > > Dec 29 14:17:17 m3 /kernel: umass0: RICOH RDC-5000, rev 1.00/1.05, addr 2 > Dec 29 14:17:17 m3 /kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Dec 29 14:17:17 m3 /kernel: da0: <RICOH USB CAMERA DRIVE 1.05> Removable > Dire > Access SCSI-0 device > Dec 29 14:17:17 m3 /kernel: da0: 20KB/s transfers > Dec 29 14:17:17 m3 /kernel: da0: 0MB (1441 512 byte sectors: 2H 9S/T 80C) > > The cam has a 8 MB card in it, so here !!! 0MB !!! is totally wrong. > (Also i think the speed is very low) > Another look to the partition table with fdisk shows more: > > root@m3 101 % fdisk da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=22 heads=4 sectors/track=16 (64 blks/cyl) > > We have 22*4*16*512 = 704 KB! > > parameters to be used for BIOS calculations are: > cylinders=22 heads=4 sectors/track=16 (64 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 1,(Primary DOS with 12 bit FAT) > start 25, size 15975 (7 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 10; > end: cyl 249/ head 3/ sector 16 > The data for partition 2 is: > <UNUSED> > The data for partition 3 is: > <UNUSED> > The data for partition 4 is: > <UNUSED> > > > But the partition table is correct and gives us a 8 MB slice. So mounting > fails (cuts the partition) cause BSD thinks the slice exceeds the available > space. > > Any idea ? > > Jan > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message > > -- n_hibma@van-laarhoven.org http://www.van-laarhoven.org/ n_hibma@FreeBSD.org http://www.etla.net/~n_hibma/ 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?20020411083549.T31033-100000>
