Windows 7 + ubuntu9.10 Dual Boot, this has too many posts, but this time the situation is more complicated.
Install Windows 7 first and Ubuntu later. There is no problem. Grub Dual Boot.
Later, because of one situation, we had to install XP and made Windows 7 a ghost. After installing Windows XP, grub was useless, so we fixed it with the Ubuntu boot disk.
Although the Startup menu is available, Ubuntu is only available. When you enter windows, the system prompts error: cannot get C/h/S values.
Go to the grub command mode, find -- Set-root/bootmgrbm
Tip: Unknown command find. Dizzy. The find command cannot be found.
I had to go to Ubuntu, update-grub, but I couldn't update grub. cfg, but I only updated menu. lst. I don't know how this command works. In grub2 under 9.10
Grub. cfg is used, and menu. lst is not used at all. However, update-grub only updates menu. lst instead of grub. cfg.
Check the uuid of the Windows partition in grub. cfg, which is different from that listed in the current system.
In grub. cfg, xxxxxx is used.
Use LS-La/dev/Disk/by-UUID to list windows partition UUID which is actually yyyyyy. copy it and manually replace it with grub. cfg. Reboot
OK. You can proceed to XP smoothly.
After XP is used up, go back to win7 ghost. After restarting, you will find that the windows partition is not found. If you know the problem, re-ls-La/dev/Disk/by-UUID.
The Windows partition becomes the original XXXXX, and grub. cfg. OK is modified again.
It turns out that every time you rewrite the Windows partition bootmgr, the uuid will change. The UUID of the original windows partition cannot be found from grub.
Manually ls to modify the uuid in grub. cfg.