You are not logged in.

#1 2011-10-11 15:53:02

tooxicbunny
Member
From: GB
Registered: 2011-02-02
Posts: 22

[SOLVED] grub2: (...)core.img is unusually large(...)

hi,
during installation today grub surprise me:

warn: your core.img is unusually large, it won't fit in the
embedding area..

how to solve this? this is a system created from stage3-current.tar.xz ( http://ftp.heanet.ie/mirrors/funtoo/fun … 011-10-05/ ). regards

Last edited by tooxicbunny (2011-10-15 18:08:37)

Offline

#2 2011-10-11 17:15:20

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 267

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

Hi! Could you post /etc/fstab please? Also post fdisk -p /dev/sda (or gdisk if you use GPT instead of MBR).

Offline

#3 2011-10-11 17:55:23

tooxicbunny
Member
From: GB
Registered: 2011-02-02
Posts: 22

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

hi,

root@alpha /root % cat /etc/fstab
/dev/md1        /boot              ext2        noauto,noatime          1 2
/dev/md2        /                  ext4        noatime                 0 1
none            /dev/shm           tmpfs      nodev,nosuid,noexec      0 0
tmpfs           /var/tmp/portage   tmpfs      size=8G,mode=1777        0 0
root@alpha /root % fdisk -l

Disk /dev/sda: 146.8 GB, 146815733760 bytes
255 heads, 63 sectors/track, 17849 cylinders, total 286749480 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: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63      498014      248976   fd  Linux raid autodetect
/dev/sda2          498015   286744184   143123085   fd  Linux raid autodetect

Disk /dev/sdb: 146.8 GB, 146815733760 bytes
255 heads, 63 sectors/track, 17849 cylinders, total 286749480 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: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63      498014      248976   fd  Linux raid autodetect
/dev/sdb2          498015   286744184   143123085   fd  Linux raid autodetect

Disk /dev/md1: 254 MB, 254869504 bytes
2 heads, 4 sectors/track, 62224 cylinders, total 497792 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: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 146.6 GB, 146557960192 bytes
2 heads, 4 sectors/track, 35780752 cylinders, total 286246016 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: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

regards
ps i just do the installation now once more because I don't believe, two weeks ago it's worked.

Last edited by tooxicbunny (2011-10-11 18:02:04)

Offline

#4 2011-10-11 18:03:01

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 267

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

I never tried grub2 with RAID, but maybe this post could help you : https://bbs.archlinux.org/viewtopic.php?id=123698

Some people experience this issue with RAID, or /boot using btrfs. It seems to be a grub2 issue and you are likely to have the same problem even without the experimental branch.

Maybe you should edit your subject and remove the "experimental branch" label with "RAID" so other users might help... smile

Offline

#5 2011-10-11 18:31:28

tooxicbunny
Member
From: GB
Registered: 2011-02-02
Posts: 22

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

hi,
ok, over 150 install, only this one makes me problem (one test server).
funny, two weeks ago, it went without a problem (http://ftp.heanet.ie/mirrors/funtoo/fun … 011-09-28/)

Offline

#6 2011-10-11 19:39:15

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 267

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

This is strange, grub has no change between the current and experimental branch, and there were no changes to it between the 09-28 version and 10-05. I have no clue for this one. Did the partitions change at all since your last successful installation?

Offline

#7 2011-10-12 15:22:40

tooxicbunny
Member
From: GB
Registered: 2011-02-02
Posts: 22

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

hi,
I also browsed a record of changes(not only for grub). I remember a similar situation occurred at the transition to newer versions of gcc. This trail was eliminated because, as you yourself acknowledge, no changes were introduced and ...
Yes - I played with system partitions. I tested virtualization with ESXi, a hardware raid1 on sas disks and FreeBSD. From my point of view, it is the cause. The success of the previous installations evidence that the new gcc brings more joy than troubles (so far big_smile). It remains for me to check what has changed on my drives and causes my problems -thanks for your help in clarifying the situation,
kind regards

Last edited by tooxicbunny (2011-10-12 15:36:22)

Offline

#8 2011-10-13 11:15:13

tooxicbunny
Member
From: GB
Registered: 2011-02-02
Posts: 22

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

Hi,
with an innate contrariness am researching the problem. It occurred to me (when browsing repos), that core.img took on weight.
In my case, I could use grub-mkimage to generate a new core.img, remove some unused modules and see if my image can fit cool
..wish me luck
regards

btw In the meantime, I installed ubuntu successfully - the same hw configuration, the same partition layout (only format) to exclude some options:

bunny@alpha:~$ ls -al /boot/grub
-snip-
-rw-r--r-- 1 root root  28478 2011-10-13 11:34 core.img
-snip-
bunny@alpha:~$ grub-setup -V
grub-setup (GRUB) 1.99~rc1-13ubuntu3

references:
archlinux wiki: https://wiki.archlinux.org/index.php/GRUB2
coreboot wiki: http://www.coreboot.org/Talk:GRUB2

Last edited by tooxicbunny (2011-10-13 12:00:29)

Offline

#9 2011-10-13 13:19:59

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 267

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

My core.img on Funtoo is pretty much the same size:

-rw-r--r-- 1 root root 29875 Jul 18 14:52 core.img

Offline

#10 2011-10-13 14:09:37

tooxicbunny
Member
From: GB
Registered: 2011-02-02
Posts: 22

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

Hi,
we talk about raid1 setup in my case (funtoo and ubuntu)
my core.img on Funtoo is too big a bit:

-rw-r--r-- 1 root root 33127 Oct 13 14:05 core.img

where can I define a list of modules (funtoo) compiled in core.img?

Offline

#11 2011-10-13 17:09:48

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 267

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

I think core.img is created by grub-install (and maybe never modified after?)

You can see on line 347 of /sbin/grub-install that it calls grub-mkimage and it adds the modules in the variable $modules. If you search for "modules=" in that script you'll find what is put into it. There is a --modules switch that you can add when calling grub-install, but I think it may only add new ones and not remove anything...

Offline

#12 2011-10-13 19:28:11

tooxicbunny
Member
From: GB
Registered: 2011-02-02
Posts: 22

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

Hi,
coz I do not want to be dependent on hardware raid in this situation remains for me to go on gpt - perhaps it is time. @jeanfrancis thank you for your time and support wink ,
kind regards

Offline

#13 2011-10-13 19:42:21

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 267

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

gpt should solve your problem, I guess smile

Good luck! Let us know if this works and then put [Solved] in front of your thread title!

Offline

#14 2011-10-15 18:07:31

tooxicbunny
Member
From: GB
Registered: 2011-02-02
Posts: 22

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

hi,

Installation finished. No error reported.

/boot on gpt/raid1 + sys-fs/grub-9999 smile
uff...finally back on track cool
regards

Last edited by tooxicbunny (2011-10-15 18:11:56)

Offline

#15 2011-10-17 12:55:56

jeanfrancis
Staff
From: Québec (Canada)
Registered: 2010-10-07
Posts: 267

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

Nice smile

Offline

#16 2012-05-27 08:27:36

spoksss
New member
Registered: 2012-05-27
Posts: 1

Re: [SOLVED] grub2: (...)core.img is unusually large(...)

tooxicbunny wrote:

hi,

Installation finished. No error reported.

/boot on gpt/raid1 + sys-fs/grub-9999 smile
uff...finally back on track cool
regards

I had the same problem,

I had 4 disks (/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1) assembled to /dev/md1 (raid 1) which was mounted on /boot
and /dev/md2 (raid 10) from /dev/sda2 /dev/sdb2 /dev/sdc2 and dev/sdd2, on which i had one lvm group, and some logical volumens (root,home,var,swap etc)
To ommit the same problem, I had to move first section of first partition (assembled to /boot) on each disks from 2048 to 4086, and now grub has enought space to put core.img.

And my PLD works fine smile

Offline

Board footer

Powered by FluxBB