From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KniAT-0007cd-9h for mharc-grub-devel@gnu.org; Wed, 08 Oct 2008 19:10:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KniAR-0007bZ-J1 for grub-devel@gnu.org; Wed, 08 Oct 2008 19:10:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KniAQ-0007ZP-2F for grub-devel@gnu.org; Wed, 08 Oct 2008 19:10:07 -0400 Received: from [199.232.76.173] (port=51257 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KniAP-0007Yk-B1 for grub-devel@gnu.org; Wed, 08 Oct 2008 19:10:05 -0400 Received: from main.gmane.org ([80.91.229.2]:54089 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KniAP-0001Rf-Cr for grub-devel@gnu.org; Wed, 08 Oct 2008 19:10:05 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KniAH-00031A-9N for grub-devel@gnu.org; Wed, 08 Oct 2008 23:09:57 +0000 Received: from adsl-69-234-183-20.dsl.irvnca.pacbell.net ([69.234.183.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Oct 2008 23:09:57 +0000 Received: from w41ter by adsl-69-234-183-20.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Oct 2008 23:09:57 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: walt Date: Wed, 08 Oct 2008 16:09:42 -0700 Message-ID: References: <20081007095652.GD7127@fencepost.gnu.org> <87skr6935b.fsf_-_@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-183-20.dsl.irvnca.pacbell.net User-Agent: Thunderbird/3.0a2pre (X11; 2008100805) In-Reply-To: <87skr6935b.fsf_-_@jidanni.org> Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: bug-grub@gnu.org Subject: Re: forgot passwd, cannot login, [rd]init=/bin/sh don't work 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, 08 Oct 2008 23:10:07 -0000 jidanni@jidanni.org wrote: > ... > OK, I then tried linux-doc-2.6.26/Documentation/kernel-parameters.txt.gz: > rdinit= [KNL] > Format: > Run specified binary instead of /init from the ramdisk, > used for early userspace startup. See initrd. > > So in grub2 I chose "e" to edit, and changed the lines to > linux /boot/vmlinuz-2.6.26-1-686 root=UUID=... rdinit=/bin/sh > initrd /boot/initrd.img-2.6.26-1-686 > hit ESC then RET, and alas it was like I didn't type anything at > all but just hit RET, booting proceeded as usual, and /proc/cmdline > shows that my changes to that command line were thrown away. The only reason to use a ramdisk during boot is if your kernel doesn't have any support for your root filesystem (unlikely) or for your hardware (much more likely). If the disk controller on your motherboard isn't too exotic you could probably boot the kernel directly, i.e: /boot/vmlinuz-2.6.26-1-686 init=/bin/sh root=whatever Note the use of *init* instead of rdinit because you aren't using the initial ramdisk this way. May or may not work, but it's worth a try.