Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've got an IcyBox USB hub/card reader combo in my computer, running Ubuntu 12.10.

It's got an issue with SD cards. It always mounts them read-only, regardless of the write-lock switch. This is observed across many SD cards that otherwise work, and crucially occurs for a microSD in an adapter, where the microSD was fine in the microSD slot in the reader.

Anyone got any ideas as to what's going on and how I can fix it?

share|improve this question
add comment

3 Answers 3

It sounds to me to be a permissions issue. I've come across this myself with my Linux Mint 14 (Cinnamon) install, which I believe is based on Ubuntu 12.10.

First thing to do is to check the permissions on the hardware device mounting your card. You'll need to find the device name. To do this run the following command:

sudo fdisk -l

Your device will probably be something along the lines of /dev/sdb1, in my case the SD Reader was /dev/mmcblk0p1.

Next you need to get the permissions on this device:

sudo ls -l /dev/mmcblk0p1

Replace "/dev/mmcblk0p1" with your device location. The output will look something like this:

brw-rw---- 1 root disk 179, 1 Feb 3 21:58 /dev/mmcblk0p1

This tells us the device is owned by User 'root' and group 'disk' You need to be a member of group 'disk' to be able to write to the SD card. You can check which groups your a member of with

groups username

In my case I was not a member of the 'disk' group, I rectified this with

sudo usermod -G --append disk username

This adds the group 'disk' to your user's groups, which should allow you to now read & write to the SD card

share|improve this answer
    
"sudo usermod -G disk username" removed my other groups from my account. Adding "--append" will add the group without removing the existing groups. –  matt May 3 at 0:26
    
--append must be after the group name, like sudo usermod -G disk --append username (else there is an error about group "--append") –  Cédric Girard Jul 14 at 16:00
add comment

Get hold of a PC running windows, download a program called SD Formatting, install and reformat the SD card, making sure the option is set to "ON", it will then be recognised on a Linux machine! without the read only option.

share|improve this answer
add comment

Open terminal by hitting Alt+Ctrl+T and run:

sudo mount --options remount,rw /dev/sdd

Replace /dev/sdd with your SDHC drive, you can find it using fdisk -l.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.