Operating System - HP-UX
1854872 Members
46447 Online
104105 Solutions
New Discussion

/etc/inittab run level 0...oh no!

 
Andrew Cunningham_2
Occasional Contributor

/etc/inittab run level 0...oh no!

B1000 HP-UX 10.2
In my efforts to get to single user mode to do some logical volume resizing, I
edited /etc/inittab and set the run level to '0'. I think I meant to put '1'
Now whenever the machine boots, after the initial boot sequence, it immediately
shutsdown and powers off. I assume that is what run-level 0 is ( duh!)
Is there any way out of this mess, without re-installing HP-UX?
Andrew
4 REPLIES 4
Keith Ralph_2
Occasional Contributor

Re: /etc/inittab run level 0...oh no!

Andrew
1.Interupt the boot process at the 'Press any key within 10 seconds to interupt
boot process' message to get the ISL prompt
2. boot to single user state ie
ISL> hpux -is boot.
3.Then you will probably need to mount /dev/vg00/lvol1 to get at /etc/inittab
4.Edit the etc/inittab file to change the runlevel.
5.Reboot.
Regards
Keith
Jason Luginbuhl_1
Frequent Advisor

Re: /etc/inittab run level 0...oh no!

Keith is correct in his solution.

However, I just wanted to clarify a few points.

1) After you press "Any key" to interrupt the boot sequence you will be brought
to a boot admin prompt. A. If the system that you are updated is a series 800,
then you can type "boot pri" to start booting off the primary boot path. Then
it will give you a question asking if you want to interract with ISL. Answer
"Yes". From there type the "hpux -is".
B. If the system is a series 700 then when you get to boot admin type "boot pri
isl". Without the ISL part, it will not give the choice to interact. From the
ISL prompt type the "hpux -is" as before.

2) Just to clarify, /dev/vg00/lvol1 will be mounted in single user. However,
/usr will not be. So many commands will not be in your path. You may want to
mount /usr to avoid having to specify /sbin before every command. To mount
/usr:
# /sbin/mount /usr
David Snape
New Member

Re: /etc/inittab run level 0...oh no!

On 10.20 vg00/lvol1 is usually /stand
lvol2 is swap, and lvol3 is /.

I'm not going to try it myself, but, if the previous suggestions don't work:
You could try booting to a recovery shell using the install CD.
Larry Meade_2
New Member

Re: /etc/inittab run level 0...oh no!

Once you do get into single user mode you may also need to mount /var to use vi
editor. Most systems are set to use /var/tmp for temporary vi files.