Operating System - HP-UX
1833777 Members
2067 Online
110063 Solutions
New Discussion

Re: Login mono user hp-ux

 
Alessandra Santos_1
New Member

Login mono user hp-ux

I don??t login with root. Show message /dev/root full system.
How mono login in hp-ux?

Thanks

Alessandra
5 REPLIES 5
Ricardo Bassoi
Regular Advisor

Re: Login mono user hp-ux

To boot an HP into single user mode:

When you see the message
To stop selection process, press and hold the ESCAPE key

press and hold the ESC key (this may take a few seconds to stop the process)
Next, you will see the message
Searching for Potential Boot Devices

Again, press and hold the ESC key (this too may take a few seconds)
You will see a menu with 4 or so single letter options and descriptions. Select option "a" for Boot Administration mode.
You will see the following prompt:
BOOT_ADMIN>

Type "search". (If you know the name of the default boot device, such as "scsi.6.0", you can omit this step.)
After the "search" completes, at the "BOOT_ADMIN" prompt, type
boot pn ipl

or
boot scsi.x.y ipl

where n corresponds to the device from which you want to boot as found by the "search" command, and where x and y correspond to the actual device numbers (6 and 0 for scsi.6.0)
At the
ISL>

prompt, type
hpux -is disk(;)/hp-ux

This will load and boot hp-ux from the default disk (from where IPL or ISL was loaded) and pass the "-s" flag to init.
After the system loads and begins to run /hp-ux, it may first run fsck on the root partition (if it is not clean). Following this, a shell (/bin/sh) running as root is created and you can do interactive administration.
When you are done, do not exit the shell since init will just place you in single user mode again with a new shell. Instead, type
init 3

to bring up the system multi-user
For more information, see the manual pages
hpux(1M)
hpux_700(1M) (for all series 700 HP computers)
boot(1M)
isl(1M)
pdc(1M)
init(1M)


Regards,

Bassoi
If you never try, never will work
Paul Sperry
Honored Contributor

Re: Login mono user hp-ux

re-boot into single user mode
watch the console during boot.

there will be a massges to press the spacebar (or some other key if it's a workstation)

this will bring you to a prompt :

type in

bo pri

the make the OS boot from the primary disk

when asked if you would like to interact with IPL say "y" for yes.

you will get to an IPL prompt where you should type in

hpux -is


you'll be in single user mode.

you should be able to change the root password
passwd root

then check out what is taking up all the space in /dev/root



Massimo Bianchi
Honored Contributor

Re: Login mono user hp-ux

Hi,
maybe not all is lost.

Have you any already logged user in your system, that can clean soome files and let you go in ?

This would be much easier than rebooting.

Also think: have you ant remsh working? Try to clean /tmp....

Otherwise the only chance is rebooting..

Massimo
Steven E. Protter
Exalted Contributor

Re: Login mono user hp-ux

if root can't log on, remesh won't accept logins either. Neither will secure shell. I know, its happened to me recently and in the distant pass back when I used remesh.

If you happen to have a valid telnet/ssh session open on the box, you might use it to get rid of a file on the / filesystem.

A simple reboot won't help, the system might not boot and will likely not allow logins unless its a temporary file filling up root.

Single user mode is the best idea because no filesystems are mounted.

It gives you a chance to look for hidden files.

lets say you did umount /opt

Then copied a bunch of files into /opt

They are actually on the root filesystem and once /opt is mounted they are totally invisible while the fs is mounted on the folder.

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
Caesar_3
Esteemed Contributor

Re: Login mono user hp-ux

Hello!

To enter the single mode do:
stop on boot and do boot from your disk,
on question about IPL answer "yes"
you will get prompt for IPL then
write > hpux -is
and you will boot to single mode.

Caesar