Linux system /etc/fstab loss, mount LVM repair

  

When installing centos, the default disk partition will use LVM, so that the root directory is installed in LVM, if the file is lost, there is no pv* in the rescue state, Vg*, lv* to lvm program connection, you must use lvm this program to complete the response work. For example, test /etc/fstab file loss:

Using the system CD to boot, enter linux rescue, skip the network

sh-3.2#lvm pvdisplay #Check whether PVsh-3.2#lvm vgdisplay in the system #Check whether VGsh-3.2#lvm lvdisplay in the system #Check whether there is LV in the system, if there is LV, need The system establishes the relevant device-mappersh-3.2#lvm vgchange -aysh-3.2#mkdir /fstabsh_3.2#mount /dev/VolGroup00/LogVol00 /fstabsh_3.2#mv /fatab/etc/fstab.bak /fatab/etc/fstabsh_3. 2#reboot

Copyright © Windows knowledge All Rights Reserved