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 1S1fw2-0001y4-E1 for garchives@archives.gentoo.org; Sun, 26 Feb 2012 15:22:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24AAEE1103; Sun, 26 Feb 2012 15:22:37 +0000 (UTC) Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 9AA2BE10A3 for ; Sun, 26 Feb 2012 15:20:07 +0000 (UTC) Received: by dady25 with SMTP id y25so5143442dad.40 for ; Sun, 26 Feb 2012 07:20:06 -0800 (PST) Received-SPF: pass (google.com: domain of nileshgce@gmail.com designates 10.68.191.168 as permitted sender) client-ip=10.68.191.168; Authentication-Results: mr.google.com; spf=pass (google.com: domain of nileshgce@gmail.com designates 10.68.191.168 as permitted sender) smtp.mail=nileshgce@gmail.com Received: from mr.google.com ([10.68.191.168]) by 10.68.191.168 with SMTP id gz8mr29741267pbc.37.1330269606987 (num_hops = 1); Sun, 26 Feb 2012 07:20:06 -0800 (PST) Received: by 10.68.191.168 with SMTP id gz8mr25156180pbc.37.1330269606873; Sun, 26 Feb 2012 07:20:06 -0800 (PST) Received: from [192.168.2.3] ([121.246.205.20]) by mx.google.com with ESMTPS id c9sm10057917pbr.65.2012.02.26.07.20.04 (version=SSLv3 cipher=OTHER); Sun, 26 Feb 2012 07:20:05 -0800 (PST) Message-ID: <4F4A4DA2.20608@nileshgr.com> Date: Sun, 26 Feb 2012 20:50:02 +0530 From: Nilesh Govindrajan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120215 Thunderbird/10.0.1 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Safe way to test a new kernel? References: <20120226141908.4213e10e@weird.wonkology.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 1cda984a-6682-46f9-ad16-1f9b6320afb9 X-Archives-Hash: 83dbf13dbf50db5d80e4665bdb91e810 On Sun 26 Feb 2012 08:05:23 PM IST, Grant wrote: >>> I get "Unrecognized command" from savedefault in grub: >>> >>> grub> savedefault --default=1 --once >>> Error 27: Unrecognized command >> >> Strange. Maybe this is something inofficial, and not every Gurb >> understands this? The documentation does not mention the --default option >> I think. >> >>> I re-emerged grub with /boot mounted and ran grub-install but I get >>> the same error. Does anyone know how to fix this? I'm on >>> grub-0.97-r10. >> >> Have a look at 'info grub', 'Booting' -> 'Making your system robust', >> especially section 4.3.2 'Booting fallback systems'. That's what I used in >> order to test new kernels remotely. >> >> Wonko > > I like that better. Where do you execute 'grub-set-default 0'? > > I did notice this: > > "In some newer versions of GNU/Linux, there is no > /sbin/grub-set-default (eg. Debian 3.1, Fedora Core 4,5). While some > distributions like Gentoo still has /sbin/grub-set-default" > > http://sidvind.com/wiki/GRUB:_Boot_another_OS_once#Method_1_.28preferred.29 > > BTW, is there a way to tell which grub entry I'm booted into, or am I > best off examining the contents of /proc/config.gz? > > - Grant > uname -r If the kernel version is same, add a version string in menuconfig. -- Nilesh Govindarajan http://nileshgr.com