LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   CLFS Chapter 7 Can't Login. :-( (https://www.linuxquestions.org/questions/linux-from-scratch-13/clfs-chapter-7-cant-login-946088/)

David2010 05-21-2012 02:16 AM

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:


spiky0011 05-21-2012 06:19 AM

Hi what happens if you create a user and group

David2010 05-21-2012 02:12 PM

Quote:

Originally Posted by spiky0011 (Post 4683844)
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. :-/

spiky0011 05-21-2012 03:11 PM

Hi

Did you follow chapter 7.1 correctly as root
Code:

chown -v clfs ${CLFS}

David2010 05-21-2012 09:59 PM

Quote:

Originally Posted by spiky0011 (Post 4684233)
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?

David2010 05-24-2012 03:22 PM

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.

spiky0011 05-24-2012 03:27 PM

Hi

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


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