Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mount
/dev/sdd1 on /media/E0FD-1813 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
cp 'Aankhon Aankhon Mein hum tum ho gaye deewane.mp3' /media/E0FD-1813/Music/sumeet/a
cp: cannot create regular file `/media/E0FD-1813/Music/sumeet/a/Aankhon Aankhon Mein hum tum ho gaye deewane.mp3': Read-only file system
The micro sd card mounts & works as fat32 in windows xp just fine.
Look at the ownership and permissions of the mount point.
ls -ld /media/E0FD-1813
I'm wondering if the filesystem might be corrupt, or if you aren't the user with the UID of 1000.
The dmask only allows the owner to enter the directory. The fmask isn't listed.
The pendrive was mounted as the user with the UID of 1000, which would be the first regular user.
Post the ls command results. The missing fmask mount option seems abnormal. Your regular user will be able to access the directories however according to the dmask used.
Try reading and writing to the disk as a regular user, as you should be doing.
$ mount
/dev/sda5 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda8 on /sumeet type fuseblk (rw,allow_other,blksize=4096)
/dev/sdb1 on /media/SUMEET type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
/dev/sdc1 on /media/FreeAgent GoFlex Drive type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdd1 on /media/E0FD-1813 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
lxuser@debian:~$ cat > example.txt
copy the file into usb & mobile
lxuser@debian:~$ cp -v example.txt /media/SUMEET/
`example.txt' -> `/media/SUMEET/example.txt'
lxuser@debian:~$ cp -v example.txt /media/E0FD-1813/
`example.txt' -> `/media/E0FD-1813/example.txt'
cp: cannot create regular file `/media/E0FD-1813/example.txt': Read-only file system
lxuser@debian:~$ rm /media/E0FD-1813/radio-001.mp3
rm:cannot remove 'radio-001.mp3' : read only file system
SUMEET is USB stick which poses no problem in copying.
while E0FD-1813 is SD card with same mount options yet immutable.
Last edited by sumeet inani; 05-21-2011 at 08:14 AM.
'fsck.vfat -a /dev/sdd1' corrupted the file indexing by samsung OS of mobile by renaming files with non graphical characters.
The mobile manual had initially warned to format the micro SD card only with samsung OS
But I edited file system without heeding to that.
Yet 'read only file system error'.
Having graphical characters listed for the filenames indicates the either the filesystem is corrupt, or the SD card is going bad.
If fsck didn't fix the problem, you might need to use photorec to recover files on the filesystem before reformatting. If reformatting doesn't help, I'd say the device is going bad.
I had a similar problem yesterday with my kindle. I couldn't save items in Calibre with the same error message. Fsck fixed the problem for me. You may have had more extensive damage to the filesystem.
Turns out the samsung OS in mobile creates file with non-ASCII names , maybe not adhering to FAT specification .
'fsck.vfat' was exhausted (1/2 hour up still working) in renaming those garbled folders.
Also 'find' indicated filesystem loop detected.
Those mobile OS software engineers cover up flaws with patch & label unintended bugs as security features.-Said by Dilbert
That is why they warned against formatting on computer instead mobile OS can do that.
Also it seems files on micro SD card get corrupted soon unlike USB stick.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.