LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Read-only file system - ERROR (https://www.linuxquestions.org/questions/linux-server-73/read-only-file-system-error-928144/)

ramecare 02-07-2012 12:46 PM

Read-only file system - ERROR
 
Dear all,

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

Thanks&Regards,

saifelyzal 02-07-2012 01:16 PM

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

ramecare 02-07-2012 01:38 PM

[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

TB0ne 02-07-2012 02:26 PM

Quote:

Originally Posted by ramecare (Post 4596280)
[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.

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 don't say what version/distro of Linux you're using, or what you did to cause this error. Typically root filesystems are remounted in read-only mode after there's been some sort of problem, or an unclean shutdown. What are the contents of the /etc/fstab file?

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.

ramecare 02-08-2012 12:06 AM

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 .

TB0ne 02-08-2012 11:22 AM

Quote:

Originally Posted by ramecare (Post 4596726)
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 .

Ok...see the suggestions above. Did you do/try any of them yet??? What were the results??? This seems to be a recurring theme in your threads, where suggestions are ignored, and we have to ask for each and every detail, each time.

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 04:29 AM.