PDA

View Full Version : Repair file system


beejan
23rd February 2007, 11:07 PM
In my system loaded with fc6 and was working fine. But for an experimental analysis I changed /etc/fstab file completely and started rebooting the system. Now while rebooting the system it is not coming up but stoping at repair file system. I have my original fstab file /etc but if tryinmg to hange from thye repair mode, it is showing error message as red only file. What is the option for restoring my original fstab file.

jbkt23
23rd February 2007, 11:23 PM
Are you using a rescue disk to boot?

jbkt23

Iron_Mike
24th February 2007, 01:07 AM
You might be able to repair it using fsck. Boot to runlevel 1 and type:

umount /
umount /boot
fsck -f -p

With this you will unmount the "root" filesystem, and unmount the "/boot" filesystem and then run the filesystem check program on files and automatically fix option. However if the filesystem is really borked, you might might have to run with just the fsck -p option and manually answer about fixing the inodes, etc.....

daverj
24th February 2007, 01:11 AM
or, since you have the original /etc/fstab, you can boot up on rescue disk and restore the file.

Iron_Mike
24th February 2007, 02:20 AM
And that might work if the fstab pointed to the wrong filesystem, but if the filesystem is corrupted your going to have to run fsck or reinstall

beejan
24th February 2007, 03:28 AM
Yes. I think so

beejan
24th February 2007, 03:30 AM
[For fedora 6, from where I will get iso image for rescue disk

Casselberry - Berdyansk - High Peak Travel Photos on Instagram