Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Mandriva Linux Help > Boot Problem - Error: read only filesystem

Forgot Password?
 Mandriva Linux Help   For help and discussion about Mandriva (formally Mandrake) Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-30-2005   #1 (permalink)
Just Joined!
 
Join Date: Aug 2005
Location: Helsinki, Finland
Posts: 9
Boot Problem - Error: read only filesystem

Something unfortunate happened to me as a guest unavare of what he was doing shutted down my server from the powerbutton (he tought he was starting it up).

Well, now when i start the server all processes end up with [ FAILED ], and as error message i get a complaining that the filesystem is read only. So it cant delete or create any runfiles...

I manage to login if i choose the failsafe option from the bootloader, and thus am able to do some limited things.

I ran the e2fsck with -pf on all partitions but that didnt help.

Does anyone have a clue what i could do except reinstalling the system.
jaakko777 is offline  



Reply With Quote
Old 08-30-2005   #2 (permalink)
Just Joined!
 
Join Date: Aug 2005
Location: Helsinki, Finland
Posts: 9
More details to help you diagnose my problem.

Running fdisk results:
Code:
[root@(none) /]# fdisk -l
cannot open /proc/partitions
jaakko777 is offline   Reply With Quote
Old 08-30-2005   #3 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,696
So e2fsck found no problem? And you ran it on the / filesystem?

What happens if you try to mount /?
anomie is offline   Reply With Quote
Old 08-30-2005   #4 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
If you want to skip the long bootup process, a quick way into a failsafe is to add:
Code:
init=/bin/bash
To your boot options, which will yield a root console. From there:
Code:
mount -no remount,rw /
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 08-30-2005   #5 (permalink)
Just Joined!
 
Join Date: Aug 2005
Location: Helsinki, Finland
Posts: 9
Quote:
Originally Posted by anomie
So e2fsck found no problem? And you ran it on the / filesystem?
I ran,
Code:
e2fsck -pf /dev/hda1
e2fsck -pf /dev/hda6
(thats all of my partitions)
Quote:
Originally Posted by anomie
What happens if you try to mount /?
It says:
Code:
mount: /dev/hda1 already mounted or / busy
mount: according to mtab, /dev/ide/host0/bus0/target0/lun0/part1 is alredy mounted on /
Quote:
Originally Posted by lakerdonald
If you want to skip the long bootup process, a quick way into a failsafe is to add:
Code:
init=/bin/bash
To your boot options, which will yield a root console. From there:
Code:
mount -no remount,rw /
Thanks for the advice, i will try this even though i didnt really understand what it will do (i guess ill find out)...
jaakko777 is offline   Reply With Quote
Old 08-30-2005   #6 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
You'll need to:
Code:
umount /dev/...
before running fsck.

edit:
heh just thought about that and realized that you're not on a livecd so that wouldn't work
heh
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 08-30-2005   #7 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,696
You need to get to single-user mode before running the filesystem check on /.

Try
Code:
init 1
as root (after booting).
anomie is offline   Reply With Quote
Old 08-30-2005   #8 (permalink)
Just Joined!
 
Join Date: Aug 2005
Location: Helsinki, Finland
Posts: 9
Ok so i do after boot
Code:
init 1
umount /
should i then do
Code:
e2fsck -pf /dev/hda1
(or)
e2fsck -pf /
jaakko777 is offline   Reply With Quote
Old 08-30-2005   #9 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,696
Well, assuming /dev/hda1 is where you mount /, then run it on the device itself - /dev/hda1. (At times when the file system check program can get to /etc/fstab you can use either one.)
anomie is offline   Reply With Quote
Old 08-30-2005   #10 (permalink)
Just Joined!
 
Join Date: Aug 2005
Location: Helsinki, Finland
Posts: 9
Ok i did that now and i get a clean report from all partitions now as well.

But the error persists, upon boot (and shutdown, which i did forget to mention earlier) anything the loader does is responded by either;

a) IOError [Errno 30] Read only filesystem
b) [Errno 30] Read only filesystem
c) Read only filesystem

accompanied with the name of some file or pid that it tried to operate on.
jaakko777 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:37 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1