Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Triple boot with Mint and Win7
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
SlowRoastedDuck
n00b
n00b


Joined: 22 Jul 2012
Posts: 4
Location: Belgium

PostPosted: Sun Jul 22, 2012 9:23 am    Post subject: [solved] Triple boot with Mint and Win7 Reply with quote

Hi all,

For various reasons, I like the idea of compiling everything on my system myself and thought I would give gentoo a try this weekend. Everything went pretty smoothly until it came time to set up grub. I am installing on a system that already has Mint and Win7 installed. For the moment, Mint is my primary day-to-day OS (though a good experience with gentoo will change that).

I feel pretty confident that I could configure grub on gentoo side and get things working. I feel equally confident that at some point, Mint will auto-regenerate the grub config files and screw everything up if I don't take measures to keep that from happening. Does anybody here have any tips they can share?

One thing that I am considering is upgrading to grub 2 on the gentoo side (which is what Mint is using), then adding scripts on the Mint side to ensure gentoo is properly accounted for. After that, I would go ahead and let Minit manage /boot for as long as I continue to use it. However, I am open to other suggestions (and warnings, if this is a bad idea).

Thanks for your help!


Last edited by SlowRoastedDuck on Mon Jul 23, 2012 12:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
LiamOS
n00b
n00b


Joined: 06 Jun 2012
Posts: 56
Location: Kerry/Dublin, Ireland

PostPosted: Sun Jul 22, 2012 12:04 pm    Post subject: Reply with quote

You could always try setting the bootloader from Mint, if you know how to do that with Grub2(I don't).
I've dual booted with Lubuntu before, which used Grub2, and I never had any problems with file overwriting. As far as I know, the config files are different for each loader, so as long as grub-static is installed, Grub2 shouldn't interfere. You could always remove Grub2 from your Mint installation with something like
# apt-get remove grub (Mint uses apt, right?)
This may cause problems if you already have Grub2 installed from the Gentoo side, though; I'm not sure.

If you don't mind the idea of using grub-static, it's reasonably easy to configure once you know where your Mint kernel and initramfs are.
_________________
CFLAGS=" -O999999"
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Jul 22, 2012 12:31 pm    Post subject: Reply with quote

SlowRoastedDuck,

Why stop at three - I have six :D

You won't need to install grub in gentoo - you can boot from an entry in Mint's grub.cfg.

You can make gentoo's entry in /etc/grub.d/40_custom to regenerate when Mint gets a kernel update.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
SlowRoastedDuck
n00b
n00b


Joined: 22 Jul 2012
Posts: 4
Location: Belgium

PostPosted: Sun Jul 22, 2012 1:08 pm    Post subject: Reply with quote

Thanks BillWho,

I just tried that, so far with no luck. When I run grub-mkconfig under Mint it generates not only the additional entries I specify, but also a whole bunch of wacky hybrid entries that more or less mix and match my kernels and root volumes (e.g., the gentoo kernel and Mint root). I have Mint and gentoo sharing a /boot volume, which I had the impression was okay, but could that be the source of these hybrid entries?

As far as getting the entry in 40_custom to work, I will keep at it and come back with more specific questions if needed....

Thanks for the advice!

EDIT: I should clarify that the entry I added to 40_custom does not work when I select it from the boot menu, but the boot menu also contains the aforementioned hash of hybrid entries. Thus, there are two problems at the moment, useless entries in the grub menu and failure to boot correctly into gentoo.
Back to top
View user's profile Send private message
SlowRoastedDuck
n00b
n00b


Joined: 22 Jul 2012
Posts: 4
Location: Belgium

PostPosted: Sun Jul 22, 2012 3:44 pm    Post subject: Reply with quote

After further investigation, I think the system is actually trying to boot from my gentoo kernel, but I think I left something out when I compiled it. So I'm going to go back, recompile with genkernel (just be sure it's bootable), and try again. If all goes well, I'll have to figure out what's wrong with my current kernel configuration. I intended for this only to be a try-out/learning system system anyway, so mission accomplished I guess.

So long story longer, the grub menu issue is on the back burner for now. Thanks for the input.
Back to top
View user's profile Send private message
SlowRoastedDuck
n00b
n00b


Joined: 22 Jul 2012
Posts: 4
Location: Belgium

PostPosted: Mon Jul 23, 2012 12:01 pm    Post subject: Reply with quote

Indeed, the issue was that I had compiled an unbootable kernel. After compiling the kernel with genkernel I am able to successfully boot into gentoo using the entries I created in /etc/grub.d/40_custom over on the Mint side.

I still have a bunch of useless entries in my grub menu, but I will take that up on the Mint forums....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum