| Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-07-2012, 12:46 PM
|
#1
|
|
Member
Registered: Feb 2011
Posts: 176
Rep:
|
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,
|
|
|
|
02-07-2012, 01:16 PM
|
#2
|
|
LQ Newbie
Registered: Jun 2011
Distribution: Redhat
Posts: 27
Rep: 
|
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
|
|
|
|
02-07-2012, 01:38 PM
|
#3
|
|
Member
Registered: Feb 2011
Posts: 176
Original Poster
Rep:
|
[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
Last edited by ramecare; 02-07-2012 at 01:48 PM.
|
|
|
|
02-07-2012, 02:26 PM
|
#4
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,994
|
Quote:
Originally Posted by ramecare
[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.
|
|
|
|
02-08-2012, 12:06 AM
|
#5
|
|
Member
Registered: Feb 2011
Posts: 176
Original Poster
Rep:
|
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 .
|
|
|
|
02-08-2012, 11:22 AM
|
#6
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,994
|
Quote:
Originally Posted by ramecare
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??
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:53 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|