LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-29-2008, 03:24 AM   #1
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Rep: Reputation: 16
System boot hangs at Starting NTP server: ntpd. WHY?


After I recompiled the kernel, I reboot the machine, but it hangs at:
INIT: Entering runlevel: 2
Starting OpenBSD Secure Shell server: sshdNET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
.
Starting NTP server: ntpd.
I thought it was the ntpd init script, and I removed all the links in rc*.d, but the booting process hanged without "Starting NTP server: ntpd."

I don't know what to do. Any help?

shawn
 
Old 10-29-2008, 03:39 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 49
Look at the order of the start scripts - what comes after 'ntpd' and what could go wrong with it?
 
Old 10-29-2008, 04:56 AM   #3
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by pinniped View Post
Look at the order of the start scripts - what comes after 'ntpd' and what could go wrong with it?
the script order after ntp is:
S99rc.local -> ../init.d/rc.local
S99rmnologin -> ../init.d/rmnologin
S99stop-bootlogd -> ../init.d/stop-bootlogd
If I use the original kernel, the init process completes OK.

IS the same init scripts the reason?
 
Old 10-29-2008, 05:14 AM   #4
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
I tested, it is not the init scripts in run level 2, because scripts are executed successfully.
But what follows init scripts in the boot process to eventually get a login prompt?
 
Old 10-29-2008, 05:35 AM   #5
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 49
The "init" program is ultimately responsible for setting up the login prompt and so on. For example, on Linux the init program processes the /etc/inittab file to set up the various virtual consoles, serial consoles, and dial-in programs. I can't remember the details of the order of things so I don't know if 'inittab' is processed before or after the runlevel init scripts.

Does the computer really hang, or can you still log in via sshd?

Since you say everything works fine with your previous kernel, you should look at the differences in the configuration of your older kernel and your new one.
 
Old 10-29-2008, 07:47 AM   #6
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
The problem is resolved. It is the tty that is not configured.
Thank you any way. And the computer does not really hang, I can still log in via ssh.

Shawn
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting system message bus :dbus --ldap client hangs at this stage sarajevo Linux - Server 1 02-05-2010 01:03 PM
System Hangs during boot (starting HAL daemon ) on FC 6 32 bit with pentium D karthik_arnold1 Linux - Hardware 1 04-21-2008 12:05 PM
Hangs on boot at Starting Hotplug Subsytem... xerxesdaphat Linux - Software 7 02-23-2006 07:16 AM
KDE Hangs at Starting System Services... Snabber Linux - General 3 11-03-2004 07:31 AM
NTPd - ntp.conf warath Linux - Software 8 04-05-2004 08:42 AM


All times are GMT -5. The time now is 04:12 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration