LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-21-2012, 02:16 AM   #1
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
CLFS Chapter 7 Can't Login. :-(


I have been trying to figure this out for almost three days now and I am stumped.

I had to follow "If You Are Going to Boot" because I was compiling from a 32-bit machine to a 64-bit machine. I kinda got used to copy and paste for the configuration tidbit but... whatever.

After several days of tinkering with the kernel (13th compile I think) I finally got a bootable kernel.

However.... I can't log in.

It shows a login prompt:

Code:
none(login):
However no matter what I type into the username, it never asks for a password but rather repeats back with the login screen almost as if nothing happened. There is a small delay like it is thinking about something but nothing is printed to the screen.

/etc/passwd:

Code:
root::0:0:root:/root:/bin/bash
/etc/inittab:

Code:
# Begin /etc/inittab

id:3:initdefault:

si::sysinit:/etc/rc.d/init.d/rc sysinit

l0:0:wait:/etc/rc.d/init.d/rc 0
l1:S1:wait:/etc/rc.d/init.d/rc 1
l2:2:wait:/etc/rc.d/init.d/rc 2
l3:3:wait:/etc/rc.d/init.d/rc 3
l4:4:wait:/etc/rc.d/init.d/rc 4
l5:5:wait:/etc/rc.d/init.d/rc 5
l6:6:wait:/etc/rc.d/init.d/rc 6

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

su:S016:once:/sbin/sulogin

1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600

# End /etc/inittab
/etc/group:

Code:
root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:
video:x:12:
utmp:x:13:
usb:x:14:
cdrom:x:15:

Last edited by David2010; 05-21-2012 at 02:03 PM. Reason: Typos.
 
Old 05-21-2012, 06:19 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi what happens if you create a user and group
 
Old 05-21-2012, 02:12 PM   #3
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by spiky0011 View Post
Hi what happens if you create a user and group
Its far to early in the CLFS build for that.

The useradd and groupadd commands don't exist yet and wont until chapter 10. :-/

The "shadow" package that contains useradd and groupadd can't be installed in a cross compiled manner. :-/

Last edited by David2010; 05-21-2012 at 02:15 PM.
 
Old 05-21-2012, 03:11 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Did you follow chapter 7.1 correctly as root
Code:
chown -v clfs ${CLFS}
 
Old 05-21-2012, 09:59 PM   #5
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by spiky0011 View Post
Hi

Did you follow chapter 7.1 correctly as root
Code:
chown -v clfs ${CLFS}
Yes I did but just to be sure I just completely redid chapter 7 and when I rebooted...

You guessed it. Same problem. :-(

Is there anyway to completely bypass the login (just for now) and still have multiple TTY's?

Edit:

I was able to get the system to boot by passing "init=/bin/bash rw" to the kernel, running "source /root/.bash_profile", and then running "exec init single" but I only get one TTY. So the problem lies in multi-user mode.

I tried running "agetty 9600 TTY2 &" which DOES create a new TTY but the new tty is running in multi-user mode and asks for a login which also doesn't work. :-/

Is there any way to create extra TTY'S in single user mode?

Last edited by David2010; 05-21-2012 at 11:15 PM. Reason: Dirty Hack
 
Old 05-24-2012, 03:22 PM   #6
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
I gave up on the project and in a fit of drunken rage deleted the entire partition and all the files in it.

I think I will try LFS rather than CLFS and build a 32-bit linux on my 64-bit computer. If that doesn't work then I will give it the middle finger and call it a piece of ****. xD

Thanks for the help anyway.
 
Old 05-24-2012, 03:27 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Sorry I could help more But I have never done clfs.
I hope you get better results with lfs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing $CHOST variable after tools are built (Chapter 10 CLFS guide) manwithaplan Linux From Scratch 1 11-12-2010 10:48 AM
[CLFS] E2fsprogs in chapter 7.5 - Can't find libblkid SkepticalMystic Linux From Scratch 1 10-01-2010 01:36 AM
gcc problem (chapter 6.4.1 of the Pure64 CLFS book) charlie_lab Linux From Scratch 0 03-14-2010 08:51 AM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
chown clfs:clfs mishap Louis_Carole Linux From Scratch 4 03-21-2007 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration