LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Repairing damaged linux system (https://www.linuxquestions.org/questions/linux-newbie-8/repairing-damaged-linux-system-591555/)

Micik 10-13-2007 03:30 PM

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

serafean 10-13-2007 04:00 PM

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

Serafean

LasseW 10-14-2007 11:59 AM

Try this command:

mount -n -o remount,rw /

ray_80 10-14-2007 12:18 PM

Quote:

Originally Posted by serafean (Post 2923214)
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.


All times are GMT -5. The time now is 07:33 AM.