I recently purchased the Sony dsc-p10 digicam. It comes with a 32MB Memory Card, and 
I also picked up the 128MB Memory card. After some googling, I found the following 
kernel tweak to recognize the camera as a usb-storage device, 
(mod to drivers/usb/storage/unusual_devs.h):
-UNUSUAL_DEV(  0x054c, 0x0010, 0x0106, 0x0422,
+UNUSUAL_DEV(  0x054c, 0x0010, 0x0106, 0x0450,

...
However, I quickly discovered this exact same issue with my memory cards - the 32MB 
worked fine, however the 128MB would fail to mount!:

$ mount -t auto /dev/sda1 /mnt/camera/
 mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       or too many mounted file systems

The mount attempt would log the same error message: 
 kernel: FAT: bogus logical sector size 65535
 kernel: VFS: Can't find a valid FAT filesystem on dev 08:01

since formatting the card didn't help anything, I began to look at the card more 
closely with fdisk:

I entered fdisk's advanced funcionality:
 "x   extra functionality (experts only)"

A look at the partition table itself didn't tell me much:
 Expert command (m for help): p

 Disk /dev/sda: 16 heads, 16 sectors, 247 cylinders

 Nr AF  Hd Sec  Cyl  Hd Sec  Cyl    Start     Size ID
  1 80   2   2    0  15  16  989       33   253407 06
  2 00   0   0    0   0   0    0        0        0 00
  3 00   0   0    0   0   0    0        0        0 00
  4 00   0   0    0   0   0    0        0        0 00


I attempted to "verify the partition table", and discovered an 'issue' with the 
cylinder count. What this 'issue' pertains to, I have no idea? :P

Expert command (m for help): v
Partitions 1: cylinder 990 greater than maximum 247
Total allocated sectors 253408 greater than the maximum 63232


I then opted to "change number of cylinders" - to re-enforce the 990 cyl count 
 
Expert command (m for help): c
Number of cylinders (1-1048576, default 247): 990


I then attempted to "verify the parition table" again, and the previous cylinder count 
error was gone!:

Expert command (m for help): v
32 unallocated sectors

Expert command (m for help): w
The partition table has been altered!


Now the 128MB Memory Card mounts perfectly - and it still works in the camera :P 
Hope this helps someone :)






-----Original Message-----
>From: R.E.Coutch [mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 26, 2002 2:57 AM
>To: [EMAIL PROTECTED]
>Subject: [wplug] memory stick - mount prob
>
>
>Hi to everyone - merry Christmas!
>
>I have a small problem with the memory sticks my camera uses. I just
>bought a digital camera Sony DSC-P31, which has a 8MB memory stick by
>default. I bought an extra 64MB stick for more storage space.
>
>These can be read and written from a laptop or desktop just by connecting
>the camera with the provided USB cable, and the stick gets mounted as a
>vfat filesystem. This happened almost automatically with the 8MB stick.
>All I had to do was type mount /mnt/camera and voila - /dev/sda1 qas
>mounted at /mnt/camera, type vfat, everything fine.
>
>But, when I tried the same with the 64MB stick, I got the standard mount
>error message:
>
>mount: wrong fs type, vad option, bad superblock on /dev/sda1 or too many
>mounted filesystems.
>
>I tried all options of mount, but the same message
>appeared after every failed effort in /var/log/messages:
>
>kernel: FAT: bogus logical sector size 65535
>kernel: VFS: Can't find a valid FAT filesystem on dev 08:01
>
>I tried creating a vfat filesystem on the stick from linux, and that made
>the stick mountable, readable and writable by linux, but not by the
>camera...
>
>I tried 3 different (different brands too) 64MB sticks, and they all
>behave the same. Does anyone have any ideas? I might have to return the
>camera if I cannot hook it up to my laptop... Oh, and I tried Mac and
>Windows machines and the sticks were mounting fine.
>
>Any suggestions will be greatly appreciated!




-- 
Tyler Thiessen
Systems Administrator
Hi-Performance Enterprises Inc.


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to