I'm trying to put four operating systems on my laptop and have extended partitions to make room. I've also installed Windows XP which looks like it damaged my filesystem. There are two problems with my filesystem that I wonder if testdisk can fix.

1) The extended partition seems to extend beyond the size of the disk.
2) There seem to be skipped sectors, in more than one place it looks as if the first sector of one partition is not directly after the last sector of the previous sector. I'd like to recover them if possible.

I'd need some infos from Analyse (it's your current partition table) Quick Search and if no partition is found from Deeper Search also.
If a partition is found, you can check it and press p to have a try to list data.
TestDisk creates a logfile in your testdisk folder.
You can open it and copy and paste the content here.

I ended up manually adjusting the size of the extended partition so that it is one more than the end of the last logical partition. I used a different editor and the calculator but followed these linux instructions.