Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Problem mounting sd-card
PostPosted: Mon Jul 21, 2008 4:43 pm 
Offline

Joined: Thu May 29, 2008 10:36 am
Posts: 7
Location: Germany
Hi there,

i've got a problem with mounting sd-card. At Linux startup the mmc0 (sd-card interface) always mounts read only. I made settings in /etc/fstab to mount the mmcblk0p1 (sd-card) writeable.

Code:
# stock fstab - you probably want to override this with a machine specific one

rootfs               /                    auto       defaults              1  1
proc                 /proc                proc       defaults              0  0
devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
usbfs                /proc/bus/usb        usbfs      defaults              0  0
tmpfs                /var/volatile        tmpfs      defaults              0  0
tmpfs                /dev/shm             tmpfs      mode=0777             0  0
tmpfs                /media/ram           tmpfs      defaults              0  0

# uncomment this if your device has a SD/MMC/Transflash slot
/dev/mmcblk0p1       /media/card          auto       defaults,sync,noauto  0  0


when i mount the sd-card i get the print:

Code:
mount: block device /dev/mmcblk0p1 is write-protected, mounting read-only


also /etc/mtab prints out:
Code:
root@at91sam9263ek:/media/card$ cat /etc/mtab
rootfs / rootfs rw 0 0
/dev/root / jffs2 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
/dev/root /dev/.static/dev jffs2 rw 0 0
tmpfs /dev tmpfs rw 0 0
devpts /dev/pts devpts rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
tmpfs /var/volatile tmpfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
tmpfs /media/ram tmpfs rw 0 0
/dev/mmcblk0p1 /media/card vfat ro,sync,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1 0 0


The Hardware Write Protection on the sd-card ist not set.
The cupper contact in the sd-card slot works also fine.
Has anybody an idea to get the sd-card mounted writeable?
Thanks a lot.
Stefan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 25, 2008 9:57 am 
Offline

Joined: Thu Feb 28, 2008 5:37 am
Posts: 65
Try this

$ mount /dev/mmcblk0 /media/mmcblk0 -O rw,remount

The device file should be present in the /dev directory.
The SD card will be mounted in read/Write mode.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: