CentOS delete fstab recovery
CD need to enter rescue mode
CentOS6 how to enter rescue mode:https://blog.51cto.com/14012942/2433449
First, acquire CentOS6 surgery
Since this CentOS6 use of logical volumes, so go after the first activation of the logical volume, you do not understand Baidu "rescue mode Logical Volume"
vgchange -ay
Then view lvs, lvdisplay
So I know my root partition device in / dev / VolGroup / lv_root
My swap partition / dev / VolGroup / lv_swap
You can then mount the root next to a temporary directory
Then you can cut the root of the chroot
You can then manually write fstab file on it
Relatively simple, fstab mistakenly deleted so come on ,, can refer to this article Big Brother:
https://blog.51cto.com/11886307/2377515
CentOS7 mistakenly deleted fstab
Repetitive operations do not write
The same reference: https://blog.51cto.com/11886307/2377515