Read-only file system - ERROR
When iam trying to create a directory in my server iam getting the following error
[root@soft4 ~]# mkdir bkup
mkdir: cannot create directory `bkup': Read-only file system
Can any one help me on this
type mount and check the current mount file system, and then check fstab and look if your file system is ro, and if so edit fstab and type mount -a
[root@soft4 ~]# mount
/dev/sda2 on / type ext3 (rw,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext2 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb1 on /mnt/disk1 type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/opt/apps/deploy/static/php/pommo/themes/shared/images on /home/aviation/campaign type none (rw,bind)
/opt/apps/deploy/static/css on /home/aviation/css type none (rw,bind)
/opt/apps/deploy/static/images on /home/aviation/images type none (rw,bind)
/opt/apps/tomcat/apache-tomcat-6.0.26/webapps/cms/html on /home/aviation/html type none (rw,bind)
mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file.
[root@soft4 ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 ro,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /selinux selinuxfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda1 /boot ext2 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sdb1 /mnt/disk1 ext3 rw,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/root /home/aviation/campaign ext3 ro,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/root /home/aviation/css ext3 ro,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/root /home/aviation/images ext3 ro,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
/dev/root /home/aviation/html ext3 ro,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
I followed the above given steps .i had aslo tried to chage the filesystem permission to rw in /proc/mounts readonly error.
can any one help me on this issue
You can boot the system from a CD/DVD, and then try to fsck it, and see if there are any errors. From there, you should be able to mount a partition in read-write mode, and edit the fstab file, then reboot.
Distro 5.4 centos
Currently the error is occuring on one of my vps server .Whether the problem is with my server hardware are permission error .
No one here can help you if you don't provide details. We can't tell WHAT is wrong, unless we know more about it. Again, has it been reset frequently? Shutdown correctly? Have you looked at the system logs to see if you got any hardware messages? Have you tried to boot it in rescue mode? Look at the /etc/fstab file??
|All times are GMT -5. The time now is 02:43 PM.|