After trying to access my Linux partition from Windows operating system, my Linux partition is now truncated to a size 1K byte and I am no longer able to mount that partition.
"fdisk" shows the size of my partition 244.1G which is correct, while "testdisk" and "lsblk" show 1K byte. My corrupted partition is sdd3.
I tried to fix the issue using the fsck command without any success:
~$ sudo fsck.ext4 -f /dev/sdd3
e2fsck 1.45.5 (07-Jan-2020)
fsck.ext4: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdd3
Could this be a zero-length partition?
Here is the output of the "fdisk":
Disk /dev/sdd: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EZRZ-00Z
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00001144
Device Boot Start End Sectors Size Id Type
/dev/sdd1 2048 1638402047 1638400000 781.3G 7 HPFS/NTFS/exFAT
/dev/sdd2 1638402048 2150402047 512000000 244.1G 7 HPFS/NTFS/exFAT
/dev/sdd3 2150402048 2662402047 512000000 244.1G 85 Linux extended
/dev/sdd4 2662402048 3907028991 1244626944 593.5G 7 HPFS/NTFS/exFAT
and here is the output of "lsblk":
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
└─sda1 8:1 0 3.7T 0 part /media/ali/Drive I
sdd 8:48 0 1.8T 0 disk
├─sdd1 8:49 0 781.3G 0 part /media/ali/Drive F
├─sdd2 8:50 0 244.1G 0 part /media/ali/BE0AE9C60AE97C31
├─sdd3 8:51 0 1K 0 part
└─sdd4 8:52 0 593.5G 0 part /media/ali/Drive E
It seems that the data on my partition is intact since I'm able to access all my files using magic recovery. when accessing my partition using magic recovery even all my folders' structures are preserved.
any idea to fix the issue is appreciated.