I have both windows 7 and ubuntu 12.04 (dual boot) on the same HD. I moved my windows 7 partition alightly to the "left" using GParted in order to solve a partition misalignment problem.

The operation was completed succesfully, but now when I choose windows7 from the grub menu, I get a a windows message saying "Windows failed to start. A recent hardware or software change might be the cause." It also says "the boot selection failed because a required device is inaccessible". It suggests that I boot from the windows installation DVD and choose "Repair your system".

When I choose Ubuntu from the grub menu it loads normally. I can also access the files on my NTFS (win7) partition. I don't think any information was lost there.

What would be the right way to fix the windows 7 boot problem? If I use the repair option from the windows DVD, is it likely to prevent me from loading ubuntu (and require fixing the grub menu)? Is there a risk it might harm with my linux partitions?