Details about Linux recovery

Source: Internet
Author: User
Tags testdisk

When we learn about Linux, we know that Linux is a free-to-use and freely-spread Unix-like operating system. During the learning process, we will encounter a Linux operating system hard disk partition table or data loss, it is a headache. Fortunately, a considerable number of tools are available to restore data.

Experience testdisk, restore a partition table on the hard disk, and retrieve important data. The entire process took less than 10 minutes and does not require system restart (requires a specific hardware environment ).

Does partition damage the partition table on the hard disk ?). Colleagues use easy recovery: in Advanced recovery mode, partition tables cannot be scanned, so data cannot be restored. In RAW recovery mode, data is found and recovered, but cannot be used.

Get the hard disk, connect it to the mobile hard disk box (it is recommended that computer maintenance personnel keep it, hard disk maintenance is commonly used), and connect it to my ubuntu system.

1. Check hard disk status

Connect to the mobile hard disk, turn on the power of the mobile hard disk, the hard disk turns stably, no abnormal sound. Therefore, it is determined that the hardware works normally. No mobile disk is found in nautilus. The command line checks whether the device is recognized by the system:

User @ ubuntu :~ $ Ls/dev/sd *

/Dev/sda/dev/sda1

The results show that the hard disk and primary partition are found, but the extended partition is not recognized.

2. Install testdisk

User @ ubuntu :~ $ Sudo apt-get install testdisk

3. Run testdisk and fix it.

User @ ubuntu :~ $ Sudo testdisk

4. Reconnect the hard disk and check

The reason why the system is not restarted is mainly because the mobile hard disk box is used. If you use IDE directly, restart the computer. After you reconnect the mobile hard disk, you can view the three extended partitions in nautilus and perform data operations. In this way, the hard disk data recovery and Partition Table recovery of the Linux operating system are completed.

  1. Describes how to install a wireless NIC Driver in Linux.
  2. Wine successfully runs Bitcomet in the Linux operating system
  3. Analysis of Open-source Cisco router virtual machines in Linux
  4. Basic Linux operating system knowledge
  5. Learning Manual: poll and select 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.