You are not logged in.
Pages: 1
I'm trying to get total read and write access when I insert my micro sd card. It will automount, but I can't delete or write files.
Here's what I've done on command line:
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 7833 62918541 7 HPFS/NTFS
/dev/sda2 7834 12039 33784695 83 Linux
/dev/sda3 12040 12161 979965 82 Linux swap / Solaris
Disk /dev/mmcblk0: 2032 MB, 2032664576 bytes
64 heads, 63 sectors/track, 984 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 984 1983619+ 6 FAT16
[tom@laptop ~]$ sudo mount -t vfat /dev/mmcblk0p1 /media/disk
mount: block device /dev/mmcblk0p1 is write-protected, mounting read-only
----------
I've also tried to change this with the chown command:
[tom@laptop ~]$ sudo chown -R tom /media/disk
[Then it lists that it's changing the ownership of everything on my card, like so]
chown: changing ownership of `/media/disk/my_sounds': Read-only file system
but still no luck. I have admin access, so sudo commands is no issue. I'm hoping I can change this so when it automounts, there is read write permissions.
Thanks for your help!
Last edited by mongoose088 (2008-12-18 22:56:17)
Offline
try to remount it:
sudo umount /dev/mmcblk0p1
sudo mount -t vfat -o defaults,rw,umask=0 /dev/mmcblk0p1 /media/disk
you can NOT set the permissions with chown and chmod.
but you can to set the permissions at mount time:
defaults,rw,dmask=007,fmask=117,uid=userid,gid=groupid
to find your uid/gid type:
id
in a terminal.
don't drink unwashed fruit juice.
i never make predictions, especially about the future.
Offline
This is really strange.
using the id command, I find that both my uid and gid is 1000, and enter it in terminal:
[tom@laptop ~]$ sudo mount -t vfat -o defaults,rw,dmask=007,fmask=117,uid=1000,gid=1000 /dev/mmcblk1p1 /media/disk
mount: block device /dev/mmcblk1p1 is write-protected, mounting read-only
It mounts correctly, and when I right click the desktop icon and look at permissions, it says "tom" has both group and owner read/write authority. But When I try to delete files, it won't let me. When I try to delete things in terminal, it says it's still a read only file system. Am I missing anything else?
Thanks for the reply so far.
EDIT-- This is the output of id, in case you need it:
uid=1000(tom) gid=1000(tom) groups=7(lp),10(wheel),91(video),92(audio),93(optical),95(storage),100(users),1000(tom)
Last edited by mongoose088 (2008-12-18 03:37:04)
Offline
just a newb to newb comment that may be silly.
What is the Card formatted as?
Maybe it is a problem with the mounting format
http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration
Offline
it's FAT16, which, if I'm not mistaken, is a common format for smaller sized storage devices (eg a USB drive). I don't think the format is the issue, but I guess I can't totally dismiss it.
Thanks for the reply.
Offline
On some of the earlier sd's I seem to recall that there was a small (manual) switch so that you could make it ro ...
Offline
On some of the earlier sd's I seem to recall that there was a small (manual) switch so that you could make it ro ...
Ditto I believe that some of the SD cards I have, have a switch on it. See if yours has any type of switch for read only.
WOW I didn't even realize what that switch was for, I feel like a real newbie at the moment. Thank you SO much for the help, the switch fixed the problem completely!
Offline
Pages: 1