Solved

cp: cannot create regular file `rc.dat': Read-only file system

Posted on 2008-06-18
3
4,581 Views
Last Modified: 2013-12-16
I edited rc.sysinit as root then on next boot the whole system is read only and can't re-edit it

Seams etc/rc.sysinit is linked to etc/rc.d/rc.sysinit

I tried chmod +rw and 777 still say read only file system

Any help appreciated
0
Comment
Question by:MacNuttin
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 250 total points
ID: 21814085
please try

 mount -n -o remount,rw /
0
 
LVL 11

Author Comment

by:MacNuttin
ID: 21814212
Thanks that worked. Can you explain? Was entire file system remounted a read write?
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 21814310
it seams that your root filesystem / was mounted read-only and the provided command remounted it read / write
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question