Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot delete session file

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
HI there,
I am trying to delete a file like:

/temp/sess_736d6cd41274108cf083e78c7352ee45

I believe this is a apache session file. However, its giving me:

rm -f sess_ffa3ec3da29a12fe9475339a693f76a9
rm: cannot remove `sess_ffa3ec3da29a12fe9475339a693f76a9': Read-only file system


I tried to chmod or chown as root but its giving me the read-only file system message.

I tried to sudo to the owner of the file "nobody" and delete it but its still giving me the error.


Is there a way to delete this file? The reason I am trying to delete this file because our php apps are saying that these files are not writable as well.

any input helps ! :) thanks

 
Hi

keak said:
rm: cannot remove `sess_ffa3ec3da29a12fe9475339a693f76a9': Read-only file system.
If it said clearly "Read-only file system", of course you can not change file attributes on it and PHP can not write on it. That partition is mounted read-only. If was not you explicit request to mount it read-only, then probably the driver itself decided to mount it read-only to minimize the loss of data. Check that partition, the file system may be damaged. And your harddisk may have physical errors too.

The problem is not Apache related and for further assistance you should post the question in your operating system's forum.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top