View previous topic :: View next topic |
Author |
Message |
GNoob n00b
Joined: 30 Sep 2006 Posts: 8
|
Posted: Sat Sep 30, 2006 3:53 pm Post subject: [Solved]Please help... Forgot Gentoo Root PW |
|
|
I searched many forums looking for an answer on how to set a new root password. They all suggest using the live cd. BTW, i have a powerbook G4. I download a couple of live cd's from different sites and try to boot off the live cd. But nothing happens it just does its thing and asks for login then password. I've tried holding down c as well as ctrl c in the startup process but did not work. If any of you have some experience with macs and gentoo plz help me.
Last edited by GNoob on Sun Oct 01, 2006 3:38 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat Sep 30, 2006 4:19 pm Post subject: |
|
|
GNoob,
At the grub menu, press e and add the word single to the end of the kernel line.
The system will start in single user mode with you in a root shell.
You may the issue the passwd command.
If that fails, add init=/bin/bash instead you can issue the pawwd commad from there too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
GNoob n00b
Joined: 30 Sep 2006 Posts: 8
|
Posted: Sat Sep 30, 2006 5:17 pm Post subject: |
|
|
Im sorry, but i dont even see the grub menu. As soon as the the powerbook boots up i see a penguin on the upper left hand corner of the screen and underneath it all the things loading up. Then after that a prompt for my login shows up. Is there anything else i can do? |
|
Back to top |
|
|
GNoob n00b
Joined: 30 Sep 2006 Posts: 8
|
Posted: Sat Sep 30, 2006 9:21 pm Post subject: Please help... Forgot Gentoo Root PW |
|
|
I searched many forums looking for an answer on how to set a new root password. They all suggest using the live cd. BTW, i have a powerbook G4. I download a couple of live cd's from different sites and try to boot off the live cd. But nothing happens it just does its thing and asks for login then password. I've tried holding down c as well as ctrl c in the startup process but did not work. If any of you have some experience with macs and gentoo plz help me. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Sep 30, 2006 9:47 pm Post subject: |
|
|
GNoob wrote: | As soon as the the powerbook boots up i see a penguin on the upper left hand corner of the screen ... |
You need to stop the boot process earlier than this.
Yaboot (the bootloader you are using) is fairly similar to LILO.
When you see the "boot :" prompt, press <tab> to see what kernels you have installed.
Assuming your kernel is called "gentoo", boot like this.
Code: | boot : gentoo init=/bin/bash rw |
This will skip all the startup scripts, and give you a root prompt.
At that point, set a password, and reboot.
Code: | # passwd
# sync
<ctrl><alt><del> |
|
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Sat Sep 30, 2006 9:47 pm Post subject: |
|
|
Boot your installation LiveCD.
Mount your partitions (reference here).
chroot into your installation (same page, further down).
Change your root password with passwd. _________________ --Aaron |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Sat Sep 30, 2006 9:58 pm Post subject: |
|
|
Even easier, when yaboot comes up, just pass init=/bin/sh to the kernel you usually boot with. This will give you a root shell, allowing you to then reset the root password. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Sat Sep 30, 2006 10:20 pm Post subject: |
|
|
I saw that in his other topic after I posted the LiveCD solution. Yours is much slicker. _________________ --Aaron |
|
Back to top |
|
|
GNoob n00b
Joined: 30 Sep 2006 Posts: 8
|
Posted: Sat Sep 30, 2006 10:33 pm Post subject: |
|
|
Thanks guys i appreciate the help, but i still havent resolved the problem. I can't boot the live cd. I put it in the drive and restart it. The computer starts to load and i see a penguin on the upper left corner of the screen. I dont see menu. When finish loading the computer prompts for the login name then password. Is there something i need to do so the powerbook boots from the cd?
Thanks in advance. |
|
Back to top |
|
|
mwallace n00b
Joined: 08 Jul 2006 Posts: 52 Location: Frankfurt/Germany
|
Posted: Sat Sep 30, 2006 11:48 pm Post subject: |
|
|
Yes, as you already mentioned: Keep the c button pressed from the moment when you hear the apple startup sound until the cd begins to boot. It won't hurt keeping it pressed longer than necessary. |
|
Back to top |
|
|
GNoob n00b
Joined: 30 Sep 2006 Posts: 8
|
Posted: Sun Oct 01, 2006 12:33 am Post subject: |
|
|
When i hold c down nothing happens. The computer remains with a black screen and nothing happens. I think im better off formating the thing and start with a fresh copy. Any other solutions to this or can someone explain whats going on with my system. Thanks guys. |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Sun Oct 01, 2006 12:52 am Post subject: |
|
|
GNoob:
I'm not sure if you missed my post above, but there's no reason to reinstall, just use the method I posted above... :p _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
GNoob n00b
Joined: 30 Sep 2006 Posts: 8
|
Posted: Sun Oct 01, 2006 1:21 am Post subject: |
|
|
Yeah i read your post. Yaboot does not come up. I just get the penguin on the top left of the screen with the stuff loading underneath it. Then i get a prompt to type my login. |
|
Back to top |
|
|
GNoob n00b
Joined: 30 Sep 2006 Posts: 8
|
Posted: Sun Oct 01, 2006 3:16 am Post subject: |
|
|
JoseJX wrote: | Even easier, when yaboot comes up, just pass init=/bin/sh to the kernel you usually boot with. This will give you a root shell, allowing you to then reset the root password. |
Finally got the yaboot screen. I typed
"init=/bin/sh" and got no such file or directory.
What i am doing wrong? |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Sun Oct 01, 2006 5:00 am Post subject: |
|
|
If you just type init=... yaboot will try to load a kernel with that name. :p
Type the name of the kernel, followed by root= your root, then init=/bin/sh:
For instance, if your kernel is named vmlinux-2.6.17 and your root partition is /dev/hda4:
Code: | vmlinux-2.6.17 root=/dev/hda4 init=/bin/sh |
_________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
GNoob n00b
Joined: 30 Sep 2006 Posts: 8
|
Posted: Sun Oct 01, 2006 3:37 pm Post subject: |
|
|
JoseJX wrote: | If you just type init=... yaboot will try to load a kernel with that name. :p
Type the name of the kernel, followed by root= your root, then init=/bin/sh:
For instance, if your kernel is named vmlinux-2.6.17 and your root partition is /dev/hda4:
Code: | vmlinux-2.6.17 root=/dev/hda4 init=/bin/sh |
|
Got it!!! Everything worked.
I appreciate it a lot. Thanks for all your help. |
|
Back to top |
|
|
|