This is little long but please bear with me. So I have 3 primary partitions and two logical partition under an extended partition. The first two primary partition sda1 & sda2 are root and home of my xubuntu. So I wanted to dual boot it with win7 and hence installed it in the third primary partition sda3. While updating grub through live cd I saw one logical partition showed up as unallocated. I used testdisk to recover the partition. I was able to recover the said partition but now my root & home show up as unallocated. I can't boot into Ubuntu as it is showing grub rescue error. I would like to recover my Linux partitions but at the least I hope to recover my home partition data. Can someone help me here?
Tldr: installed win 7 after Ubuntu;windows corrupted one partition and in fixing that partition my Linux partitions became unallocated. How to recover data from home?
Edit: thanks, was able to recover home partition via testdisk but when I try to set the partition as it was before windows I am unable to. Will update after more tryouts.