Save the data in the file. vmdk of the virtual machine that cannot be started, and the virtual machine. vmdk
FROM: http://blog.csdn.net/npy_lp/article/details/7686583
Almost all software engineers engaged in Linux development have used virtual machine software, such as VMware workstation. Generally, virtual machine software is run in Microsoft's operating system, and the Linux operating system (such as Ubuntu) it runs in Virtual Machine software, so that two different types of operating systems can be used on one host simultaneously, which is very convenient.
The operating system running on the virtual machine is saved as a. vmdk file.
In practice, the operating system running on a virtual machine often crashes and cannot be started any more. As a result, the results of a few or even dozens of days of work have vanished.
This article describes how to save important data in an operating system that cannot be started. The basic principle is to regard the Virtual Machine file. vmdk of an operating system that cannot be started as a disk of another operating system that can be started.
The procedure is as follows:
(1) Open the operating system that can run normally
(2) set the Virtual Machine file of the operating system that cannot be started to a disk of the operating system that can run normally.
(3) Start an operating system that can run normally
(4) log on to the operating system and mount the new disk to a directory in the system.
[Cpp]View plain copy
- $ Ls-l/dev/sd *
- Brw-rw ---- 1 root disk 8, 0 2012-06-23 19: 16/dev/sda
- Brw-rw ---- 1 root disk 8, 1 2012-06-23 19: 16/dev/sda1
- Brw-rw ---- 1 root disk 8, 2 2012-06-23 19: 16/dev/sda2
- Brw-rw ---- 1 root disk 8, 5 2012-06-23 19: 16/dev/sda5
- Brw-rw ---- 1 root disk 8, 16 2012-06-23/dev/sdb // sdb1, sdb2, and sdb5 are new disk Partitions
- Brw-rw ---- 1 root disk 8, 17 2012-06-23 19: 16/dev/sdb1
- Brw-rw ---- 1 root disk 8, 18 2012-06-23 19: 16/dev/sdb2
- Brw-rw ---- 1 root disk 8, 21 2012-06-23 19: 16/dev/sdb5
- $ Mkdir $ HOME/mnt // create a mount point
- $ Sudo mount/dev/sdb1 $ HOME/mnt // mount sdb1
- // View. All files of the operating system that cannot be started are in the $ HOME/mnt directory.
- $ Cd mnt/
- $ Ls
-
Top
-
0
-
Step on