Mounting a SD card as RW still give RO filesystem
Grant M
gmongardi-cGmSLFmkI3Y at public.gmane.org
Mon Nov 2 13:21:05 EST 2009
David Kramer wrote:
> david at lexa:~$ l /mnt/tmp
> ls: cannot access /mnt/tmp/Video: Input/output error
> total 1220
<..snip..>
> d????????? ? ? ? ? ? Video
<..snip..>
> david at lexa:~$ sudo touch /mnt/tmp/me
> touch: cannot touch `/mnt/tmp/me': Read-only file system
>
> david at lexa:~$ mount | grep /mnt/tmp
> /dev/sdd1 on /mnt/tmp type vfat (rw,noexec,nosuid,nodev)
I can't say for sure, as you didn't include the OS/version, but on
RHEL4-5/CentOS, the mount command lies - if the filesystem was remounted
due to filesystem errors, mount reports it as how it was mounted
originally. My guess is that if you again run an ls of the device, those
????? will have gone away, but I'm speaking from my prior experiences.
>From what I've seen in the past, what you have here are filesystem
errors - check /var/log/messages. I bet it will show fs errors, and will
show that it re-mounted the device read-only. You may also find some
associated hardware error, but that's not always the case.
Grant M,
--
Grant Mongardi
Senior Systems Engineer
NAPC
gmongardi-cGmSLFmkI3Y at public.gmane.org
http://www.napc.com/
blog.napc.com
781.894.3114 phone
781.894.3997 fax
NAPC | technology matters
More information about the Discuss
mailing list