LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 07-28-2007, 07:51 AM   #1
paul.leopardi
LQ Newbie
 
Registered: Jul 2007
Location: Canberra
Distribution: SUSE Linux 10.1
Posts: 10

Rep: Reputation: 0
How do I mount 2GB xD Picture Card?


I have a 2GB xD Picture Card, http://en.wikipedia.org/wiki/XD-Picture_Card, plugged into a Logic Gear MultimediaDrive LGMMD-MAXI USB 2.0, http://www.logicgear.net.au/catalogu...4/c3348/p56314
plugged into a USB port on my PC, which is running SUSE Linux 10.1 AMD64.

The xD card shows up as a USB-SCSI disk:
/var/log/messages has:

Jul 28 21:48:57 linfinit kernel: usb 3-3: new high speed USB device using ehci_hcd and address 4
Jul 28 21:48:58 linfinit kernel: usb 3-3: new device found, idVendor=04cf, idProduct=9921
Jul 28 21:48:58 linfinit kernel: usb 3-3: new device strings: Mfr=1, Product=2, SerialNumber=3
Jul 28 21:48:58 linfinit kernel: usb 3-3: Product: CS8819A2-111
Jul 28 21:48:58 linfinit kernel: usb 3-3: Manufacturer: Myson Century, Inc.
Jul 28 21:48:58 linfinit kernel: usb 3-3: SerialNumber: 100
Jul 28 21:48:58 linfinit kernel: usb 3-3: configuration #1 chosen from 1 choice
Jul 28 21:48:58 linfinit kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jul 28 21:48:58 linfinit kernel: usb-storage: device found at 4
Jul 28 21:48:58 linfinit kernel: usb-storage: waiting for device to settle before scanning
Jul 28 21:49:03 linfinit kernel: Vendor: Myson Model: CS8819A2-111 0 Rev: 1.01
Jul 28 21:49:03 linfinit kernel: Type: Direct-Access ANSI SCSI revision: 00
Jul 28 21:49:03 linfinit kernel: SCSI device sda: 4096000 512-byte hdwr sectors (2097 MB)
Jul 28 21:49:03 linfinit kernel: sda: Write Protect is off
Jul 28 21:49:03 linfinit kernel: sda: Mode Sense: 03 00 00 00
Jul 28 21:49:03 linfinit kernel: sda: assuming drive cache: write through
Jul 28 21:49:03 linfinit kernel: SCSI device sda: 4096000 512-byte hdwr sectors (2097 MB)
Jul 28 21:49:03 linfinit kernel: sda: Write Protect is off
Jul 28 21:49:03 linfinit kernel: sda: Mode Sense: 03 00 00 00
Jul 28 21:49:03 linfinit kernel: sda: assuming drive cache: write through
Jul 28 21:49:03 linfinit kernel: sda: unknown partition table
Jul 28 21:49:03 linfinit kernel: sd 2:0:0:0: Attached scsi removable disk sda
Jul 28 21:49:03 linfinit kernel: sd 2:0:0:0: Attached scsi generic sg0 type 0
Jul 28 21:49:03 linfinit kernel: usb-storage: device scan complete

---> Note the message: "sda: unknown partition table"

linfinit:~ # lsusb
Bus 003 Device 004: ID 04cf:9921 Myson Century, Inc.

linfinit:~ # ls /dev/sd* -la
brw-r----- 1 root disk 8, 0 Jul 28 21:49 /dev/sda

---> Note that /dev/sda exists, but there is no /dev/sda1

linfinit:~ # fsck -t vfat /dev/sda
fsck 1.38 (30-Jun-2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 255.

---> It seems like the xD card is using a peculiar file system.

linfinit:/home/leopardi # fdisk -l /dev/sda

Disk /dev/sda: 2097 MB, 2097152000 bytes
65 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 4030 * 512 = 2063360 bytes

Disk /dev/sda doesn't contain a valid partition table


My questions: How do I mount this card? Do I need to write my own driver? Why does it work on Windows?

My questions are very similar to the following thread:
"mount: wrong fs type, bad option, bad superblock on /dev/sda1"
http://www.linuxquestions.org/questi...d.php?t=566231
except that:

1. The file system on my xD card is *not* corrupted, in the sense that my Olympus FE-130 camera can read and write photos to it.
2. I cannot reformat my xD card, since I want to be able to continue using it in my camera.

Last edited by paul.leopardi; 07-28-2007 at 08:06 AM.
 
Old 07-28-2007, 03:04 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
Have you tried mounting /dev/sda? Some work with the knowledge of a partition.

Brian
 
Old 07-28-2007, 03:10 PM   #3
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Windows might have some proprietary drivers to understand the card. I've seen some cards that didn't mount nicely on Linux (and didn't take the time to wonder how it works, simply used an XP machine aside); last one was just 2GB flash card for a GPS navigator. On Windows it did work without problems, but then again, I had the software installed for managing the maps of the GPS device, so I'm not sure if it was about that. The cards should be pre-formatted, but if it isn't, you can always try to re-format them under Linux (to fat if you want it to work with other operating systems without much trouble).

What does fdisk say about it?
 
Old 07-28-2007, 11:35 PM   #4
paul.leopardi
LQ Newbie
 
Registered: Jul 2007
Location: Canberra
Distribution: SUSE Linux 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
bogus logical sector size 65535

Quote:
Originally Posted by Brian1
Have you tried mounting /dev/sda? Some work with the knowledge of a partition.

Brian
linfinit:~ # mount /dev/sda /media/xd_card -t vfat
mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

linfinit:~ # dmesg | tail
SCSI device sda: 4096000 512-byte hdwr sectors (2097 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
sda: unknown partition table
sd 3:0:0:0: Attached scsi removable disk sda
sd 3:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
FAT: bogus logical sector size 65535
VFS: Can't find a valid FAT filesystem on dev sda.

linfinit:~ # mount /dev/sda /media/xd_card
mount: you must specify the filesystem type

Last edited by paul.leopardi; 07-28-2007 at 11:38 PM.
 
Old 07-28-2007, 11:46 PM   #5
paul.leopardi
LQ Newbie
 
Registered: Jul 2007
Location: Canberra
Distribution: SUSE Linux 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
Results of lsusb

linfinit:~ # lsusb -v

Bus 003 Device 005: ID 04cf:9921 Myson Century, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x04cf Myson Century, Inc.
idProduct 0x9921
bcdDevice a2.11
iManufacturer 1 Myson Century, Inc.
iProduct 2 CS8819A2-111
iSerial 3 100
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 USB Mass Storage
bmAttributes 0x80
(Bus Powered)
MaxPower 300mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 5 Mass Storage Class
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
 
Old 07-28-2007, 11:53 PM   #6
paul.leopardi
LQ Newbie
 
Registered: Jul 2007
Location: Canberra
Distribution: SUSE Linux 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by b0uncer
The cards should be pre-formatted, but if it isn't, you can always try to re-format them under Linux (to fat if you want it to work with other operating systems without much trouble).

What does fdisk say about it?
As I said in my original post, the card works in my camera, so I cannot reformat it.

I gave the output of fdisk in my original post. Here is the output of sfdisk:

linfinit:~ # sfdisk -l /dev/sda

Disk /dev/sda: 1016 cylinders, 65 heads, 62 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sda: unrecognized partition table type
No partitions found
linfinit:~ # sfdisk -V /dev/sda

sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sda: unrecognized partition table type

sfdisk: no partition table present.
 
Old 07-29-2007, 12:06 AM   #7
paul.leopardi
LQ Newbie
 
Registered: Jul 2007
Location: Canberra
Distribution: SUSE Linux 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
mounting as ubsfs

Quote:
Originally Posted by Brian1
Have you tried mounting /dev/sda? Some work with the knowledge of a partition.

Brian
linfinit:~ # mount /dev/sda /media/xd_card -t usbfs
linfinit:~ # ls /media/xd_card
001 002 003 devices
linfinit:~ # ls /media/xd_card/001
001
linfinit:~ # ls -l /media/xd_card/001
total 0
-rw-r--r-- 1 root root 43 Jul 28 17:21 001
linfinit:~ # ls -l /media/xd_card
total 0
dr-xr-xr-x 2 root root 0 Jul 28 17:21 001
dr-xr-xr-x 2 root root 0 Jul 28 17:21 002
dr-xr-xr-x 2 root root 0 Jul 28 17:21 003
-r--r--r-- 1 root root 0 Jul 29 14:31 devices
linfinit:~ # ls -l /media/xd_card/*
-r--r--r-- 1 root root 0 Jul 29 14:31 /media/xd_card/devices

/media/xd_card/001:
total 0
-rw-r--r-- 1 root root 43 Jul 28 17:21 001

/media/xd_card/002:
total 0
-rw-r--r-- 1 root root 43 Jul 28 17:21 001
-rw-r--r-- 1 root root 52 Jul 28 17:22 003

/media/xd_card/003:
total 0
-rw-r--r-- 1 root root 43 Jul 28 17:21 001
-rw-r--r-- 1 root root 50 Jul 29 14:31 005
 
Old 07-29-2007, 12:07 AM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,192

Rep: Reputation: 120Reputation: 120
It could be your Logic Gear device. I have an old CardMate that
worked with Debian Sarge with some banging around, but I've
never gotten it to work since switching to Etch. Make sure your
"Picture Card" is plugged into the Logic Gear device before the
Logic Gear device is plugged into your USB port.
 
Old 07-29-2007, 12:24 AM   #9
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Mount the partition sda1 and use vfat as the fstype. If it still doesn't mount I'd format it as fat32 under Linux. It should still work with your camera and Windows. Oddly enough, especially for fat partitions over 32 GB, Linux does a better job than (recent versions of) Windows... go figure.

Last edited by Crito; 07-29-2007 at 12:25 AM.
 
Old 07-29-2007, 05:20 AM   #10
paul.leopardi
LQ Newbie
 
Registered: Jul 2007
Location: Canberra
Distribution: SUSE Linux 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Quakeboy02
It could be your Logic Gear device. I have an old CardMate that
worked with Debian Sarge with some banging around, but I've
never gotten it to work since switching to Etch. Make sure your
"Picture Card" is plugged into the Logic Gear device before the
Logic Gear device is plugged into your USB port.
That's the way I've been doing it: plug the xD Picture Card into the Logic Gear MMDrive device before plugging the whole thing into the USB port.
 
Old 07-29-2007, 05:23 AM   #11
paul.leopardi
LQ Newbie
 
Registered: Jul 2007
Location: Canberra
Distribution: SUSE Linux 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Crito
Mount the partition sda1 and use vfat as the fstype. If it still doesn't mount I'd format it as fat32 under Linux. It should still work with your camera and Windows. Oddly enough, especially for fat partitions over 32 GB, Linux does a better job than (recent versions of) Windows... go figure.
I have no /dev/sda1 to mount, only /dev/sda.

If I format my existing xD card:

1. I will lose all of my existing photos.
2. There is no guarantee that my camera will recognize the format.

I could try to format a new xD card.
 
Old 07-29-2007, 08:56 AM   #12
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
1) You can't mount sda, you can only mount partitions.
2) Save your photos to your Windows installation
3) If it doesn't work just reformat the card again using the camera's format function
 
Old 07-29-2007, 09:04 AM   #13
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
I must agree. Get the photos off the media. Then remove partition under windows if present. Then under linux create a fat32 partition and then let the camera formet it. Then see if linux can see it.

Brian
 
Old 07-29-2007, 09:08 AM   #14
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
You might want to use a GUI tool like gparted so you don't have to struggle with the command line.
 
Old 07-29-2007, 06:57 PM   #15
paul.leopardi
LQ Newbie
 
Registered: Jul 2007
Location: Canberra
Distribution: SUSE Linux 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
I must agree. Get the photos off the media. Then remove partition under windows if present. Then under linux create a fat32 partition and then let the camera formet it. Then see if linux can see it.

Brian
I saved the photos by using the Olympus camera to USB cable.

I don't have Windows on this PC. I'm only guessing that the xD card can be read using Windows. I'll have to verify this on another PC.

I'll have to look up the camera documentation to see how to get the camera to format a partition. AFAIK the camera can erase an already formatted xD card, but I don't know if it can format a newly created partition.

I have a Feisty workstation at work, and a smaller xD card there, so I'll investigate those first.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TV Tuner card (saa7134) - good picture, no sound anoopsinha Linux - Hardware 48 06-25-2009 09:34 PM
xD-Picture card , how to mount/read in SUSE 10.2 linux_junky Suse/Novell 4 01-15-2007 07:27 AM
TV Card - Picture but no sound A_Complete_Idiot Linux - Hardware 6 07-31-2006 10:35 PM
TV-out on ATi card giving rolling picture? NobeyamaGP Linux - Hardware 2 07-21-2006 01:06 PM
TV Card output picture messed up / missing channels AcerKev Linux - General 4 07-06-2004 02:45 PM


All times are GMT -5. The time now is 11:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration