On Sat, Nov 08, 2008 at 11:53:17AM +0800, Umarzuki Mochlis wrote: > make sure the keyboard works normally. Try typing a few minutes with a live > CD. > > You can reset the password by: > > appending "init=/bin/bash" to boot parameter > > remount root directory > # mount -o remount,rw / > > reset root's password > # passwd root
Mount it read-only again (arrow up to get previous lines) # mount -o remount,ro / Continue with standard boot sequence: # exec /sbin/init Two things to note: 1. if you just changed the password and pulled the plug, changes were probably not saved. mounting read-only is normally a good way to see that the changes are saved. 2. The exec trick works because the shell is process no. 1. Thus if you exec /sbin/init in the same process it knows it is THE init process, and not a telinit(8). -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849754 | | friend -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]