LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File system becomes read-only (https://www.linuxquestions.org/questions/linux-newbie-8/file-system-becomes-read-only-263958/)

jkpchang 12-08-2004 05:23 AM

File system becomes read-only
 
hi,

I recently installed Fedora. I was using it for a few days
and it was fine. Then all of a sudden, the file system
becomes read-only automatically. When I tried to touch
a file, it says:

[root@machine root]# touch abc
touch: cannot touch `abc': Read-only file system

So I rebooted, and the file system turns back to read-
write. But an hour or so later, it becomes read-only
again.

do I have a virus? Tomcat, MySQL and other stuff are
running and these ports are reachable externally.

or do I just have a bad hard drive? Have anyone else here
seen this? Or am I just not setting certain things correctly,
e.g. fstab and mtab.


Thanks,
Jorge

egag 12-08-2004 08:23 AM

well...you shouldn't edit mtab, that file is keeping track of all mounted fs.
and your fstab should be ok too, as all is ok after a reboot.

to switch a filesystem from r/w to ro it should be remounted. ( but how ? )
this change should be reflected in the mtab however.
check that file after a reboot and again after the perm. change occured.
any difference ?

egag


All times are GMT -5. The time now is 10:40 PM.