Error: cannot get C/h/S values

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.