Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
[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
[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.
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??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.