Solved

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

Posted on 2008-06-18
3
4,429 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
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…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now