Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-13-2007, 03:30 PM   #1
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 193

Rep: Reputation: 16
Repairing damaged linux system

Hello people,

I have installed red hat linux 9.0 for learning purpose on separate hard drive that is used mainly for testing.

I wanted to learn how to repair damaged linux system and decided to make a small test.
I have copied fstab file from /etc directory to users' home directory, and then I deleted fstab from /etc. As expected, system couldn't boot. I could only enter terminal mode, but I have found out that user folder doesn't exist in /home folder anymore. Never mind I had written all contents of fstab to the paper earlier and then I tried create new file fstab in /etc folder with touch command but then I got error message that device id mounted as read only, but I couldn't mount it in rw mode.
That is pretty much stupid, I need to make changes on system in order to repair it, but at the same time, system is read only....
What to do in this case?
I don't want to install again from CDs, I want to fix this error...
Also, I created boot floppy disk, but couldn't do anything with it.

How this could be fixed without reinstallation?

Thanks in advance
Old 10-13-2007, 04:00 PM   #2
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Boot a liveCD, mount the filesystems, and modify the files you need in order to make the system bootable again.

Old 10-14-2007, 11:59 AM   #3
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
Try this command:

mount -n -o remount,rw /
Old 10-14-2007, 12:18 PM   #4
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Originally Posted by serafean View Post
Boot a liveCD, mount the filesystems, and modify the files you need in order to make the system bootable again.

This is exactly right. This is an easy fix.


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
fsck damaged my file system Dr_Death_UAE Linux - General 10 02-03-2010 08:21 AM
repairing ntfs file system almon Linux - Newbie 2 06-27-2007 07:46 AM
I cannot do fsck. Why is that? Repairing Linux ext2 or ext3 file system LinuxCrazy Linux - General 5 06-18-2007 04:01 PM
LXer: Repairing ReiserFS file system with reiserfsck LXer Syndicated Linux News 0 07-15-2006 01:03 AM
Root partition damaged, system will not boot- How to repair? applewax Linux - General 1 05-27-2005 11:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration