Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Jja1C-0006qr-En for mharc-grub-devel@gnu.org; Wed, 09 Apr 2008 09:07:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jja1A-0006oj-LL for grub-devel@gnu.org; Wed, 09 Apr 2008 09:07:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jja19-0006np-U7 for grub-devel@gnu.org; Wed, 09 Apr 2008 09:07:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jja19-0006nW-Nu for grub-devel@gnu.org; Wed, 09 Apr 2008 09:07:11 -0400 Received: from yw-out-1718.google.com ([74.125.46.156]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jja19-0005eE-AZ for grub-devel@gnu.org; Wed, 09 Apr 2008 09:07:11 -0400 Received: by yw-out-1718.google.com with SMTP id 9so539665ywk.66 for ; Wed, 09 Apr 2008 06:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=jH9Jq8mOp7XIXtXcSflb3qAAEXzvd4tRF6AAFgugej8=; b=AHBL3ECRYGs1sH4RiR9KUvOD9jWp46EfW7x+fxNyshGidbsqOdnG5Ev4hjRezQUCbeWU85Eup0eiPRdLj3vAZM8T+eO6l1wTreKyp90LjsyhqEKU8zyVJc24Y3x83J7jPL8r18wObr1BbtwPEAwJx/8w3hVqwkWCjnwpuww6wTo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IR2WB86IXPKzMaLO+aj4v81GkLXWQTKGiXslWP9IGunwT6lR5/fYRBVmudF8j8KulxoGfNSKwyaY0Y+XzFU7Ikb23qGDtbMonGtNEheR4E5L+5243XmX29Bk1TI58kykhjcl0C2U9ct/IVHHF7BFyGgVmfQjdZCJkRT03QEBUUg= Received: by 10.151.154.12 with SMTP id g12mr231704ybo.202.1207746428826; Wed, 09 Apr 2008 06:07:08 -0700 (PDT) Received: by 10.151.9.12 with HTTP; Wed, 9 Apr 2008 06:07:08 -0700 (PDT) Message-ID: Date: Wed, 9 Apr 2008 16:07:08 +0300 From: "Mark Ryden" To: "The development of GRUB 2" In-Reply-To: <1207725547.8539.101.camel@rd> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1207725547.8539.101.camel@rd> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Booting into a different entry without changing grub.conf X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2008 13:07:13 -0000 Hi, I tried it but it did not work. could it be that I was wrong somewhere? below is the grub.conf. It was with default=1, and I changed it to default=2. I added savedefault=1 to the second error (see below). I rebooted, got panic, again rebooted, and also in the second time it rebooted to the 2 , and got again a panic Any ideas? following is grub.conf ... default=2 timeout=5 splashimage=(hd0,1)/boot/grub/splash.xpm.gz hiddenmenu title Fedora (2.6.23.1-42.fc8) root (hd0,1) kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/ initrd /boot/initrd-2.6.23.1-42.fc8.img title myFedora (2.6.23) root (hd0,1) kernel /boot/myvmlinz_2_6_23_1 ro root=LABEL=/ initrd /boot/myinitrd-2.6.23.1.img title netdev (2.6.23) root (hd0,1) kernel /boot/vmlinuzNetdev ro root=LABEL=/ initrd /boot/netdev.img savedefault=1 Regards, MR On Wed, Apr 9, 2008 at 10:19 AM, Pavel Roskin wrote: > On Wed, 2008-04-09 at 10:01 +0300, Mark Ryden wrote: > > Hello, > > > > I have in my grub.conf this entry: default=0. > > grub.conf was used in GRUB 1 only, which should be discussed in > bug-grub@gnu.org. GRUB 2 uses grub.cfg. > > > > > This entry has the original kernel and initrd which came with my Linux > > distribution. > > Instead of booting to the first entry (default=0) , I want to reboot into the > > second entry (which will point to a linux kernel I had build myself > > for tests). > > ; but **withouth** changing the (default=0) entry > > in grub.conf to the second grub entry (which contains paths to images which > > are selected for boot when default=1); this because in > > case I will have a panic when booting (which sometimes occur, for > > various reasons) > > , I want to be able to reboot the machine immedaitely back to default=0. > > (In order that I will NOT have the panic again) > > Is it possible ? > > GRUB 1 has "savedefault" for that. Adding "savedefault 0" to the second > entry would tell grub to boot the first entry next time. GRUB 2 doesn't > have such facility yet. > > -- > Regards, > Pavel Roskin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >