Bug#561294: core.img is unusually large, grub-pc fails to install grub mbr

Thomas Fjellstrom tfjellstrom at shaw.ca
Thu Dec 17 21:30:57 UTC 2009


On Fri December 18 2009, Miguel Landaeta wrote:
> On Fri, Dec 18, 2009 at 4:08 PM, Thomas Fjellstrom <tfjellstrom at shaw.ca> 
wrote:
> > My core.img file is 31.13KB in size. Also the auto generated grub.conf
> > seems to include a "raid" module that probably isn't needed? (it also
> > includes mdraid and lvm) Is there a way I can remove it?
> >
> > And as I mentioned, I asked about this in the #grub channel on
> > irc.freenode.net and they seemed to hint at the fact that debian's grub
> > package is known to make the driver modules larger in size that stock
> > grub does.
> 
> Ok, my core.img file was ~50KB so I had to repartition.
> 
> In your case, you could use grub-mkimage to generate a new core.img,
>  remove some unused modules and see if you image can fit.
> 

I'm not sure how to do that. I've run grub-mkimage and overwrote core.img 
which gets me to a 20KB file, and grub-install overwrites it with a larger 
31KB file. Changing grub.cfg is impossible as update-grub overwrites that 
every time. I can't see a reliable way of configuring grub2.

-- 
Thomas Fjellstrom
tfjellstrom at shaw.ca





More information about the Pkg-grub-devel mailing list