LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-07-2012, 12:46 PM   #1
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Rep: Reputation: 0
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,
 
Old 02-07-2012, 01:16 PM   #2
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 28

Rep: Reputation: Disabled
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
 
Old 02-07-2012, 01:38 PM   #3
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
[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.
 
Old 02-07-2012, 02:26 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,520

Rep: Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944
Quote:
Originally Posted by ramecare View Post
[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.
 
Old 02-08-2012, 12:06 AM   #5
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
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 .
 
Old 02-08-2012, 11:22 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,520

Rep: Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944
Quote:
Originally Posted by ramecare View Post
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??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync error: Read-only file system (30) mike11 Linux - Newbie 6 01-07-2011 12:02 AM
Error: Read-only file system linuxseek Linux - Mobile 2 11-06-2009 09:08 AM
read-only file system error when editing a config file smallfrowne Linux - Newbie 5 02-19-2008 06:06 PM
Read only file system error! xardas Linux - Desktop 1 05-14-2007 10:18 PM
read only file system error surfduke Linux - General 3 09-30-2005 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration