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 <grenier@cgsecurity.org>
http://www.cgsecurity.org
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
root@partedmagic:~#
http://imgur.com/00CNwNg
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
root@partedmagic:~#