Use Testdisk to restore hard disk partitions in Linux
Source: Internet
Author: User
Article Title: Use Testdisk to restore hard disk partitions in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories 1. Check hard disk Conditions
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:
[Email = user @ ubuntu :~ $] User @ ubuntu :~ $ [/Email] 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
[Email = user @ ubuntu :~ $] User @ ubuntu :~ $ [/Email] sudo apt-get install testdisk
3. Run testdisk and fix it.
[Email = user @ ubuntu :~ $] User @ ubuntu :~ $ [/Email] 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.
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