From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LGI4d-0008B1-63 for mharc-grub-devel@gnu.org; Fri, 26 Dec 2008 14:10:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGI4b-000882-99 for grub-devel@gnu.org; Fri, 26 Dec 2008 14:10:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGI4Z-00086B-NW for grub-devel@gnu.org; Fri, 26 Dec 2008 14:10:12 -0500 Received: from [199.232.76.173] (port=51003 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGI4Z-000868-Jo for grub-devel@gnu.org; Fri, 26 Dec 2008 14:10:11 -0500 Received: from sd-green-bigip-66.dreamhost.com ([208.97.132.66]:54570 helo=homiemail-a3.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LGI4Z-0005AU-9R for grub-devel@gnu.org; Fri, 26 Dec 2008 14:10:11 -0500 Received: from jidanni.org (122-127-37-157.dynamic.hinet.net [122.127.37.157]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a3.dreamhost.com (Postfix) with ESMTP id 42DECC594F for ; Fri, 26 Dec 2008 11:10:09 -0800 (PST) To: grub-devel@gnu.org References: <87bpxru9w3.fsf@jidanni.org> From: jidanni@jidanni.org Date: Sat, 27 Dec 2008 03:10:07 +0800 Message-ID: <87eizu21o0.fsf_-_@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) Subject: [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 19:10:13 -0000 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.)