[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grub-install fails an RAID1



On Tue, Oct 11, 2011 at 5:58 PM, Kurt Flex <flxkrt@aol.com> wrote:
>
> I've done a safe-upgrade today which upgraded grub:
>
>    upgrade grub-pc 1.98+20100804-14 1.98+20100804-14+squeeze1
>
> The same for grub-common.
>
> A dialog appeared which asked me to run grub-install. But that
> failed. So i told the dialog to skip that part. Now I've tried
> grub-install manually.
>
>    # grub-install /dev/sda
>    /usr/sbin/grub-setup: warn: This msdos-style partition label has no post-MBR gap; embedding won't be possible!.
>    /usr/sbin/grub-setup: error: embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.
>
>    # parted -l
>
>    Disk /dev/sda: 640GB
>    Sector size (logical/physical): 512B/512B
>    Partition Table: msdos
>    Number  Start   End     Size    Type     File system     Flags
>     1      512B    100MB   100MB   primary  ext2            raid
>     2      100MB   1124MB  1024MB  primary  linux-swap(v1)
>     3      1124MB  610GB   609GB   primary  ext3            raid
>
>    Disk /dev/sdb: 640GB
>    Sector size (logical/physical): 512B/512B
>    Partition Table: msdos
>    Number  Start   End     Size    Type     File system     Flags
>     1      512B    100MB   100MB   primary  ext2            raid
>     2      100MB   1124MB  1024MB  primary  linux-swap(v1)
>     3      1124MB  610GB   609GB   primary  ext3            raid

As the error message says, you don't have a "post-MBR gap". Your first
partition starts too early. Typically, the first partition is preceded
by 63 sectors of 512 bytes, The first sector is the MBR and the next
62 are the post-MBR gap in which both grub1 and grub2 save an image
that can read a filesystem and therefore locate and boot a kernel.

What I don't understand is that this has happened after running
"aptitude safe-upgrade". How was grub2 booting your system before
running aptitude?!


Reply to: