How to recover data from the old system?

Development colleagues ruining the system, leading to many commands can not be used. Command can not be used are cp, mv, scp, mount, network incompetent use, not ping outside the network; recovery is extremely difficult, can only choose to re-install the system.
Although the system is broken, but into rescue mode discovery: the data inside is done, you can still come out. But when the network command and can not be used, how the inside of the data taken out of it?

This scenario is the best way to mount the entire system disk to other machines above, can be read directly.
The following operations are as follows :( operations) on the new machine
1, view system lv, vg; because the naming / directory used are the same, we first present the lv and vg rename, and avoid the old machine Chong Ming
lvrename / dev / CentOS / root lvroot
vgrename CentOS VolGroup65

Are you sure already in force;
[root @ localhost ~] # LVS
LV VG Attr Origin Pool LSize the Data Meta%%% Cpy the Move the Log Sync Convert For
lvroot VolGroup65 -wi-AO ---- 46.99g
swap VolGroup65 -wi-AO --- - 2.00 g
[the root @ localhost ~] # Vgs
VG of the Attr #PV #LV #SN VSize vfree
VolGroup65 WZ. 1 2 0 - N- <4.00m 49.00 g

2. Add the old machine's system disk to a new machine. Check to see that already exists
[root @ localhost ~] # LVS
LV VG Attr Origin Pool LSize the Data Meta%%% Cpy the Move the Log Sync Convert For
lvroot VolGroup65 -wi-AO ---- 46.99g
swap VolGroup65 -wi-AO ---- 2.00 g
the root CentOS -Wi-A ----- <8.00 g
the swap -Wi-A ----- 1.00 g of CentOS
by You have have new new mail in / var / spool / mail / the root
[the root @ localhost ~] # Vgs
#PV #LV #SN the Attr VSize VG of vfree
VolGroup65 WZ. 1 2 0 - N- <4.00m 49.00 g
CentOS WZ. 1 2 0 - N- <9.00 g 0

3, create a new directory, and the entire system is mounted to disk directory
[the root @ localhost ~] # mkdir / Venus
[the root @ localhost ~] # Mount / dev / CentOS / the root / Venus

4, enter / venus, view the data it

Guess you like

Origin blog.51cto.com/12131824/2403303