LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-05-2013, 12:44 AM   #1
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Rep: Reputation: 1
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.
 
Old 03-05-2013, 12:50 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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?
 
Old 03-05-2013, 03:01 AM   #3
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by druuna View Post
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
 
Old 03-05-2013, 03:41 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by aashayshah View Post
# 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
That doesn't look like the inittab that's in the book.....
 
1 members found this post helpful.
Old 03-05-2013, 05:30 AM   #5
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
actually its a copy pasting mistake...

here is my inittab file:

# 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 --noclear tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600

# End /etc/inittab
 
Old 03-05-2013, 05:44 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by aashayshah View Post
actually its a copy pasting mistake...

here is my inittab file:
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?
 
Old 03-05-2013, 05:55 AM   #7
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
it was a mistake from the system . i corrected it and now i am able to get the login prompt and bash too .

bt yet the setting up linux console failure message persists , wat about dat ???
 
Old 03-05-2013, 05:58 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by aashayshah View Post
bt yet the setting up linux console failure message persists , wat about dat ???
Did you check the files I mentioned at the end of post #6?
 
Old 03-05-2013, 06:14 AM   #9
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
ok drunna problem solved.....
THANKS ALOT....

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 ???
 
Old 03-05-2013, 06:47 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by aashayshah View Post
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.

Especially this: The Bash Shell Startup Files. The other parts of chapter 3 are also worth reading/doing.
 
Old 03-05-2013, 07:54 AM   #11
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by aashayshah View Post
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
 
Old 03-05-2013, 08:06 AM   #12
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
i am sorry for that , ill make sure next time i mark thread SOLVED as soon as i apply peoples opinion and they work .
 
  


Reply



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
Booting LFS-7.0 (SVN) - Bash can't find libncursesw.so.5 xyon Linux From Scratch 1 01-18-2012 12:30 PM
problem in booting lfs even for the very first time sureka Linux From Scratch 3 05-21-2008 01:42 PM
login directly to bash shell openart Linux - Newbie 5 10-27-2004 08:05 AM
starting bash as a login shell every time slackwarefan Slackware 3 04-30-2004 02:55 PM
How to login to bash shell inarin Linux - Newbie 1 10-07-2003 02:45 PM

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

All times are GMT -5. The time now is 04:14 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