ext4 partitions lost after Windows 10 installation changed disk from MBR to GPT

Using TestDisk to repair the filesystem
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 https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
heiner
Posts: 1
Joined: 28 Nov 2020, 20:32

ext4 partitions lost after Windows 10 installation changed disk from MBR to GPT

#1 Post by heiner »

Hello,

I had a MBR hard drive with four ext4 primary partitions and a bootable Linux on partition 2. Then I wanted to install Windows 10 on the first partition, booted the Windows 10 installer in UEFI mode (instead of Legacy as before with Linux) and Windows proposed to change the disk to GPT partitioning. I accepted, assuming that the remaining ext4 partitions would still be usable afterwards. However, when booting Linux again, none of these ext4 partitions were mountable any longer. However, all partitions still appear in the partition table. Here is the output from Testdisk:

Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
Current partition structure:
Partition Start End Size in sectors
1 P EFI System 2048 206847 204800 [EFI system partition]
No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker
2 P MS Reserved 206848 239615 32768 [Microsoft reserved partition]
2 P MS Reserved 206848 239615 32768 [Microsoft reserved partition]
3 P MS Data 239616 1463825444 1463585829 [Basic data partition]
4 P Windows Recovery Env 1463826432 1464877055 1050624
5 P EFI System 1464879104 2929721343 1464842240
6 P Linux filesys. data 2929721344 3418376191 488654848
7 P Linux filesys. data 3418376192 3907028991 488652800

Partitons 1-5 were created by Windows instead of the first former ext4 partition. Partitions 5-7 are the former ext4 primary partitions 2-4.

When I try to list files on partitions 5-7, Testdisk states "Can't open filesystem. Filesystem seems damaged.". I also does not find any other/old partitions or superblocks for the existing ones.

Does anybody have an idea, what Windows does with the old partitions during a conversion of a drive to GPT? I can't imagine the partitions are erased and they are also still shown in the partition table. But the file system seems to be corrupt.

Best regards,
Heiner

recuperation
Posts: 2729
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: ext4 partitions lost after Windows 10 installation changed disk from MBR to GPT

#2 Post by recuperation »

I'm sorry I don't have any idea. I don't use Windows 10.

Locked