From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RXgCw-0003qe-RA for garchives@archives.gentoo.org; Mon, 05 Dec 2011 21:36:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F169C21C0CF; Mon, 5 Dec 2011 21:35:57 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 0EEE321C039 for ; Mon, 5 Dec 2011 21:34:29 +0000 (UTC) Received: by eaal13 with SMTP id l13so998624eaa.40 for ; Mon, 05 Dec 2011 13:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:mime-version:content-type:content-transfer-encoding; bh=o2q5j7poOfbv5apci3FUyk57zdzqCoIMpg9wwXLnTwg=; b=oFegfFRRhRdfaCIvLmx4ML/yh4sneIe+J8Pxz+Tf1lYXk2iNXGoVSITg/Ga54Lk1aq WJ19oQAC47C5VxpthYIWfApdtCehnruwDOmAKMmQSKqlm7ipu6AB/gq6d8iE/MP7TiJ0 dRw4O2xK4KRlmSEXgzCX+zfWbJS19mLtUpByY= Received: by 10.213.29.138 with SMTP id q10mr1476203ebc.35.1323120869077; Mon, 05 Dec 2011 13:34:29 -0800 (PST) Received: from rohan.example.com ([196.215.144.97]) by mx.google.com with ESMTPS id zv9sm15923053bkb.0.2011.12.05.13.34.25 (version=SSLv3 cipher=OTHER); Mon, 05 Dec 2011 13:34:27 -0800 (PST) Date: Mon, 5 Dec 2011 23:34:20 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Installing Gentoo: Grub, alternate GNU/Linux system on another partition Message-ID: <20111205233420.7b38266a@rohan.example.com> In-Reply-To: References: Organization: Internet Solutions X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 171488df-fbbe-43cf-bfc3-0ffd9893b2b5 X-Archives-Hash: d070f2b73786d364aa4cb73d1267bb6b On Mon, 5 Dec 2011 12:23:28 -0800 "Alan E. Davis" 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- root=/dev/sda8 ro quiet splash 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