i am having trouble on my linux machine running in centos 5. my machine restarted and after booting my /var partition changes to read-only.
i tried to create a file on /var but i get error.
[root@server ~]# touch /var/test
touch: cannot touch `/var/test': Read-only file system
i command mount to see my file system.
[root@server ~]# mount
/dev/hda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda6 on /home type ext3 (rw)
/dev/hda5 on /var type ext3 (ro)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
i did a fsck on /dev/hda5 and it seems to be ok.
[root@server ~]# fsck /dev/hda5
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/hda5 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/var: clean, 2130/12812288 files, 4801684/12799780 blocks
i also try to remount.
[root@server ~]# mount -o remount /var
mount: block device /dev/hda5 is write-protected, mounting read-only
is there is any way to make my /var to RW?
thanks in advance.