No partitions found - need to recreate partition table

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read
Posts: 1
Joined: 23 Feb 2017, 11:29

No partitions found - need to recreate partition table

#1 Post by morgana »

Hi All,

I accidentally deleted the boot partition and now in boot error state.

I have used testdisk to find the partition but somehow it only shows my USB drive:

Code: Select all

Christophe GRENIER <>

Disk /dev/sda - 7761 MB / 7401 MiB - CHS 1022 239 62
     Partition               Start        End    Size in sectors
>  EFI System                    40     409639     409600 [EFI]
   EFI System                    46     409645     409600 [EFI]
   MS Data                    38294      44291       5998 [GParted-EFI]
   MS Data                   411648   15157247   14745600 [CHELLA]
   MS Data                   411654   15157253   14745600 [CHELLA]
   MS Data                   445320     452701       7382 [OCS-EFI]
   MS Data                  8056982    8059861       2880 [EFISECTOR]
   MS Data                  8059862    8062741       2880 [EFISECTOR]
   MS Data                 10329194   10335191       5998 [GParted-EFI]
   MS Data                 10888310   10894307       5998 [GParted-EFI]

Structure: Ok.  Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
                P=Primary  D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
     Enter: to continue
root@partedmagic:~# ^C209 MB / 200 MiB
Also in Gparted it only shows my USB i think because the size is only 7,23 GiB (unallocated).

I think i need to recreate partition table to restore master boot but how do i go about fixin that?

This is the output of fdisk:

Code: Select all

root@partedmagic:~# fdisk -l

Disk /dev/sda: 7761 MB, 7761035264 bytes, 15158272 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
Any ideas how te recreate the partition table or maybe i'm using different testdisk settings?

Sponsored links

User avatar
Site Admin
Posts: 5304
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France

Re: No partitions found - need to recreate partition table

#2 Post by cgrenier »

If /dev/sda is your USB key and not your HD, I have no solution until your physical disk is listed.