View previous topic :: View next topic |
Author |
Message |
telebabbo n00b
Joined: 23 Nov 2010 Posts: 55
|
Posted: Sat Jul 09, 2011 3:00 pm Post subject: [SOLVED with chroot] Root password not set: I can't log in |
|
|
Hi all
I've just finished gentoo installation, step-by-step according to the official Handbook, but I noticed I haven't set system password...
After reboot I can't log in...
Ideas?
[please, don't tell me "do everything again" ]
T.
Last edited by telebabbo on Sat Jul 09, 2011 3:37 pm; edited 1 time in total |
|
Back to top |
|
|
jcTux Apprentice
Joined: 29 Dec 2009 Posts: 276 Location: Tours, France
|
Posted: Sat Jul 09, 2011 3:27 pm Post subject: |
|
|
Just boot with a live cd again.
Chroot (follow the handbook).
And set the password.
|
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Sat Jul 09, 2011 3:31 pm Post subject: |
|
|
Just the chrooting part.
Boot from the media you used to install the system.
Code: |
mount /dev/ROOT /mnt/gentoo
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile
passwd
exit
umount /mnt/gentoo/proc
umount /mnt/gentoo
reboot |
|
|
Back to top |
|
|
telebabbo n00b
Joined: 23 Nov 2010 Posts: 55
|
Posted: Sat Jul 09, 2011 3:36 pm Post subject: |
|
|
jcTux wrote: | Just boot with a live cd again.
Chroot (follow the handbook).
And set the password.
|
Worked perfectly |
|
Back to top |
|
|
|