On 09/16/12 00:45, Andrei POPESCU wrote:
On Sb, 15 sep 12, 19:03:28, Hendrik Boom wrote:
On Sat, 15 Sep 2012 13:39:29 +0300, Andrei POPESCU wrote:

I've solved this by having one grub in the MBR and installing each grub
in the corresponding first sector of the partition. Not recommended by
grub, but it works.

So each system-specific grub would. presumably, boot just that system.
And what would the MBR grub do?  Chainload a boot-time choice the others?

Yes.
So, the MBR grub must have separate config, which is maintained (i guess) by hand, and have menuentries, which chainload other grubs. In other words, this MBR grub's config hardcodes pathes to system-specific grubs. So, if something change in the partition layout (e.g. you install yet another linux distribution), you need to manually update MBR grub's config. Am i right? If so, what is difference with loading another config (`configfile`) instead of chainloading (`chainloader`) another grub? Well, i do not mean the difference, that in your case each grub will have all modules in its own grubdir, whereas in my case there is only one grubdir for all OSes, but many configs. I mean what is the difference in using
this scheme? Has it some considerable advantages? E.g. is it much simpler?
Or what?

But, anyway, answering to the above question has sense only, if it is possible to install such scheme, but i can't do it. dpkg-reconfigure either does not ask where to install, or grub-install refuses to do so. I don't know how dpkg-reconfigure works (and don't want to know), but if i use grub-install from cmd it refuses to install into partition as well. I think, this is because grub have already been installed into mbr.
And this is expected behavior, though, as noted in [1]:

At least on BIOS systems, if you tell grub-install to install GRUB to a
partition but GRUB has already been installed in the master boot record,
then the GRUB installation in the partition will be ignored.

May be i miss some option, but to be honest i do neither try hard to figure out why it refuses, nor i try to look into sources. Well, probably just because scheme with different
configs works fine for me.


[1]: http://www.gnu.org/software/grub/manual/html_node/GRUB-only-offers-a-rescue-shell.html#GRUB-only-offers-a-rescue-shell

Reply via email to