1836611 Members
3812 Online
110102 Solutions
New Discussion

Reg:crto error

 
Chandrasekar_2
Occasional Advisor

Reg:crto error

Hi everyone
I have a problem booting into my HP workstation. The problem is that I was trying to resize (actually reduce) the /usr
directory . So I made a backup of my /usr under
another directory called /opt. Then I switched to single user mode, unmounted
the /usr direcotory, removed the logical volume mounted on /usr. After that I
created a new logical volume of required size and created the filessystem for
the new volume and mounted it on /usr. When I was trying to move the files
(as copy is not active in single user mode) from my backup directory to /usr
, it did not move fully. Actually the size I gave for /usr was the one
existing earlier before I increased it , which I was trying to revert it now.
But still the move command does not move all the files and I am caught with
files scattered partially in my /usr and /backup usr directory. When I try to
reboot it gives me this message in a loop
INIT :single user mode
"crto:Error couldnt open /usr/lib/dld.sl errno:000000002"
Also when I try to boot normally it gives me the error
"Init command is respawning too rapidly
will try again in 5 minutes
check for possible errors
id: cons /usr/sbin/getty console console #system console"
How can I get back to command prompt in single user mode to make any changes . Also how can I restore the files in my /usr directory. The problem is I cant reinstall HP-UX as we dont have the software warranty for the workstation.
Looking forward to your replies
regards
chandrasekar
5 REPLIES 5
David Lodge
Trusted Contributor

Re: Reg:crto error

Eek!

Bad Bad thing to do...

/usr contains all the dynamic libraries and all the system executables - if you have any of the above missing you will have *great* difficulties booting...

/usr/lib/libdl is IIRC the dynamic library loader - essentially *the* most important library (along with libc) and most executables will not work without it.

The command respawning too quickly is the init process starting a process and that process dying too soon. (such as if it couldn't start because it couldn't load a dynamic library)

Your solution: you will have to use maintance mode. This is a special mode designed for emergency admin when you cannot access several of the volumes. The advantage of MM over single user is that LVM is not started, and all utilities are in /sbin so are statically linked (the only statically linked executables on HP-UX!)

To get into MM, do the following:
* power off
* power on
* interrupt boot process to get to firmware prompt
* boot off the boot disk and we *do* want to interact with ISL
* at the ISL prompt enter:
hpux -lm

When you get into mm you will be stuck in a mode with *no* nice features (no more, vi etc)
you'll need to manually mount all volumes etc, but it gets you in!

dave
Chandrasekar_2
Occasional Advisor

Re: Reg:crto error

Hi Dave
Thanks for the information. I tried out booting in maintenance mode but it seems to give the same error message as that in single user mode. The question might be silly but is it
>hpux -lm(Lm) or hpux -1m(one m)
Iam a novice in unix systems so not aware of bits and bytes of the system.
regards
chandrasekar
David Lodge
Trusted Contributor

Re: Reg:crto error

It's a lower case L.

This should work as maintenance mode doesn't go anywhere near /usr (doesn't even mount it!)
Chandrasekar_2
Occasional Advisor

Re: Reg:crto error

Hi
I regret for the inconvenience. I tried again to boot in maintenance mode but it gives the same message
INIT:single user mode
crto:error
I can see that it mounts only root and swap logical volumes but still this error keeps recurring.
I was wondering whether I have to boot through disks other than hard disk in order to make it work.
Bill Hassell
Honored Contributor

Re: Reg:crto error

The system is probably not recoverable. If you did not make a recovery tape using Ignite/UX, you will probably have to reinstall and restore from backup tapes.


Bill Hassell, sysadmin