Customer data recovery
If the customer's hard drive has a problem, or the operating system does not work, you can remove the hard drive and plug it into a installed CentOS, which is the name of the LVM volume group when installedDon't use the name VolGroup, because such a name often conflicts with the customer's default name.
After plugging in the hard drive, use lsblk to check the SDB of the customer's hard drive
└─VolGroup-lv_swap (dm-1) 253:1 0 4G 0 lvm [SWAP]
vgscan
vgchange -ay /dev/vg volume group name,
vgchange -ay /dev/VolGroup
mkdir /mnt/VolGroup-lv_root
mount /dev/sdb1 /mnt/sdb1
mount /dev/VolGroup/lv_root /mnt/VolGroup-lv_root
df -TH
If you don't see it, it proves that the mount was not successful.
After the mounting is successful, continue with the following operations:
/mnt/sdb1
Check if there are any files, and if not, it proves that the customer's kernel files have been deleted.
ll /mnt/sdb1
du -sh /mnt/sdb1
/mnt/VolGroup-lv_root
ll /mnt/VolGroup-lv_root
du -sh /mnt/VolGroup-lv_root
There is a Taoist note https://note.youdao.com/ynoteshare/index.html?id=297075bfbb306285d67265c61bf6de0a
Scan the QR code to push to your mobile phone access.
Copyright Notice: This article is written byTranBon BlogPublished, if you need to reprint, please indicate the source.
Link to this article:https://cb.tranbon.com/?id=285