Operating System - HP-UX
1836082 Members
2397 Online
110089 Solutions
New Discussion

Boot HP-UX 11.0 system in single user mode

 
Srinivasa Katta
Occasional Contributor

Boot HP-UX 11.0 system in single user mode

How can I boot the HP-UX 11.0 OS workstation in single user mode
Is the format command (which is to see the disks info) works in HP-UX 11.0 OS?
skatta
6 REPLIES 6
Anil C. Sedha
Trusted Contributor

Re: Boot HP-UX 11.0 system in single user mode

Hi,

You can boot your system in single user mode by doing init 2 from your system.

However, you can also reboot your system using
shutdown -ry 0

when you see the system coming up again you can interrupt the system boot sequence (it will ask you to press any key in 10 sec to stop booting), and then after pressing the key at that stage type

hpux -is

this will take you to single user mode

hope this helps for you..

PS: Don't forget to award points if you find suitable answers
If you need to learn, now is the best opportunity
Helen French
Honored Contributor

Re: Boot HP-UX 11.0 system in single user mode

Hi Sri:

1) Try this from command line:

# init s
# init S - both will bring system to single user mode.

2) If you can reboot, this will do the task:

a) interrput normal boot process
b) enter 'bo' command at console menu
c) interact with ISL
d) ISL > hpux -is

The format command in hp-ux 11.0 is used to format an HP SCSI disk array LUN. For disk information use:

# diskinfo
# stm
# ioscan -fnC disk
# sam

HTH,
Shiju
Life is a promise, fulfill it!
Domenico_5
Respected Contributor

Re: Boot HP-UX 11.0 system in single user mode

Hi

Wilson have a correct suggestion, but before run any command like sam or other, you must mount all filesystem with:

mount -a

bye
Helen French
Honored Contributor

Re: Boot HP-UX 11.0 system in single user mode

Hi Domenico,

Just an addition:

You don't need to mount the file systems to find out the properties of a disk/VG/LV. If you mount the file system, you can check the properties with bdf, du etc.

But, even if the file systems are not mounted, you can still check the disks with sam, pvdisplay, diskinfo, stm, ioscan, vgdisplay, lvdisplay etc.

Also if you are using mount -a command, then make sure that the entry is in /etc/fstab file.

HTH,
Shiju
Life is a promise, fulfill it!
Jeff Schussele
Honored Contributor

Re: Boot HP-UX 11.0 system in single user mode

Hi Srinivasa,

Others have answered your first question.
As to your second - Yes 11.0 supports the format command...BUT....ONLY on HP-array LUNs. You can use the mediainit /dev/rdsk/cxtydz
command for low-level init & media check.
NOTE: you must specify the character or raw disk - the /dev/rdsk/cxtydz device.

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

Re: Boot HP-UX 11.0 system in single user mode

Note however that format & mediainit are destructive commands.
If you are just wanting info on the disk then the
diskinfo /dev/rdsk/cxtydz
is the command that you should use.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!