From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LGJW7-0007IA-7v for mharc-grub-devel@gnu.org; Fri, 26 Dec 2008 15:42:43 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGJW5-0007Ha-7y for grub-devel@gnu.org; Fri, 26 Dec 2008 15:42:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGJW4-0007HO-CX for grub-devel@gnu.org; Fri, 26 Dec 2008 15:42:40 -0500 Received: from [199.232.76.173] (port=58393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGJW4-0007HL-AE for grub-devel@gnu.org; Fri, 26 Dec 2008 15:42:40 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:37112 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LGJW3-00005Z-P9 for grub-devel@gnu.org; Fri, 26 Dec 2008 15:42:40 -0500 Received: from pinux (unknown [192.168.0.78]) by mail.pina.cat (Postfix) with ESMTP id B195F288F30C3 for ; Fri, 26 Dec 2008 21:42:36 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id 4B70D77B2; Fri, 26 Dec 2008 21:42:36 +0100 (CET) Date: Fri, 26 Dec 2008 21:42:36 +0100 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20081226204236.GA16297@pina.cat> References: <87bpxru9w3.fsf@jidanni.org> <87eizu21o0.fsf_-_@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87eizu21o0.fsf_-_@jidanni.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [semi-PATCH] grub.texi: emergency booting without root passwd 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: Fri, 26 Dec 2008 20:42:41 -0000 Hello, (I'm not Grub expert) On Dec/27/2008, jidanni@jidanni.org wrote: > Please add this somewhere you feel comfortable with in grub.texi. > > I looked, but cannot find the right place. > > Thank you. > > @Chapter Tips > @node Forgot the root password > One place when grub can come in very handy is when one forgot the root > password, and hence cannot boot or even shutdown the system. Use > @example > linux /boot/vmlinuz-... root=... rw init=/bin/sh > initrd /boot/initrd.img-... > @end example > The key is the "rw init=/bin/sh". (And after editing /etc/passwd to change > root's :x: to ::, be sure not to just exit the shell, but hit > CTRL-ALT-DEL, else one has to push the reset button.) and I think that better type "sync" to synchronize the buffers. Also, I'm not sure if this should be in the Grub "Chapter Tips" (because it's half Grub related, half Linux related) (so, maybe would be useful but I wonder if it's the correct place) What other people thinks? -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info