Bug 168132 - [umass] MATSHITA memory card size reported wrong, mount impossible
Summary: [umass] MATSHITA memory card size reported wrong, mount impossible
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-19 11:20 UTC by Rene Ladan
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rene Ladan freebsd_committer 2012-05-19 11:20:04 UTC
The size of the memory card in the Panasonic DMC-FZ150 is reported wrong, making it impossible to mount (FAT32).

From /var/log/messages:
- attach camera, switch on:
  (nothing yet)
- select PC mode:
  May 19 11:54:42 acer kernel: ugen2.3: <Panasonic> at usbus2
  May 19 11:54:42 acer kernel: umass0: <Panasonic DMC-FZ150, class 0/0, rev 2.00/1.00, addr 3> on usbus2
  May 19 11:54:42 acer kernel: umass0:  SCSI over Bulk-Only; quirks = 0x4100
  May 19 11:54:42 acer kernel: umass0:5:0:-1: Attached to scbus5
  May 19 11:54:42 acer kernel: da0 at umass-sim0 bus 0 scbus5 target 0 lun 0
  May 19 11:54:42 acer kernel: da0: <MATSHITA DMC-FZ150 0100> Removable Direct Access SCSI-5 device 
  May 19 11:54:42 acer kernel: da0: 40.000MB/s transfers
  May 19 11:54:42 acer kernel: da0: 12781820575744MB (134263559596015617 512 byte sectors: 255H 63S/T -486308467C)

root@acer:/root # file -s /dev/da0
/dev/da0: ERROR: cannot read `/dev/da0' (Input/output error)
root@acer:/root # mount_msdosfs /dev/da0 /mnt/
mount_msdosfs: /dev/da0: Input/output error

How-To-Repeat: See above, not sure if it is limited to MATSHITA interfaces. 134263559596015617 == 0x1dcffff00000001 sectors looks suspicious.
Comment 1 Rene Ladan freebsd_committer 2012-05-19 18:04:17 UTC
FreeBSD 9.0-p1 with a GENERIC kernel on i386 works correctly:

dmesg after switching the camera to PC mode:
ugen4.4: <Panasonic> at usbus4
umass1: <Panasonic DMC-FZ150, class 0/0, rev 2.00/1.00, addr 4> on usbus4
umass1:  SCSI over Bulk-Only; quirks = 0x4100
umass1:3:1:-1: Attached to scbus3
da1 at umass-sim1 bus 1 scbus3 target 0 lun 0
da1: <MATSHITA DMC-FZ150 0100> Removable Direct Access SCSI-5 device
da1: 40.000MB/s transfers
da1: 15264MB (31260672 512 byte sectors: 255H 63S/T 1945C)

mounting /dev/da1s1 (which pops up after accessing /dev/da1) as msdosfs
works as expected (read-only).
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2012-05-24 03:31:12 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-usb

reclassify.
Comment 3 Rene Ladan freebsd_committer 2012-05-28 07:37:06 UTC
Note that 0x1dcffff (the high 32 bits of the number of sectors reported
on amd64) == 31260672-1 which is the number of sectors reported on i386.

-- 
http://www.rene-ladan.nl:8080/

GPG fingerprint = ADBC ECCD EB5F A6B4 549F  600D 8C9E 647A E564 2BFC
(subkeys.pgp.net)
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:39 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped