LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-13-2007, 04:30 PM   #1
Micik
Member
 
Registered: Dec 2004
Distribution: open suse
Posts: 137

Rep: Reputation: 15
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, 05:00 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 903
Blog Entries: 13

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

Serafean
 
Old 10-14-2007, 12:59 PM   #3
LasseW
Member
 
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, 01:18 PM   #4
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
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.

Serafean
This is exactly right. This is an easy fix.
 
  


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


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration