Save the data in the file. vmdk of the virtual machine that cannot be started, and the virtual machine. vmdk

Source: Internet
Author: User

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
  1. $ Ls-l/dev/sd *
  2. Brw-rw ---- 1 root disk 8, 0 2012-06-23 19: 16/dev/sda
  3. Brw-rw ---- 1 root disk 8, 1 2012-06-23 19: 16/dev/sda1
  4. Brw-rw ---- 1 root disk 8, 2 2012-06-23 19: 16/dev/sda2
  5. Brw-rw ---- 1 root disk 8, 5 2012-06-23 19: 16/dev/sda5
  6. Brw-rw ---- 1 root disk 8, 16 2012-06-23/dev/sdb // sdb1, sdb2, and sdb5 are new disk Partitions
  7. Brw-rw ---- 1 root disk 8, 17 2012-06-23 19: 16/dev/sdb1
  8. Brw-rw ---- 1 root disk 8, 18 2012-06-23 19: 16/dev/sdb2
  9. Brw-rw ---- 1 root disk 8, 21 2012-06-23 19: 16/dev/sdb5
  10. $ Mkdir $ HOME/mnt // create a mount point
  11. $ Sudo mount/dev/sdb1 $ HOME/mnt // mount sdb1
  12. // View. All files of the operating system that cannot be started are in the $ HOME/mnt directory.
  13. $ Cd mnt/
  14. $ Ls

 

 

 

 
Top
0
Step on

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.