how to Recover /etc/fstab file

Recover /etc/fstab file


If you have deleted the /etc/fstab file it is possible to recover it in the following way:
# cat /proc/mounts > /etc/fstab
# chmod 644 /etc/fstab


The "proc" filesystem, which is /proc/mounts, is used to handle sytem configuration parameters, it is a virtual filesystem.