LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-08-2004, 04:22 AM   #1
ndriutti
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1
Posts: 5

Rep: Reputation: 0
Problems mounting sd card 256Mb with mdk 10.1


Hi there,

Last week I bought a 256Mb sd card for my digital camera (Aiptek DV3300).
I took several pictures with it and all worked perfectly but when I tried to connect the camera to my linux box it hangs and when i try to mount the device with "mount -t vfat /dev/sda /mnt/camera" after several seconds i get the message "Unable to mount not a valid block device".
The camera worked with a 64Mb sd card and gave me no problem (the digital camera is seen as an usb mass storage device).
I also tried with a usb multi card reader based on SMSC USB 97223 but it didn't work.

Can anyone give me some help?

Thanks in advance.
 
Old 11-08-2004, 05:04 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Did you try /dev/sda1 instead of /dev/sda?
 
Old 11-08-2004, 06:04 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Welcome aboard, ndriutti.

Since you're running Mandrake 10.1, it should try and mount it for you already. Once you've plugged it in, check to see if there's a new directory /mnt/removable. If so, then that's your camera. If not...

After you have plugged it in, try running fdisk -l (that is a lowercase L) as root. That should show you which partition you need to mount. It is usually the first partition (so sda1), but it always pays to check.

Once you know which partition it is, then you should be able to mount it, but you may need to be root!

Since I use removable USB storage quite a lot (pendrive, camera, etc), I like to create a new entry in my fstab for removable devices:
Code:
/dev/sda1 /mnt/usb-drive auto noauto,users 0 0
 
Old 11-08-2004, 06:08 AM   #4
ndriutti
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
There is only /dev/sda.
I tried to use the same sd card with winxp and it works flawlessy.
Why it doesn't work with linux?
 
Old 11-08-2004, 06:17 AM   #5
ndriutti
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
This is dmesg output with the card reader and 256Mb sd card:

usb 1-1: new full speed USB device using address 3
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: SMSC Model: 223 U HS-CF Rev: 1.95
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Vendor: SMSC Model: 223 U HS-MS Rev: 1.95
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 1
Vendor: SMSC Model: 223 U HS-SM Rev: 1.95
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdc at scsi1, channel 0, id 0, lun 2
Vendor: SMSC Model: 223 U HS-SD/MMC Rev: 1.95
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdd: 499712 512-byte hdwr sectors (256 MB)
sdd: Write Protect is off
sdd: Mode Sense: 03 00 00 00
sdd: assuming drive cache: write through
/dev/scsi/host1/bus0/target0/lun3: p1
Attached scsi removable disk sdd at scsi1, channel 0, id 0, lun 3
USB Mass Storage device found at 3

And, after few minutes:

usb 1-1: reset full speed USB device using address 3
scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 0 lun 3
When i disconnect the device
usb 1-1: USB disconnect, address 3
 
Old 11-08-2004, 07:13 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I'm not an expert at analysing dmesg output, but all seems OK to me. One thing though: it seems that your card is attached as /dev/sdd, not /dev/sda... Try and mount each /dev/sd... you have in turn, and see if sdd, or another, works...
Gook luck.

Yves.
 
Old 11-08-2004, 07:20 AM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Asking why a device that works flawlessly under Windows doesn't work under Linux is like asking why a putting diesel into a petrol engine doesn't work. Some devices have been manufactured to use as few pieces of actual silicon as possible - take Winmodems for example. The manufacturer has put all their efforts into make a "driver" for Windows (and occasionally Macs too) which actually handles as much processing as possible, therefore allowing the device to be made more cheaply since it has fewer chips in it. Of course, if you try to use this device under any other operating system, the manufacturer hasn't produced drivers for it, so you'll be out of luck.

Luckily, there are hundreds/thousands of people that contribute to Linux itself (not to mention all the programmes that will run on Linux) and work on making as many devices as possible work.

Your dmesg output does say that "SCSI device sdd: 499712 512-byte hdwr sectors (256 MB)
sdd: Write Protect is off". Have you tried accessing it as /dev/sdd?

Here's a thought for you;
A USB card reader is treated as a removable SCSI storage device. SCSI has the ability to handle multiple devices on the same cable. Each of them has a separate LUN. If you have a multi-reader (one that can read upto 7 different types of "memory card") then it is more than likely that each individual reader has its own LUN. If this is the case, then each will be presented to the system as a separate device, sda, sdb, sdc, sdd, sde, sdf, sdg and sdh, and each can have its own partitioning scheme.

So, try /dev/sdd1
 
Old 11-09-2004, 07:33 AM   #8
ndriutti
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry, I did not explain the question properly.
My question is: why the device works fine in linux only with 64Mb sd card and not with 256 Mb card while in windows it works with both the cards.

The first time I plugged in the camera with 256mb card i tried to open it with the icon appeared in Kde desktop (with 64mb I always did so with success) but the response after few minutes is "cannot mount, not a valid block device".

So I tried to mount the memory card using the digital camera (seen as /dev/sda) and a multiple card reader (the sd slot is seen as /dev/sdd).

I used "mount -t /dev/sda /mnt/foo" for the camera and "mount -t /dev/sdd /mnt/foo" and "mount -t /dev/sdd1 /mnt/foo" for the card reader but the reply is the same "not a valid block device".

The dmesg output is related to card reader.


Now, is there any other way to try?


Thank you for your patience.
 
Old 11-09-2004, 08:12 AM   #9
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
I don't know if this will be of any help, but I can access my Kodak via usb using GTKam and unlike my buddy's cannon which you simply select his camera type and it works, I must press the send picture button on the dock, then while it is trying to send, select the camera type or it does not connect.

Usually I opt to stick my 256meg sd card in a Jumpdrive Trio and just plug that into a usb port. I then use Nautilus or konqueror to view the "removable" entry that appears in /mnt/ on the graphical tree.
I have no idea why this quirk, but it is not uncommon for me to plug it into a port and get nothing showing in the card, pull it out and try it in a different usb port and find that it works.

Maybe I don't understand something here, but I thought 10.1 would be like 10 where plugging your card in without the camera should automount, therefor you simply access it in the /mnt/ directory, not the /dev/ directory. I never need to open a terminal session to do anything pertaining to my camera.

Last edited by Lakota; 11-09-2004 at 08:15 AM.
 
Old 11-25-2004, 01:49 PM   #10
ndriutti
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Solved!!!

I have just upgraded to kernel 2.6.9 and now it works great!
I can mount the 256Mb sd card with both the digital camera and memory card reader.

Bye...
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Cruzer Mini 256MB under Slackware 10.1 Calltor Linux - Hardware 4 09-03-2005 06:26 AM
256mb GFX card ATI or nVidia? Superme Linux - Hardware 1 02-14-2005 03:19 PM
USB card reader: mounting problems alek66 Slackware 6 08-18-2004 07:28 PM
partition mounting and ftp installation network card problems (SuSE 9.1) akalm Linux - Newbie 4 07-10-2004 05:49 PM
problems wtih tv card with mdk 9.1 phimoen Linux - Hardware 3 10-13-2003 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration