fstab recovery
 

This document discuss about the detail of the file system recovery in linux, when the system fstab file got corrupted.

         We would like to dedicate something to linux world.  We hope this is the very first initiative.  Hope, we will do a lot of things for linux.

When, the normal fsck command fails to recover the system in normal booting time, Just follow these steps.
 

Boot the system through any linux CD  through linux rescue mode

 

1)       Mount the disk, which is having the system partitions of the linux.

 

            mkdir /mnt/resc

mount  -o rw /dev/<disk label>  /mnt/resc

 

For example  I mounted the disk (/dev/hda1) to /mnt/resc with read write option.  So, I can able to access the etc folder of the system.

 

2)       Take the backup of the existing fstab.

 

cp /etc/fstab /etc/fstab.conf

 

3)       Edit the fstab and make the following entries in that file.

 

 vi /etc/fstab


LABEL=/              /                   ext3        defaults                      1 1
none                   /proc             proc       defaults                       0 0
none                   /dev/pts         devpts    gid=5,mode=620         0 0
none                   /dev/shm       tmpfs     defaults                       0 0
/dev/hda9            swap            swap      defaults                       0 0

                                    Ensure that you mentioned all of your data drives in this fstab file.


Save and reboot the system