LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-19-2008, 12:59 PM   #1
smallfrowne
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
read-only file system error when editing a config file


I recently installed DSL on an old laptop.. i need to change the file congfig.opts in the /etc/pcmcia dir but when i try to save it gives me an error along the lines of "error: read only file system".

Ive checked the access rights if thats the correct term, and im doing it as root.
Code:
ls -l config.opts 
lrwxrwxrwx 1 root root 31 Feb..
Im a massive linux noob so it could be something easy i dunno!
 
Old 02-19-2008, 01:07 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Hi and welcome to LQ. Were you root when you tried to edit that file because from the output above, the file is owned by root.
 
Old 02-19-2008, 01:09 PM   #3
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
Well.
On read only filesystem even root can't write a file. It's becouse it's named read only.
You should remount it with mount -o remount,rw <device>
 
Old 02-19-2008, 01:28 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by Samotnik View Post
Well.
On read only filesystem even root can't write a file. It's becouse it's named read only.
You should remount it with mount -o remount,rw <device>
Oops I completely missed that part. Thanks for the correction.
 
Old 02-19-2008, 03:00 PM   #5
smallfrowne
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the warm welcome
Quote:
mount -o remount,rw <device>
- what exactly is the <device> im meant to remount? ive tried a few things but just get errors and im not entirely sure what mounting does so im just guessing really. Tried mount -o remount,rw /etc/pcmcia but got "cant find /etc/pcmcia in /etc/fstab or /etc/mtab"
 
Old 02-19-2008, 06:06 PM   #6
smallfrowne
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Ah i fixed it, i had installed it all wrong. Never-the-less, editing the file didnt do much good so i may post another regarding the network pcmcia card in question. Thanks for the help
 
  


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
Read parameters from config file (file parser?) alaios Programming 8 07-09-2012 11:29 AM
Read only file system error! xardas Linux - Desktop 1 05-14-2007 10:18 PM
File System Check Bootup error: Superblock could not be read. dungeonmasterShu Mandriva 2 11-21-2006 12:45 AM
error message after editing config file kklim Linux - Newbie 6 01-10-2006 07:09 PM
read only file system error surfduke Linux - General 3 09-30-2005 07:04 PM


All times are GMT -5. The time now is 04:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration