From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Installing Gentoo: Grub, alternate GNU/Linux system on another partition
Date: Mon, 5 Dec 2011 23:34:20 +0200 [thread overview]
Message-ID: <20111205233420.7b38266a@rohan.example.com> (raw)
In-Reply-To: <CAF-1L2QFbskHfTpva1A1aKFdtGTXiL+saRwmW918xpb6DSutGQ@mail.gmail.com>
On Mon, 5 Dec 2011 12:23:28 -0800
"Alan E. Davis" <lngndvs@gmail.com> wrote:
> I'm giving Gentoo another try, having been using Ubuntu for quite a
> while, and more recently Mint. I would like to be able to access
> Mint until the Gentoo system is working as I'd like it.
>
> I have gotten through the install, for the most part, up to grub. I
> can see how to edit the grub.conf file for my Gentoo partition.
> However, it isn't clear to me from the examples how to write a
> grub.conf entry for Mint's root (/) partition, on /dev/sda8. I am
> asking for advice on writing the grub.conf file.
>
> Here are the various partitions involved:
>
> Gentoo:
> /boot /dev/sda1
> / /dev/sda2
>
> Mint (/boot is not separate)
> / /dev/sda8
>
> The Mint kernel is using an initramfs, while I have manually
> configured the kernel on Gentoo, at least for now.
>
> Grub 2 is not transparent to me. The kernel is:
>
> /boot/vmlinuz-3.0.0-13-generic
>
> the initrd-img file is:
>
> /boot/initrd.img-3.0.0-13-generic
>
> My grub.conf file for gentoo would look like this:
>
> ###########
> default 0
> timeout 30
> #splashimage=(hd0,0)/boot/grub/splash.xpm.gz
>
>
> title Gentoo Original
> root (hd0,0)
> kernel /boot/kernel-3.0.6-gentoo-r1 root=/dev/sda2
> ###########
>
>
> I have a few other questions of a more or less minor nature. Perhaps
> better to ask them separately.
>
> Alan Davis
Dual boot scenarios get tricky, it is vital to assume nothing. You left
out a lot of info, so I have to make some reasonable assumptions. Reply
with corrections if we're going to wrong route.
You can only have one primary bootloader, either grub from Gentoo or
grub2 from Mint, it cannot be both. But it looks like that's what you
do have. Seeing as you intend to drop Mint eventually, you must
uninstall grub2 and all it's files from Mint.
Your supplied grub.conf will only work if you have a boot -> . symlink
present on /dev/sda1. Gentoo normally does this for you.
For Mint you probably need something like this:
title Mint
root (hd0,7)
kernel /vmlinuz-<whatever_mint_uses> root=/dev/sda8 ro quiet splash
<any_other_mint_params
initrd /initrd-<whatever_mint_uses>
You can pick up the correct kernel and initrd arguments
from /boot/grub/grub.cfg on /dev/sda8 by looking in the menuentry
sections.
--
Alan McKinnnon
alan.mckinnon@gmail.com
next prev parent reply other threads:[~2011-12-05 21:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-05 20:23 [gentoo-user] Installing Gentoo: Grub, alternate GNU/Linux system on another partition Alan E. Davis
2011-12-05 21:34 ` Alan McKinnon [this message]
2011-12-05 21:49 ` Michael Mol
2011-12-05 21:58 ` [gentoo-user] " Grant Edwards
2011-12-05 23:23 ` Mick
2011-12-05 23:33 ` Grant Edwards
2011-12-06 6:50 ` Mick
2011-12-06 17:40 ` Sebastian Beßler
2011-12-05 23:03 ` [gentoo-user] " Alan McKinnon
2011-12-05 23:43 ` Neil Bothwick
2011-12-06 11:41 ` Stroller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111205233420.7b38266a@rohan.example.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox