Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

fresh install, can't login as root

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
adpowers
n00b
n00b
Posts: 25
Joined: Tue Jan 14, 2003 8:05 pm
Contact:
Contact adpowers
Website

fresh install, can't login as root

  • Quote

Post by adpowers » Tue Jan 14, 2003 9:21 pm

We just finished installing 1.4rc2 from stage 1. We set the root password before rebooting. However, due to some problems, we were unable to unmount the partitions and we had to do a cold reboot. We booted off the hard drive and everything went okay until we got to the log in prompt. We tried root with the password we set and it didn't work. It says "Login incorrect". We tried root with a blank password and it didn't work. We tried booting off the CD and using "passwd root" to change the root password. This didn't work either once we restarted into Gentoo. Does anyone know how to reset the root password, possible off the install CD? Thanks in advance,

Andrew
Top
compu-tom
Guru
Guru
Posts: 415
Joined: Thu Jan 09, 2003 10:00 pm
Location: Berlin, Germany

  • Quote

Post by compu-tom » Tue Jan 14, 2003 9:27 pm

After booting the CD, did you "chroot" to the root partition before you tried "passwd root"?
Top
adpowers
n00b
n00b
Posts: 25
Joined: Tue Jan 14, 2003 8:05 pm
Contact:
Contact adpowers
Website

  • Quote

Post by adpowers » Tue Jan 14, 2003 9:29 pm

Yeah, I used "chroot / /bin/bash".
Top
steveb
Advocate
Advocate
User avatar
Posts: 4563
Joined: Wed Sep 18, 2002 8:19 pm

  • Quote

Post by steveb » Tue Jan 14, 2003 9:33 pm

adpowers wrote:Yeah, I used "chroot / /bin/bash".

Code: Select all

chroot / /bin/bash
this is wrong!

normaly you would do:

Code: Select all

chroot /mountpoint_of_your_root_partition_where_you_want_to_install_gentoo /bin/bash
aka:

Code: Select all

mount /dev/hda3 /mnt/gentoo
chroot /mnt/gentoo /bin/bash
cheers

SteveB
Top
adpowers
n00b
n00b
Posts: 25
Joined: Tue Jan 14, 2003 8:05 pm
Contact:
Contact adpowers
Website

  • Quote

Post by adpowers » Thu Jan 16, 2003 12:17 am

Thanks, it works now.
Top
qba
n00b
n00b
Posts: 8
Joined: Sun May 11, 2003 1:16 pm

  • Quote

Post by qba » Sun May 11, 2003 1:20 pm

What can i do if i changed my root pw before:

Code: Select all

mount /dev/hda3 /mnt/gentoo 
chroot /mnt/gentoo /bin/bash
am i totally out of possibilities and need to reinstall?
Cheers!
/qba
Top
bsolar
Bodhisattva
Bodhisattva
User avatar
Posts: 2764
Joined: Sun Jan 12, 2003 5:14 pm

  • Quote

Post by bsolar » Sun May 11, 2003 1:27 pm

qba wrote:What can i do if i changed my root pw before:

Code: Select all

mount /dev/hda3 /mnt/gentoo 
chroot /mnt/gentoo /bin/bash
am i totally out of possibilities and need to reinstall?
You then changed the temporary password on the installation system (that is advised since then you are able to open other consoles when installing).

To change the password in the installed system chroot into it and then do 'passwd'.
I may not agree with what you say, but I'll defend to the death your right to say it.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic