FedoraGrub2 installation error and Solution

Source: Internet
Author: User
Tags gparted
Problem description and Related explanations Fedora16 uses Grub2 by default. During installation, the system prompts that the data cannot be written to MBR. After the system is started, the following error is prompted when trying to use the command grub2-install command to install: grub-setup: warn: Thismsdos-stylepartitionlabelhasnopost-MBRgap; embeddingwon 'tbepossible! Grub-setup:

Problem description and Related explanations

Fedora 16 uses Grub2 by default. During installation, the system prompts that the data cannot be written to MBR. The following error is prompted when you try to install with the command grub2-install command after starting the system:

grub-setup: warn: This msdos-style partition label has no post-MBR gap; embedding won't be possible!

grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists.
However, blocklists are UNRELIABLE and its use is discouraged.grub-setup: error: If you really want blocklists, use --force.

This problem also exists in other systems during online search:

Https://bbs.archlinux.org/viewtopic.php? Pid = 574510 # p574510

Someone on the Forum described the problem as follows:

Https://bbs.archlinux.org/viewtopic.php? Pid = 581760 # p581760

Then, find the following description of Grub on the Arch wiki page:

MBR is a dedicated msdos partition command.

Generally, in many MBR (or msdos disk label) partition systems, as long as the DOS compatibility slice alignment problem can be met, the 32KiB white space (after the MBR 512 byte region, before the first partition ). However, to place grub2 core. img, 1 MiB or 2 MiB is recommended. We recommend that you use a partition tool that supports 1MiB partition alignment to obtain the required space and address other non-512-byte clusters (not related to embedding core. img ).

Solution

The Windows XP system is installed on the first primary partition of the disk. If you don't need it now, you can directly Delete the first partition and create a new partition using Gparted (2 MB space is reserved by default, but you can choose to install grub2 before or after the new partition), then you can use the grub2-install/dev/sda command to install grub2 normally. However, Gparted cannot be formatted as NTFS (this option is available, but an error occurs during the application, that is, LiveCD cannot be started), so you have to use a USB flash drive to start PE again, format with WinPM (only one unformatted partition is displayed when WinPM is opened, and no blank 2 Mb is displayed ).

Although I did not try it, according to the above explanation, if you do not delete the partition and directly enter the PE, you can use the partition adjustment tool to separate several MB of space from the C disk. At that time, there was no existing PE image at hand, and the download was too slow, so we had to adopt this extreme method.

Problem

Before using Fedora, I used Ubuntu and version 10.04, and Grub2 by default. There is no problem, but this time I used ubuntu LiveCD, and the same error is prompted during installation. After seeing the explanation on the Arch wiki page, I thought of it. Previously, I adjusted the over-range in Win, as if I saw a 2 MB free partition in front of drive C, at that time, I did not want to merge it into the C disk, and I also thought it was an inaccurate computing problem when I thought it was a Gparted partition. This was really a small loss.

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.