1832058 Members
3239 Online
110034 Solutions
New Discussion

single user mode

 
bobstar
Frequent Advisor

single user mode

hi,

can someone tell me how to put a system into single user mode ?

i have tryed init s

but when i try to umount /home system says no as device is busy

or do i need to do something else ?

thanks
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: single user mode

You can probably only boot into it, you can't take it from multiuser to single user. Or at least single user without killing some processes that have /home mounted?
bobstar
Frequent Advisor

Re: single user mode

how do i boot into single user mode

i know i will need to reboot, but at what stage do i need to select single user mode during startup ?
MarkSyder
Honored Contributor

Re: single user mode

Depends what release of OS you're using. For 11.11 or earlier, you will be given ten seconds to interrupt the boot by pressing any key. Do so. Then:

bo pri
Interact with ISL? Y
hpux -is

This will take you into single user mode. The procedure is different for 11.23, but I cannot give you the steps as I have never used it.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Redhat
Trusted Contributor

Re: single user mode

while booting interupt the boot process while you get message "press key before 10s"

it will give you the PDC menu

at this menu type sea ipl

it will give you the available boot disk
suppose it is P1

then type boot P1

it will ask you whether you want to interuct with IPL(y/N)
press Y
you will get ISL> prompt

type :- hpux -is(;0)/stand/vmunix to boot into single user mode.

Hope it helps you
Reshma Malusare
Trusted Contributor

Re: single user mode

Hi bobstar,
1> To reboot your system in single user mode:

Interrupt the boot process.
at the IPL> prompt type 'hpux -is'

So,boot the box and hit any key at the 10 second prompt to get into ISL mode. Then enter "hpux -is" and the machine will come up in single user mode

2> a possibility to reset the system (note: reset - not reboot!) is to logon to the MP, go to the command menu CM and issue a "RS":

MP:CM> rs

To boot into single user mode stop the auto bboot process:

Loading.: HP-UX Primary Boot: 0/4/1/0.0.0.1.0
Starting: HP-UX Primary Boot: 0/4/1/0.0.0.1.0

(C) Copyright 1999-2006 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF -- Revision 2.029

Press Any Key to interrupt Autoboot


\EFI\HPUX\AUTO ==> boot vmunix -is


Thanks & Regards
Reshma
Reshma Malusare
Trusted Contributor

Re: single user mode

Hey bobstar,
Also look at the following...You hardly assign any points

http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=BR884252&forumId=1
Yogeeraj_1
Honored Contributor

Re: single user mode

hi,

>but when i try to umount /home system says no as device is busy or do i need to do something else ?

Before you try to go into single user mode,
try running: fuser /home

The fuser command lists the process numbers of local processes that use the local or remote files specified by the File parameter. For block special devices, the command lists the processes that use any file on that device.

Each process number is followed by a letter indicating how the process uses the file:

c : Uses the file as the current directory.
e : Uses the file as a program's executable object.
r : Uses the file as the root directory.
s : Uses the file as a shared library (or other loadable object).

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)