From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LQolz-0003pG-3O for mharc-grub-devel@gnu.org; Sat, 24 Jan 2009 15:06:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQolx-0003op-Fz for grub-devel@gnu.org; Sat, 24 Jan 2009 15:06:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQolw-0003oX-33 for grub-devel@gnu.org; Sat, 24 Jan 2009 15:06:29 -0500 Received: from [199.232.76.173] (port=41506 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQolv-0003oU-V6 for grub-devel@gnu.org; Sat, 24 Jan 2009 15:06:27 -0500 Received: from mta-out.inet.fi ([195.156.147.13]:46734 helo=kirsi1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LQolv-0004nk-9S for grub-devel@gnu.org; Sat, 24 Jan 2009 15:06:27 -0500 Received: from [192.168.1.102] (84.248.105.254) by kirsi1.inet.fi (8.5.014) id 48FC5AC9042A6679 for grub-devel@gnu.org; Sat, 24 Jan 2009 22:06:26 +0200 Message-ID: <497B74BD.8020201@nic.fi> Date: Sat, 24 Jan 2009 22:06:21 +0200 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: The development of GRUB 2 References: <87bpxru9w3.fsf@jidanni.org> <87eizu21o0.fsf_-_@jidanni.org> <20081226204236.GA16297@pina.cat> In-Reply-To: <20081226204236.GA16297@pina.cat> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Sat, 24 Jan 2009 20:06:29 -0000 Carles Pina i Estany wrote: > 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? First of all it does not work with every Linux distribution and secondly I do not see that we should take any side how to enter to Linux installations without proper authentication... So you are free to keep information like this on the web, but not as part of official grub distribution...