I was installing fedora 20 with dual boot with windows 7, and after I resized the win partition, windows stopped booting. The system repair didn't work, as well as other options such as bootexec /rebuildbcd.
In fact, while doing those things, I made things worse and now neither grub nor the windows bootloader recognize any windows partitions.
So I downloaded testdisk and ran it from fedora, and I see this:
Code: Select all
TestDisk 7.0-WIP, Data Recovery Utility, August 2014
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63
Current partition structure:
Partition Start End Size in sectors
1 P Windows RE(store) 0 32 33 2349 223 50 37748736
2 * HPFS - NTFS 2349 223 51 2362 159 37 204800
Error: size boot_sector 918353505 > partition 906389504
Invalid NTFS or EXFAT boot
3 P HPFS - NTFS 2362 159 38 58782 194 36 906389504
3 P HPFS - NTFS 2362 159 38 58782 194 36 906389504
4 E extended 58782 194 37 60801 80 63 32428080
5 L Linux 58782 227 6 58846 161 3 1024000
X extended 58846 161 4 60801 80 15 31401984
6 L Linux LVM 58846 193 36 60801 80 15 31399936
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
>[Quick Search] [ Backup ]
Try to locate partition
2 * HPFS - NTFS 2349 223 51 2362 159 37 204800
Error: size boot_sector 918353505 > partition 906389504
Invalid NTFS or EXFAT boot
Apparently, when rezising the windows partition there was an error in which the boot sector says the partition is bigger than it really is, making it impossible to mount from linux and no bootloader can "see" the partition.
Any ideas on how to fix this?
I thought about resizing the partition to the number of sectors it shoud have according to the boot sector. Another option would be to tell the boot_sector the actual number of sectors that the partition has.
Of course, i have no idea on how to do either.
I would avoid formatting the partition by all means, given that there there is info that i would not like to loose.
Anyone had this issue before??
Thanks a lot!!