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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-30-2011, 11:55 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2011
Posts: 5
Rep: 
|
FC4 refuses to mount file systems - how to fix?
I have been running an FC4 server for a while, when I noticed the / (root) partition becoming full. I ssh-ed the server, deleted a few /var/log files, bringing it down to 98%. I then rebooted and since then the system will boot but will refuse to mount anything.
(cat /etc/fstab produces an error message notifying of not being able to run fstab-sync.)
During boot, the only error message I have been able to spot is this:
Quote:
audit(1322658994.360:2) avc: denied { read } for pid=363 comm="hotplug" name="mtab" dev=dm-0 ino=1146996 scontext=system_u:system_r:hotplug_t tcontext=system_u:object_r:file_t tclass=file
audit(1322658994.360:3) avc: denied { getattr } for pid=355 comm="hotplug" name="mtab" dev=dm-0 ino=1146996 scontext=system_u:system_r:hotplug_t tcontext=system_u:object_r:file_t tclass=file
|
Also, in "quiet" boot, I get at some point:
Quote:
|
Can't find /dev/pts in /etc/fstab or /etc/mtab
|
After which there are lots of failure to access all kind of system resource due to filesystem being read-only.
The bottom line is that, despite being able to boot the system, I am unable to fix anything because nothing is mounted and I cannot even check what went wrong, why this is happening, and what to write were in order to fix this.
Any help, tip, insight, idea, instructions would be greatly appreciated.
Thanks.
Last edited by lifemustgoon; 11-30-2011 at 11:56 AM.
|
|
|
|
11-30-2011, 12:02 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,695
|
fedora? on a server?? why?? and an obsolete version at that.... why??? That distro is so old, just disable SELinux (edit /etc/selinux/config) and move on.
|
|
|
|
11-30-2011, 12:23 PM
|
#3
|
|
LQ Newbie
Registered: Nov 2011
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
fedora? on a server?? why?? and an obsolete version at that.... why???
|
I am asking the same question, too. I inherited it. I intend to upgrade it to the latest CentOS, but until I have the resources to do so safely, I need to revive this system, for day-to-day operation.
Quote:
Originally Posted by acid_kewpie
just disable SELinux (edit /etc/selinux/config) and move on.
|
Thank you for this tip. I will try this shortly and report back how it went.
|
|
|
|
11-30-2011, 12:45 PM
|
#4
|
|
LQ Newbie
Registered: Nov 2011
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
just disable SELinux (edit /etc/selinux/config) and move on.
|
OK, I just tried to edit /etc/selinux/config (from "permissive" to "disabled") but the system is in such bad situation, it won't let me to write the file back because is everything (that managed to be mounted) is mounted as a read-only filesystem.
I could use a SysRescueCD to mount that /etc writable, but given that SELinux was set to "permissive" (i.e. warnings only), is that really the solution to the problem?
|
|
|
|
11-30-2011, 12:54 PM
|
#5
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,695
|
hmm, ok I guess i wasn't thinking wide enough...
So you can't cat fstab? what about under the rescue CD?
|
|
|
|
11-30-2011, 01:16 PM
|
#6
|
|
LQ Newbie
Registered: Nov 2011
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
So you can't cat fstab?
|
Correct. It is empty, except for a single comment line saying that "This file is edited by fstab-sync - see 'man fstab-sync' for details"
Quote:
Originally Posted by acid_kewpie
what about under the rescue CD?
|
Under the rescue CD it comes up empty (and so does /etc/mtab).
I managed to use SysRescueCD to completely disable SELinux (via /etc/selinux/config) but the problem persists.
It seems that the core problem is being unable to mount the / filesystem writeable, and as a result /etc/fstab and/or /etc/mtab cannot be generated by the system, and then there is a chain-reaction in which everything is mounted read-only.
The question now is what causes this?
If I can fix the root cause, the system will proceed normally on itself.
But what is that root cause?
What makes a system decide to mount read-only?
How did that /etc/fstab (or /etc/mtab) disappear?
Last edited by lifemustgoon; 11-30-2011 at 01:30 PM.
|
|
|
|
11-30-2011, 01:41 PM
|
#7
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,695
|
well I'd look at having a stab at writing the fstab file again manually, shouldn't be too hard to get the system usable again. Not had much experience with fstab-sync, long gone now... I'd probably look to at least make a backup copy of your new fstab in case it does get pwned, maybe uninstall / delete the fstab-sync binary if that's too involved.
|
|
|
|
11-30-2011, 03:56 PM
|
#8
|
|
LQ Newbie
Registered: Nov 2011
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
well I'd look at having a stab at writing the fstab file again manually, shouldn't be too hard to get the system usable again.
|
That did the trick. (fortunately, I had a backup copy of the working fstab lying around and all I had to do is copy it over)
Now the big mystery is why, and how, this happened.
I will probably never know because this incident convinced me that I should perform the upgrade sooner rather than later. The problem is that the guy who passed this system on to me, installed zillion services that make that server tick (wordpress, sitebar, cups, backup and other daemons), it would take me forever to re-build that functionality on a newly installed server.
|
|
|
|
11-30-2011, 03:58 PM
|
#9
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,695
|
well unless someone managed to nuke it manually, a file system corruption could be to blame. anything in lost+found?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:56 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|