Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2002 11:07:30 +0100
From:      Jan.Stocker@t-online.de (Jan Stocker)
To:        "freebsd-scsi@FreeBSD. ORG" <freebsd-scsi@FreeBSD.ORG>
Subject:   USB / wrong disklabel params 
Message-ID:  <000c01c19763$1e3c2860$fe02010a@twoflower.liebende.de>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000c01c19763$1e3c2860$fe02010a>