[SOLVED] No bash shell or login after booting lfs for first time ?
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
No bash shell or login after booting lfs for first time ?
i completed building the lfs , and as i rebooted my computer to start lfs for the first time ,
i saw a grub entry named linux from scratch 7.2 ,
i pressed enter and it started booting , many messages came on the screen and at last , it stopped saying
init: no more run-levels .
Like why ??? why didnt it ask me for login ?? why didnt it start bash ??
It sat like dumb , doing nothing .
Can anyone tell me where i went wrong ??
Please help .
Thanks in advance.
This might point to an /etc/inittab (chap 7.7.1.) that isn't correct, but other issue's can also be the cause of this.
Can you post the exact error message (and 5 to 10 lines before it) and your /etc/inittab?
Thanks alot for your reply drunna...
This is what i see on the screen :
Setting up Linux console...
FAILURE
You should not be reading this message
It means that an unforeseen error took place in
/etc/rc.d/rcS.d/s70console ,
which exited with return value of 1
If you are able to trace this error down to a bug in one of the files provided by the files provided by the LFS book ,
please be so kind to inform us at lfs-dev@linuxfromscratch.org
Press enter to continue
After i press enter , i see this:
INIT:Id "2" respawning too fast, disabled for 5 minutes.
INIT: no more processes left in this run level .
It stops there and does nothing , then finally i hav to power off pc
my etc/inittab contains:
# Begin /etc/inittab
id:3:initdefault:
si::sysinit:/etc/rc.d/init.d/rc S
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:S016nce:/sbin/sulogin
1:2345:respawn:/sbin/agetty
2:2345:respawn:/sbin/agetty
3:2345:respawn:/sbin/agetty
4:2345:respawn:/sbin/agetty
5:2345:respawn:/sbin/agetty
6:2345:respawn:/sbin/agetty
--noclear tty1 9600
tty2 9600
tty3 9600
tty4 9600
tty5 9600
tty6 9600
# End /etc/inittab
Is this a copy/paste from the book or from your system?
Another thing I noticed:
Quote:
Setting up Linux console...
FAILURE
You should not be reading this message
It means that an unforeseen error took place in
/etc/rc.d/rcS.d/s70console ,
which exited with return value of 1
Have you checked /etc/rc.d/init.d/console and /etc/sysconfig/console? Are they correct?
one question: After i login , it prints bash-4.2 , then no matter to whichever directory i switch to , it doesnt show that directory name next to bash ... Why so ???
one question: After i login , it prints bash-4.2 , then no matter to whichever directory i switch to , it doesnt show that directory name next to bash ... Why so ???
LFS is a very basic/minimal Linux system and this is also true for the prompt. Have a look at BLFS chapter 3.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
Quote:
Originally Posted by aashayshah
ok drunna problem solved.....
THANKS ALOT....
Could you be a bit more specific for other users reference? What bit actually solved the problem and can you mark solved threads as SOLVED so that people don't need to try and help a problem that doesn't now exist
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.