Operating System - HP-UX
1831321 Members
3014 Online
110023 Solutions
New Discussion

how to go to single user mode

 
Fauziah Mahdan
Super Advisor

how to go to single user mode

Hi from unix 11.23 how to go to single user mode

thanks
fauziah
10 REPLIES 10
Ludovic Derlyn
Esteemed Contributor

Re: how to go to single user mode

hi,

try init S

regards

L-DERLYN
AwadheshPandey
Honored Contributor

Re: how to go to single user mode

try init S,
It's kind of fun to do the impossible
Fabio Ettore
Honored Contributor

Re: how to go to single user mode

Hi,

http://docs.hp.com/en/B2355-90950/ch05s01.html#aes-npar-329b

"Procedure 5-9. Booting HP-UX Into Single-User Mode on HP Integrity Servers"

Best regards,
Fabio
WISH? IMPROVEMENT!
BPatrick
Trusted Contributor

Re: how to go to single user mode

When the sytem boots up you will see a message "To discontinue press any key in 10 seconds". Press any key at that time.
enter
# bo pri
when promted press y to interact with IPC
then enter the command
hpux -is

This will take you to single user mode.
Fauziah Mahdan
Super Advisor

Re: how to go to single user mode

I run init S it goes to single user but when I umount error as device busy appear


Ninad_1
Honored Contributor

Re: how to go to single user mode

Hi,

The man page for init says for the S option "Transitioning into run level S from a higher run level does not terminate other system activity and does not result in a "single-user state"; this operation should not be done."
There may be some processes running which are still using the filesystems you want to unmount. By the way which filesystems are you trying to unmount ?
So you may either have to kill the processes using the filesystems (Use fuser -cu filesystemname - to check which processes are using the filesystem , and then after killing the processes - after understanding the implications, unmount the filesystem) OR Better option would be to reboot the server into single user mode.

Regards,
Ninad
Fauziah Mahdan
Super Advisor

Re: how to go to single user mode

HI Ninad,
If some other pc is still connecting to my server via telnet is it the reason why I get device busy after run init S.

I try to go to single user by rebooting the server but can see at what stage to enter any command so that I can go to ISL. The screen is to fast to restart.
Ninad_1
Honored Contributor

Re: how to go to single user mode

Depends if your server is PA-RISC or Integrity server.
Please refer to the guide
http://docs.hp.com/en/B2355-90950/ch05s01.html
and use the procedure according to your server architechture.

Firstly after you reboot the server keep on pressing the ESC key (Since you are not able to see the message and interrupt in time)
If its Integrity - The EFI Boot Manager will display the boot options menu (the EFI main menu).
From the boot options menu, select EFI Shell.
Then use boot -is to boot in single user mode.

If its PA-RISC
After interrupting it will come to BCH prompt
Main Menu: Enter command or menu > BOOT pri
Do you wish to stop at the ISL prompt prior to booting? (y/n) >> y
From the ISL prompt issue
ISL> hpux -is

Regards,
Ninad

Fauziah Mahdan
Super Advisor

Re: how to go to single user mode

Hi all,
I amanged to go to single user mode,through rebooting the server
press any key when the system prompted press any key to interrupt ...(forgot)
Then I type hpux -is

Thanks all...
Sucessfully extend the temp directory too.

Moral of the story try it 1st and then only cannot.
:-)

Thanks all

Fauziah
Bill Hassell
Honored Contributor

Re: how to go to single user mode

Despite the man pages for init S and shutdown with no parameters, true single user mode is not possible without a complete reboot. As you've seen, init S leaves mounted filesystems and shutdown 0 also fails to terminate multi-user processes as well as leaving filesystems mounted. The only way is shutdown -r 0 followed by manual intervention to interrupt the boot process.


Bill Hassell, sysadmin