help-grub
[Top][All Lists]
Advanced

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

Re: Famous "Your embedding area is unusually small" however my embedding


From: Andrey Borzenkov
Subject: Re: Famous "Your embedding area is unusually small" however my embedding area looks like just the right size
Date: Sat, 7 Sep 2013 11:33:47 +0400

В Fri, 06 Sep 2013 21:28:39 -0700
Mike Power <address@hidden> пишет:

> I am trying to reinstall grub on my system.  Grub was installed before 
> but I have had hard drive troubles, so one of the drives does not have 
> grub on it.  I have a lvm on top of a mirror raid.
> 
> 
> I run the following command
> 
>     $sudo grub-install /dev/sda
>     [sudo] password for mpower:
>     /usr/sbin/grub-setup: warn: Your embedding area is unusually small. 
>     core.img won't fit in it..
>     /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.
> 
> This seems odd since it has grub on it.  I really should have tried sdb 
> first.  But none the less if I look at sda it has 62 unused sectors on 
> the front.  From what I have read that is the right amount

address@hidden:~> grub2-mkimage -O i386-pc -o /tmp/core.img ext2 mdraid1x lvm 
search_fs_uuid
address@hidden:~> LC_ALL=C ll /tmp/core.img
-rw-r--r-- 1 bor bor 32099 Sep  7 11:32 /tmp/core.img

That exceeds 31KiB (31744B).


> 
>     $ sudo fdisk -l /dev/sda
> 
>     Disk /dev/sda: 500.1 GB, 500107862016 bytes
>     255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
>     Units = sectors of 1 * 512 = 512 bytes
>     Sector size (logical/physical): 512 bytes / 512 bytes
>     I/O size (minimum/optimal): 512 bytes / 512 bytes
>     Disk identifier: 0x00018e76
> 
>         Device Boot      Start         End      Blocks   Id  System
>     /dev/sda1              63   976768064   488384001   fd  Linux raid
>     autodetect
> 
> Any idea what broke?
> 
> Some additional info:
> 
>     $ sudo pvdisplay
>        --- Physical volume ---
>        PV Name               /dev/md0
>        VG Name               vg
>        PV Size               465.76 GiB / not usable 888.00 KiB
>        Allocatable           yes (but full)
>        PE Size               4.00 MiB
>        Total PE              119234
>        Free PE               0
>        Allocated PE          119234
>        PV UUID               wS9qYc-jWkT-FR3Z-bi0H-cY8I-wLS6-2Z1dPl
> 
>     $ sudo vgdisplay
>        --- Volume group ---
>        VG Name               vg
>        System ID
>        Format                lvm2
>        Metadata Areas        1
>        Metadata Sequence No  3
>        VG Access             read/write
>        VG Status             resizable
>        MAX LV                0
>        Cur LV                2
>        Open LV               2
>        Max PV                0
>        Cur PV                1
>        Act PV                1
>        VG Size               465.76 GiB
>        PE Size               4.00 MiB
>        Total PE              119234
>        Alloc PE / Size       119234 / 465.76 GiB
>        Free  PE / Size       0 / 0
>        VG UUID               QwDeNr-aQvO-5uYv-ImDP-C8eJ-uKyi-ZHYWtk
> 
>     $ sudo lvdisplay
>        --- Logical volume ---
>        LV Name                /dev/vg/swap_1
>        VG Name                vg
>        LV UUID                hxn1wt-EcJP-8rfO-3lCc-X3OM-gG3f-uuR3WK
>        LV Write Access        read/write
>        LV Status              available
>        # open                 2
>        LV Size                7.45 GiB
>        Current LE             1907
>        Segments               1
>        Allocation             inherit
>        Read ahead sectors     auto
>        - currently set to     256
>        Block device           253:0
> 
>        --- Logical volume ---
>        LV Name                /dev/vg/root
>        VG Name                vg
>        LV UUID                tjmJkA-njlJ-VuDz-mBvY-5hpB-bsMD-ftKMXP
>        LV Write Access        read/write
>        LV Status              available
>        # open                 1
>        LV Size                458.31 GiB
>        Current LE             117327
>        Segments               1
>        Allocation             inherit
>        Read ahead sectors     auto
>        - currently set to     256
>        Block device           253:1
> 
>     $ sudo mdadm -D /dev/md0
>     /dev/md0:
>              Version : 1.2
>        Creation Time : Wed Jan 11 20:30:26 2012
>           Raid Level : raid1
>           Array Size : 488383352 (465.76 GiB 500.10 GB)
>        Used Dev Size : 488383352 (465.76 GiB 500.10 GB)
>         Raid Devices : 2
>        Total Devices : 2
>          Persistence : Superblock is persistent
> 
>          Update Time : Fri Sep  6 21:26:31 2013
>                State : clean
>       Active Devices : 2
>     Working Devices : 2
>       Failed Devices : 0
>        Spare Devices : 0
> 
>                 Name : petros:0  (local to host petros)
>                 UUID : dea84e95:1a6753ea:2982d49d:b812ff86
>               Events : 2204266
> 
>          Number   Major   Minor   RaidDevice State
>             2       8        1        0      active sync   /dev/sda1
>             3       8       17        1      active sync   /dev/sdb1
> 
>     $ grub-install -v
>     grub-install (GRUB) 1.99-12ubuntu5.1
> 
>     $ lsb_release -a
>     No LSB modules are available.
>     Distributor ID:    Ubuntu
>     Description:    Ubuntu 11.10
>     Release:    11.10
>     Codename:    oneiric
> 
>     $ uname -a
>     Linux petros 3.0.0-32-generic #51-Ubuntu SMP Thu Mar 21 15:50:59 UTC
>     2013 x86_64 x86_64 x86_64 GNU/Linux
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]