# Partition recognition primary and logical

### From CGSecurity

After "Deeper Search" partitions are often displayed as D (deleted). You can change the status of the selected partition using the left/right arrow key. The available statuses are Primary, * bootable, Logical, Deleted.

### Primary Partitions

The first primary partition of a harddrive starts at cylinder 0. Additional primary partitions are starting at the allocated cylinder and the second value at heads is 0.
Example:

    TestDisk 6.9-WIP, Data Recovery Utility, December 2007
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org

    Disk /dev/sdd - 36 GB / 34 GiB - CHS 4492 255 63
          Partition              Start        End    Size in sectors
    * HPFS - NTFS              0   1  1  2230 254 63   35840952 [Primary 1]
    P HPFS - NTFS           2231   0  1  4491 254 63   36322965 [Primary 2]

    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, 18 GB / 17 GiB

### Logical Partitions

The first logical partition of a harddrive starts at cylinder 1. Additional logical partitions are starting at the allocated cylinder and the second value at heads is 1.
Example:

    TestDisk 6.9-WIP, Data Recovery Utility, December 2007
    Christophe GRENIER <grenier@cgsecurity.org>
    http://www.cgsecurity.org

    Disk /dev/sdd - 36 GB / 34 GiB - CHS 4492 255 63
          Partition              Start        End    Size in sectors
    L HPFS - NTFS              1   1  1  2230 254 63   35840952 [Logical 1]
    L HPFS - NTFS           2231   1  1  4491 254 63   36322965 [Logical 2]

    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, 18 GB / 17 GiB

Return to TestDisk main page

Category: Data Recovery

##### Data Recovery

- TestDisk
- PhotoRec
- download