LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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
  Search this Thread
Old 09-23-2007, 08:47 PM   #1
solex
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Rep: Reputation: 15
Question Mounting a SanDisk 2GB SD card


Hi,
I have had trouble mounting an SD card mentioned in the subject line (both and SD card and a microSD with a Trans Flash adapter).

If I issue this command: mount -t vfat -o loop /dev/sdd1 /mnt/memory. The card mounts but issuing an ls shown directories but in strange characters.

If I issue mount -t usbfs -o loop /dev/sdd1 /mnt/memory and then do an ls I get the following directories: 001, 002, 003 and an empty file called devices.

Any idea how I can get this to work?

It appears to be a problem with all SD cards over 1 GB. I'm running VectorLinux 5.8 SOHO and do not have a problem with mounting other media types.

cfdisk is able to see the card:

cfdisk 2.12r

Disk Drive: /dev/sdd
Size: 2032664576 bytes, 2032 MB
Heads: 32 Sectors per Track: 63 Cylinders: 1969

Name Flags Part Type FS Type [Label] Size (MB)
-----------------------------------------------------------------------------------------
sdd1 Boot Primary FAT16 2031.36
Pri/Log Free Space 1.04




Thank you,
Dan
 
Old 09-24-2007, 05:22 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
First of all, you don't need the '-o loop' option when mounting a real drive. That option is used for mounting disk images sitting on an already mounted disk.

Also, it might be that your card reader simply can't handle large cards. I have an Epson printer with card slots, and I can't mount anything over 1GB either. I don't get error messages though, it just can't see them at all. The same cards do work with a different reader, however.
 
Old 09-24-2007, 05:32 AM   #3
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by David the H. View Post
First of all, you don't need the '-o loop' option when mounting a real drive. That option is used for mounting disk images sitting on an already mounted disk.

Also, it might be that your card reader simply can't handle large cards. I have an Epson printer with card slots, and I can't mount anything over 1GB either. I don't get error messages though, it just can't see them at all. The same cards do work with a different reader, however.
I concur.

I had a card reader that always give me error whenever I read a 2GD SD card. I initial thought the problem is something with my driver or maybe my SD card was faulty. Until one day I got myself a new reader, I did not know there is a size limitation.

By the way, the correct command should be:

Code:
$> mount -t vfat /dev/sda1 /mnt/
If sda1 is the device for the SD card and /mnt is the target directory to mount. Change it according to suit your needs.
 
Old 09-24-2007, 05:38 AM   #4
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by solex View Post
...
If I issue mount -t usbfs -o loop /dev/sdd1 /mnt/memory and then do an ls I get the following directories: 001, 002, 003 and an empty file called devices.
...
By the way, usbfs is not suppose to be used as a normal filesystem.

Quote:
The usbfs filesystem for USB devices is traditionally mounted at
/proc/bus/usb. It provides the /proc/bus/usb/devices file, as well as
the /proc/bus/usb/BBB/DDD files.
...
Read the entire proc_usb_info.txt in your Linux source Documentation/usb folder for more details.
 
Old 09-24-2007, 06:58 AM   #5
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
I concur with the above, but I also had a strange problem with a SD Card that I could not read on my laptop either with windows or linux, I even thought it was a problem with my card reader, in the end I found the SD Card (from a photo machine) had no partitions and linux kernel was not very fond of it.

One day I tried with freebsd and work perfectly, I'm not saying you need FreeBsd, just check for your partittion table for you SD Card.
 
Old 09-24-2007, 07:51 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Quote:
Originally Posted by jdogpc
in the end I found the SD Card (from a photo machine) had no partitions and linux kernel was not very fond of it.
That's true. It is possible to have partitionless cards. But those are easily mounted by using the base device in the mount command; /dev/sda instead of /dev/sda1, or whatever.

In this case though, the opening post's cfdisk output shows that there is a good partition at sdd1, so it's probably not an issue here.
 
Old 09-24-2007, 09:27 PM   #7
solex
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Original Poster
Rep: Reputation: 15
I tried the card on my work laptop X60 and it worked. I guess I'm in the market for a newer card reader, how do I shop for one?

Thanks for your input,
Dan
 
Old 09-25-2007, 03:29 PM   #8
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
What kind of reader are you looking for exactly? I think the problems mostly come with older readers that were designed before multi-GB cards became available. Probably 90%+ of newer readers will work fine.

Directing you to a specific model is difficult because we can't be sure of what you want. I personally have a cheap usb multi-card reader I bought here in Japan (that doesn't seem to be available elsewhere, at least under that model number), as well as a Mutsumi internal floppy/card reader, and they both work perfectly. You should first look around for models that look good to you, then check to see if anybody else has had trouble with it. I think your chances of buying a bad reader off-the-shelf these days is pretty low however, and you can always return whatever you buy for exchange if you do hit the odd one out.

For that matter, It would be nice of you to post the model number of the reader you're using now as a warning for anyone else who might be having the same problems.
 
Old 09-25-2007, 07:29 PM   #9
solex
LQ Newbie
 
Registered: Dec 2003
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the replies,

I have a USB IOGEAR Model# GFR280.

Dan
 
Old 10-03-2007, 07:28 PM   #10
jdjohnso4nc
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by solex View Post
Thanks for the replies,

I have a USB IOGEAR Model# GFR280.

Dan
Solex,

I just tried my brand new 2G SD card in my GRF280 with no luck (Buffer I/O errors like mad).
But the SD reader on my HP printer (Photosmart 3210xi) reads it just fine.

So it looks like the GFR280 just might not be able to deal with cards that big.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sandisk Sansa E140 SD card not seen bgood256 Linux - Hardware 0 12-28-2005 10:06 PM
mounting a sandisk mp3 player true_atlantis Linux - Hardware 3 11-27-2004 11:34 AM
pcmcia sandisk card mjm461 Linux - General 2 02-20-2004 08:21 AM
USB Sandisk card reader griv Linux - General 1 06-04-2002 03:18 PM
Mounting SanDisk Compact Flash Reader The Jesus Linux - General 0 03-24-2002 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration