Originally Posted by
oldfred
It usually is not gparted, but Windows (or third party Windows partition tools) and sometimes testdisk that cannot count and make extended too large.
Fixparts - Repair broken partition tables (not overlapping issues) & delete Stray gpt data from MBR drives
http://ubuntuforums.org/showthread.php?t=1705325
http://www.rodsbooks.com/fixparts/
First backup partition table and copy to another device.
sudo sfdisk -d /dev/sda > parts_sda.txt
Here's the output of the parts.txt
Code:
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size=104867840, Id=83, bootable
/dev/sda2 : start=104869888, size= 204800, Id= 7
/dev/sda3 : start=105074688, size= 51075072, Id= 7
/dev/sda4 : start=156151800, size=469001610, Id= f
/dev/sda5 : start=156151808, size= 13004784, Id=82
/dev/sda6 : start=169158656, size=125833216, Id= 7
/dev/sda7 : start=294993920, size=176044025, Id= 7
/dev/sda8 : start=471041928, size=154079225, Id= 7
I already copied that file to a USB disk.
What to do next? Is it safe to use fixparts?
I tried fixparts /dev/sda and type p, here's the output:
Code:
FixParts 0.8.4
Loading MBR data from /dev/sda
MBR command (? for help): p
** NOTE: Partition numbers do NOT indicate final primary/logical status,
** unlike in most MBR partitioning tools!
** Extended partitions are not displayed, but will be generated as required.
Disk size is 625142448 sectors (298.1 GiB)
MBR disk identifier: 0xB30AB30A
MBR partitions:
Can Be Can Be
Number Boot Start Sector End Sector Status Logical Primary Code
1 * 2048 104869887 primary Y 0x83
2 104869888 105074687 primary Y 0x07
3 105074688 156149759 primary Y 0x07
5 156151808 169156591 logical Y 0x82
6 169158656 294991871 logical Y 0x07
7 294993920 471037944 logical Y 0x07
8 471041928 625121152 logical Y 0x07
The extended partition was not listed, but will it be fixed???
Bookmarks