Results 1 to 5 of 5

Thread: Grub2 embedding area is unusually small

  1. #1
    Join Date
    Oct 2010
    Location
    Odense Denmark
    Beans
    54
    Distro
    Ubuntu 11.04 Natty Narwhal

    Grub2 embedding area is unusually small

    I lost my capability to boot into any OS for some reason. I am dual booting Windows 7 and Ubuntu 10.10 and I have managed to restore my Windows bootloader using a Windows repair disk.

    I have tried to reinstall Grub using these commands from a Ubuntu Live CD:

    Code:
    ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt
    ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sda
    The latter gives this output:
    Code:
    /usr/sbin/grub-setup: warn: Your embedding area is unusually small.  core.img won't fit in it..
    /usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
    /usr/sbin/grub-setup: error: if you really want blocklists, use --force.
    Here are the results from the boot info script:
    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Windows is installed in the MBR of /dev/sda
    
    sda1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sda2: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe
    
    sda3: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info:  
    
    sda5: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sda6: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /grub/core.img 
                           /boot/grub/core.img
    
    sda4: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    90 heads, 26 sectors/track, 100188 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1                  26     3,072,419     3,072,394  27 Hidden HPFS/NTFS
    /dev/sda2    *      3,074,048    88,336,383    85,262,336   7 HPFS/NTFS
    /dev/sda3         192,067,584   234,440,703    42,373,120   5 Extended
    /dev/sda5         192,069,632   196,333,567     4,263,936  82 Linux swap / Solaris
    /dev/sda6         196,335,616   234,440,703    38,105,088  83 Linux
    /dev/sda4          88,336,384   192,067,583   103,731,200   7 HPFS/NTFS
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/loop0                                              squashfs                                 
    /dev/sda1        1A86C19C86C17931                       ntfs       WinRE                         
    /dev/sda2        6202C44C02C426BF                       ntfs       Win7                          
    /dev/sda3: PTTYPE="dos" 
    /dev/sda4        57ADE65A0F13A40B                       ntfs       Storage                       
    /dev/sda5        fdb70b99-478e-479f-a097-2ad02ffd8d13   swap                                     
    /dev/sda6        5e25fece-93b8-4c5c-b1f5-ea6835875e46   ext4                                     
    /dev/sda: PTTYPE="dos" 
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    aufs             /                        aufs       (rw)
    /dev/sr0         /cdrom                   iso9660    (ro,noatime)
    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    
    
    =========================== sda6/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="4"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 5e25fece-93b8-4c5c-b1f5-ea6835875e46
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set 5e25fece-93b8-4c5c-b1f5-ea6835875e46
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set 5e25fece-93b8-4c5c-b1f5-ea6835875e46
        linux    /boot/vmlinuz-2.6.35-28-generic root=UUID=5e25fece-93b8-4c5c-b1f5-ea6835875e46 ro  splash vga=795  quiet splash
        initrd    /boot/initrd.img-2.6.35-28-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set 5e25fece-93b8-4c5c-b1f5-ea6835875e46
        echo    'Loading Linux 2.6.35-28-generic ...'
        linux    /boot/vmlinuz-2.6.35-28-generic root=UUID=5e25fece-93b8-4c5c-b1f5-ea6835875e46 ro single  splash vga=795
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.35-28-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set 5e25fece-93b8-4c5c-b1f5-ea6835875e46
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos6)'
        search --no-floppy --fs-uuid --set 5e25fece-93b8-4c5c-b1f5-ea6835875e46
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda2)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set 6202c44c02c426bf
        chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    
    =============================== sda6/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc    /proc    proc    nodev,noexec,nosuid    0    0
    # Commented out by Dropbox
    # /dev/sda6    /    ext4    errors=remount-ro    0    1
    /dev/sda4    /media/Storage    ntfs-3g    defaults,locale=en_DK.utf8    0    0
    /dev/sda2    /media/Win7    ntfs-3g    defaults,locale=en_DK.utf8    0    0
    /dev/sda5    none    swap    sw    0    0
    
    
    /dev/sda6 / ext4 errors=remount-ro,user_xattr 0 1
    
    =================== sda6: Location of files loaded by Grub: ===================
    
    
     102.8GB: boot/grub/core.img
     103.1GB: boot/grub/grub.cfg
     103.0GB: boot/grub/stage2
     103.9GB: boot/initrd.img-2.6.35-28-generic
     104.1GB: boot/vmlinuz-2.6.35-28-generic
     117.8GB: grub/core.img
     103.9GB: initrd.img
     104.1GB: vmlinuz
    =========================== Unknown MBRs/Boot Sectors/etc =======================
    
    Unknown BootLoader  on sda3
    
    00000000  94 1c 95 ee 06 9d b9 15  d7 73 06 4a 90 c8 7f 16  |.........s.J....|
    00000010  06 d7 c3 55 26 25 3c 36  6d 07 de 70 28 e2 ca be  |...U&%<6m..p(...|
    00000020  7d c8 7c b3 84 c1 56 0a  0a 45 31 35 80 92 a4 40  |}.|...V..E15...@|
    00000030  86 fb fa 11 98 f7 99 60  c5 e2 e7 02 80 ec a8 95  |.......`........|
    00000040  d0 2f f7 af cd 71 f7 8b  e1 a0 b0 e2 e5 97 24 4c  |./...q........$L|
    00000050  8c 09 0d e0 0a 20 d2 67  29 67 82 d3 92 dd 7b f1  |..... .g)g....{.|
    00000060  c2 a4 e3 3b b3 9f 3f 3a  04 15 79 d4 92 c5 c6 d8  |...;..?:..y.....|
    00000070  83 f6 6c 28 09 72 d2 d3  a4 75 d9 72 33 9b 4a 11  |..l(.r...u.r3.J.|
    00000080  71 5c 7d 78 3f cc fb 3a  79 4c 7e a3 5a e1 fe fa  |q\}x?..:yL~.Z...|
    00000090  fd 9f 82 9a ff ab 01 db  e2 07 1b 09 ea 93 fb b6  |................|
    000000a0  97 10 8f 33 2b d1 ca ba  29 8f 61 87 45 12 cf c8  |...3+...).a.E...|
    000000b0  a3 d5 c6 b8 4b 96 3a 37  2b 79 56 5c 17 30 49 a6  |....K.:7+yV\.0I.|
    000000c0  d1 76 6f 9b 8f 22 7e 7c  4c 07 77 0d a0 0e a6 a6  |.vo.."~|L.w.....|
    000000d0  83 69 19 87 a4 03 7b 1f  ff ba 65 cc dd d0 3e f4  |.i....{...e...>.|
    000000e0  2e 85 b1 dc 5a 5e 36 66  9a da 6f 1d d9 c7 ae 76  |....Z^6f..o....v|
    000000f0  4c d3 ea ba a3 c8 ab 27  c4 d7 e6 21 a6 42 aa 4f  |L......'...!.B.O|
    00000100  aa b3 3c 67 fd 18 1c 96  27 b9 b0 35 ba dc d8 9d  |..<g....'..5....|
    00000110  1c 0f 01 fe c9 f5 fa 89  0b ee ce 28 0b 7a 29 05  |...........(.z).|
    00000120  5d c0 07 af 9e 10 1b 81  af 72 b3 a9 3e 81 ed b6  |]........r..>...|
    00000130  38 d5 9b ef 9e fb ca 0b  e4 ee 9c 1d 48 3b c6 8d  |8...........H;..|
    00000140  87 4a 54 08 72 5d 4b e7  15 49 15 ab db 52 c5 19  |.JT.r]K..I...R..|
    00000150  98 cb 5c 53 6b cd 93 c3  0f b9 1f e5 07 cc 25 58  |..\Sk.........%X|
    00000160  e0 24 54 7a c1 57 6c cd  72 31 3d e3 89 2f 0c ae  |.$Tz.Wl.r1=../..|
    00000170  58 e1 63 96 11 e3 60 c1  fd 0a 52 f7 a3 6a 75 51  |X.c...`...R..juQ|
    00000180  d3 76 0b d0 5d c6 86 df  fb 72 91 98 97 fe 99 7f  |.v..]....r......|
    00000190  cb fd a8 9a f5 c0 d9 b6  7e db 16 72 07 33 16 cf  |........~..r.3..|
    000001a0  0b 59 0e e2 05 6d 7e 14  a8 9b f8 1f f4 cb 03 54  |.Y...m~........T|
    000001b0  87 52 09 d0 21 35 a8 b7  c9 5a 82 65 99 88 00 59  |.R..!5...Z.e...Y|
    000001c0  da ff 82 59 da ff 00 08  00 00 00 10 41 00 00 59  |...Y........A..Y|
    000001d0  da ff 05 59 da ff 00 1f  41 00 00 71 45 02 00 00  |...Y....A..qE...|
    000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200
    How can I fix this?

    PS. I probably should mention that I edited the partitions prior to these problems, moving the extended sda3 to the left to give it some more space. The order of the partitions remained unchanged.
    Last edited by ububeginner; May 4th, 2011 at 03:17 PM.

  2. #2
    Join Date
    Oct 2010
    Location
    Odense Denmark
    Beans
    54
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub2 embedding area is unusually small

    Doing some research on the web I found something about that the embedding area should be located before the first partition, so the first partition should not start on the first sector of the disk.
    My first partition starts on sector 26.
    How many sector does the embedding area need?
    Can I resize the hidden Windows partition and move it to the left without causing additional problems?
    Would this possibly solve my problems?

  3. #3
    Join Date
    Oct 2010
    Location
    Odense Denmark
    Beans
    54
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub2 embedding area is unusually small

    # Commented out by Dropbox
    # /dev/sda6 / ext4 errors=remount-ro 0 1
    Why is Dropbox messing with fstab???
    Could this have anything to do with things?

  4. #4
    Join Date
    Mar 2011
    Location
    Idaho
    Beans
    293

    Re: Grub2 embedding area is unusually small

    The first sector normally will start at sector 63. Looking at my system grub needs to have 51 sectors to be embedded into the MBR space. Depending on the unused space on sda1, the start could be moved to the right.

    You could install grub on '\' by using --force and install 'easybcd' or 'grub4dos' into the win 7 boot loader to boot linux. I do not have win7 so have not tried.

    Why is Dropbox messing with fstab???
    no idea

  5. #5
    Join Date
    Oct 2010
    Location
    Odense Denmark
    Beans
    54
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub2 embedding area is unusually small

    Solved
    I shrunk sda1 to create some free space on the start of the drive, after that Grub installed without problems

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •