LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2006, 01:07 PM   #1
philgarcia
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
VAR Read-Only ~ How do I change it?


I have a SLES9 box that boots-up and gives me tons of warnings that the file system is now read-only. Logging-in as root is a bit rocky, but works after a warning message about R/O status. Once logged-in, I can traverse the folders, but nothing runs. STARTX returns a FATAL ERROR stating that /VAR is read-only, and could not create the necessary temp files.

I am not certain what changed. I am really focused on getting back to an operating state. Suggestions?


Linux rookie...
 
Old 02-01-2006, 02:22 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
It almost sounds as if someone changed global permissions...

To start:
cd / this puts you at the top of the filesystem tree
ls -l lists all directories and permissions

It should look something like this (partial listing):
drwxr-xr-x 2 root root 4096 Oct 27 04:02 bin
drwxr-xr-x 4 root root 1024 Nov 1 13:39 boot
drwxr-xr-x 3 root root 4096 Apr 11 2005 dell
drwxr-xr-x 9 root root 5820 Feb 1 09:03 dev
drwxr-xr-x 81 root root 12288 Feb 1 08:54 etc
drwxr-xr-x 4 root root 4096 Nov 10 10:09 home
...etc
What this is saying is that the high-level directories are owned by "root"--ie the system--and that root has read/write/execute privileges---mere mortals can only read and execute. If you have something radically different, you will need to fix it "from the top".

There are different ways of doing this--I am not well versed in all of them. Here is one over-simplified example:

su to become root, and issue the command: chmod 755 / This will change all directories in /, but will not go deeper.
To go deeper, there is chmod -R xxx dirname Look at man chmod to understand how to control the depth of recursion.
Others will surely suggest more tools to get things fixed.

Note: In all cases, **directories** must be executable by all---eg to see what is in a directory--even if you lack read or write privileges--you must have execute privilege.
 
Old 02-01-2006, 02:34 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Are your filesystems dirty and need manual intervention to be cleaned?

If the whole filesystem is read only, this is probably the case.

If so, boot into single user mode and run fsck.
 
Old 02-01-2006, 02:49 PM   #4
philgarcia
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks.

Looks worse than can be recovered. Fcsk won't run. Even booting from Knoppix CD fails to gain access to the volume. I'm punting. Rebuilding from array on up.

I feel very much so like the pig being taught to sing...


Phil
 
Old 02-01-2006, 02:54 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by philgarcia
Thanks.

Looks worse than can be recovered. Fcsk won't run. Even booting from Knoppix CD fails to gain access to the volume. I'm punting. Rebuilding from array on up.

I feel very much so like the pig being taught to sing...


Phil
Don't feel bad. Installing the operating system from scratch is the first skill that most of us got good at through repetition. It's always available if you can't figure out what went wrong. When you realize that you can always install everything from scratch then you aren't so reluctant to try things, and that's when the learning kicks into high gear.

Last edited by stress_junkie; 02-01-2006 at 02:56 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change the /var/spool/mail to any other location nuker Linux - Software 6 11-05-2005 02:20 AM
How to read /var/spool/mail/root? neo_in_matrix Linux - Newbie 1 04-04-2005 08:49 PM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 03:14 PM
cannot read/write to /var/www eddi Linux - Newbie 1 02-04-2004 03:08 PM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:14 PM.

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