From owner-freebsd-scsi Mon Jan 7 2:20:47 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by hub.freebsd.org (Postfix) with ESMTP id 0B98337B400 for ; Mon, 7 Jan 2002 02:20:44 -0800 (PST) Received: from fwd05.sul.t-online.de by mailout01.sul.t-online.de with smtp id 16NWhM-0003V5-0H; Mon, 07 Jan 2002 11:08:08 +0100 Received: from twoflower (320072111332-0001@[217.80.121.217]) by fwd05.sul.t-online.com with smtp id 16NWhG-0HBpZ2C; Mon, 7 Jan 2002 11:08:02 +0100 Reply-To: From: Jan.Stocker@t-online.de (Jan Stocker) To: "freebsd-scsi@FreeBSD. ORG" Subject: USB / wrong disklabel params Date: Mon, 7 Jan 2002 11:07:30 +0100 Message-ID: <000c01c19763$1e3c2860$fe02010a@twoflower.liebende.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Importance: Normal X-Sender: 320072111332-0001@t-dialin.net Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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: 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: The data for partition 3 is: The data for partition 4 is: 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