How to copy data in a linux system crash

Source: Internet
Author: User

How to copy data in a linux system crash

Scenario introduction:

The root permission is used to delete a Libpthread. so.. no way. The operating system crashes after the restart. there is very important data in it, so you have to find a way to copy it.

The operating system is ubuntu12.04.

Recovery Process:

The first thing that comes to mind is attaching this disk to another linux system. in this way, you can see that the content on this system disk is only a/dev/sdb disk, and there is no partition in it. of course, mount the hard disk with mount, and sometimes specify the file type. after mounting the file system, you can see that all the file systems are in the folder, but when you look for it in the folder, the data is no longer there, only folders. at that time, the whole hard disk was/dev/sdb, and the hard disk was divided into many areas. in the system zone, it is the entire file system, and the data may be in/dev/sdb1 or/dev/sdb2. In this way, linux mounts the data in the Mount mode, mount the data to the corresponding file system. In this case, the data is mounted to a folder. the reason why the data is not visible is that these files are in other partitions, such as mount/dev/sdb5/mnt or other partitions. if the disk fails to be mounted, you must specify the file type and check the file type. Note: Do not blindly partition the hard disk before finding a solution, this will damage data and use the cp command. Do not use mv or rm to use other restoration software. Pay special attention to this. Generally, the software is not actually used in Linux.

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.