Linux partition repair software Testdisk

Source: Internet
Author: User
Article Title: Linux partition repair software Testdisk. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

In linux, the super handsome Partition Table repair software. I have used more than n Partition Table repair software for windows. I didn't expect such a convenient repair software in linux to be fast .. I never saw this partition table repair software before .....

Well, this software is called testdisk. It's very handsome ..

If you are using a repair disc, download the software to your computer.

# Sudo apt-get install testdisk

Sudo testdisk first

1. Select Create for analysis.

Use arrow keys to select, then press Enter key:
[Create] Create a new log file
[Append] Append information to log file
[No Log] Don't record anything

2. Select the hard disk to be repaired in testdisk, and press Enter.

Select a media (use Arrow keys, then press Enter ):
Disk/dev/sda-160 GB/149 GiB-ata hitachi HTS54251
Disk/dev/sdb-3272 MB/3121 MiB-SM324BC USB DISK


3. We chose the testdisk Repair Platform from Intel, so we chose it.

Please select the partition table type, press Enter when done.
[Intel] Intel/PC partition
[Efi gpt] efi gpt partition map (Mac i386, some x86_64 ...)
[Mac] Apple partition map
[None] Non partitioned media
[Sun] Sun Solaris partition
[XBox] XBox partition
[Return] Return to disk selection

4. Use testdisk for analysis. Now select Analyse for analysis.

[Analyse] Analyse current partition structure and search for lost partitions
[Advanced] Filesystem Utils
[Geometry] Change disk geometry
[Options] Modify options
[MBR Code] Write TestDisk MBR code to first sector
[Delete] Delete all data in the partition table
[Quit] Return to disk selection

5. If you can see it, basically all the partitions are out, just press Enter. By default, press enter to quickly scan.

* = Primary bootable P = Primary L = Logical E = Extended D = Deleted
[Quick Search] [Backup]

Then, because vista is useless, select n.

Shocould TestDisk search for partition created under Vista? [Y/N] (answer Yes if
Unsure)
N

6. Go to and see your table in the table area.

Disk/dev/sda-160 GB/149 GiB-CHS 19457 255 63
Partition Start End Size in sectors
* HPFS-NTFS 0 1 1 1567 254 63 25189857
L FAT32 LBA 1568 2 1 5097 254 63 56709324 [no name]
L Linux Swap 5098 1 1 5221 254 63 1991997
L Linux 5222 1 1 7298 254 63 33366942
L Linux 7299 1 1 19456 254 63 195318207

Structure: OK. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
* = Primary bootable P = Primary L = Logical E = Extended D = Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
NTFS, 12 GB/12 GiB


You can also press p to see if the file is what you want, and the following shows the file system size and system.

When I got to this location, I basically found out that there is no need to modify anything. If it is different from your partition, you may also need to use the Deeper search function. I successfully fixed it, So I directly wrote it to the partition table by using write to fix it.

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.