LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-07-2009, 08:10 PM   #1
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Rep: Reputation: 15
trouble with an SD card reader


Hello.
I'm having trouble with a universal media card reader.
It's one of these USB plug-in units, with a few slots, for different memory card types.
I use SD cards, in my digital camera.
When I take pictures I can see them o the SD card, which shows up as "sd1"
The trouble starts when I try to write to this card.
I can't copy any files to the SD card - I get the Konqueror error "could not write to media/disk filename.jpg"
I checked the permissions - I was ok to write.
"owner can write and modify content"
"group - can view content"
I tried to change the permissions for the group - it wouldn't allow me.
I tried it as root - would not allow me to change permissions... I get the same Konqueror error - "could not change permissions for media/disk.."

help!

The reader work just fine in Windoze.
Oh, and I tried five different SD cards.
I use Mandriva 2008
 
Old 02-08-2009, 01:08 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Could you indicate whether you use kde, gnome or another desktop environment. And which version. KDE 3.5 is a lot different from KDE 4.0.
In KDE 3.5, when the icon comes up in the desktop, you can right click on it and select properties. In the "mounting" tab, you can select "Mount as user" to have the device mount owned by that user, giving the user write access.

Also check the read only tab on the SD cards.

Also, be careful that you eject them properly. If the filesystem is corrupt you won't be able to write to them. Sometimes a defect will be noticed after mounting and the device will be remounted read-only.

Last edited by jschiwal; 02-08-2009 at 01:10 PM.
 
Old 02-08-2009, 01:53 PM   #3
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
my KDE is rev. 3.5.7 and so is Konqueror.
There is no "mount as user" option in the properties.
The cards I used don't even have the 'write-protect' switch.
I'll try to format them in Windoze. That may do the trick..
 
Old 02-08-2009, 02:22 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I just started a KDE 3.5 session. It is in the Mounting tab of properties. I right clicked on the sysinfo:/ page in konqueror over the device.

To display the icon on the desktop, I needed to right-click on the desktop. Select configure. Select "Behavior". Then I enabled "Show Device Icons".

Make sure you don't boot up with the "noacpi" boot option. Make sure the udevd and hald daemons are running:
ps -u root | egrep '(udev|hal)'

Did it automount under /media? If so enter:
ls -ld /media/*

Post the results. This will show the permissions.

Try the "touch" command to create a file inside. Example:
touch /media/expansion/testfile

If there is an error post the error message. Also look at any kernel messages just after the error:
sudo tail /var/log/messages

Sometimes a kernel message will give more information on the exact cause.
 
Old 02-08-2009, 02:29 PM   #5
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
I got it to work by shredding the SD card:

su
[root password]
shred -n 1 -z -v /dev/sda1

Then I formatted the card
I can write and read now
I guess it was corrupted structure of the card, just like you suggested

thanks for your help!
 
Old 02-09-2009, 03:47 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Don't use shred on an SD card. You can use dd to zero it out, but you want to limit the number of writes to an SD card.
 
  


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
MEPIS: how to mount a flash card in an usb card reader for n00b frenchn00b Linux - General 1 08-06-2008 05:26 PM
Installed with an SD Card in reader months ago; lost card, won't boot (VolGroup err) sandaili Fedora 2 07-02-2008 05:19 PM
HP Photosmart 7550 w/ Flash Card Reader on Suse 9.3. Card Reader and Print Sharing Desert Linux - Hardware 0 07-25-2005 08:25 PM
Memory Stick Duo Pro / Card Reader: Trouble! MMHein Linux - Hardware 1 09-28-2004 02:35 PM
Memory Stick Duo Pro / Card Reader: Trouble! MMHein Linux - General 1 09-28-2004 12:06 PM

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

All times are GMT -5. The time now is 07:59 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