1833873 Members
2556 Online
110063 Solutions
New Discussion

Default run level

 
Joe Robinson_2
Super Advisor

Default run level

I have a D9000 running 11.00, when the system reboots it shows that it is in run level 3 however it is not starting CDE and only has /, /var, /usr/, and /stand mounted. My inittab is correct. When I give the init 3 command CDE starts and all file systems mount normally. Any suggestions would be appreciated!

7 REPLIES 7
Jeff Schussele
Honored Contributor

Re: Default run level

Hi Joe,

If your /etc/inittab has this line as the first
init:3:initdefault:
Then I'd suspect something in run-level 2 is hanging & the system never makes it to RL 3.
Hook a console up & watch the boot or check /etc/rc.log to see just how for the rc sequence gets. Last entry in rc.log should be the suspect.
When you do the init 3, you're forcing the system to run the /sbin/rc3.d scripts.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Tim D Fulford
Honored Contributor

Re: Default run level

Stab in the dark....

Check /etc/passwd, if root's account does not have a valid shell the (/sbin/sh) the the boot sequence fails...

Regards

Tim
-
curt larson_1
Honored Contributor

Re: Default run level

you can also use who -r to see what run level you're at

but without /opt mounted i'd say you had a problem mounting the file systems and this is the reason for the startup scripts failing or hanging, their is no executables from /opt present.

I'd work on getting /opt mounted and the other files systems from vg00 then reboot the system
Dario_1
Trusted Contributor

Re: Default run level

Hi!

Check the /etc/rc.log file for errors. Also, check the following post for an extra idea of what could cause a situation like yours.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x268e3f9a15add711abdc0090277a778c,00.html

Regards,

Dario
Caesar_3
Esteemed Contributor

Re: Default run level

Hello!

Try this:
/usr/dt/bin/dtconfig -e
will enable the dt auto start.

Caesar
twang
Honored Contributor

Re: Default run level

Do you have a look in the shell for the root account?
- try to change it to /sbin/sh and see whether it works.
- if the shell is /usr/bin/ksh, change it to /usr/bin/sh and see.
- verify that you are really in runlevel 3.

Steven E. Protter
Exalted Contributor

Re: Default run level

twang brins up and important point. If the shell for root is changed all kinds of horrible things can happen.

Take a look at the file /etc/rc.log and see what the last step on a boot is. There should be an error message or at least you'll see the last command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com