1754404 Members
3407 Online
108813 Solutions
New Discussion юеВ

SOS!Help Me pls!!!

 
may8000
New Member

SOS!Help Me pls!!!

system:hp-ux11.0
Machine:A180
description: can't boot because NO Shell found!!

Cause: I rename /sbin/ to /bin/
but the boot shell of /sbin/sh can't be found!
How can I do?
Help Me! I'm so anxious
may8000
5 REPLIES 5
Anthony Goonetilleke
Esteemed Contributor

Re: SOS!Help Me pls!!!

bad idea...
try booting from a OS core cd or a make_recovery tape if you have one.
If you don't it involves a bit of hacking around let me know,
Minimum effort maximum output!
may8000
New Member

Re: SOS!Help Me pls!!!

Forst of all, thank you very much.
Although I have used hp-ux for some time,
I donot install or even boot from a core
CD yet.Is there some dangerous here?Would you like give me some advice?

(I can use command like boot p0 /P1(from lan) hpux etc when boot)
Thank U again!
may8000
MARTINACHE
Respected Contributor

Re: SOS!Help Me pls!!!



- Insert CD
- Reboot your system
- stop the boot sequence
- search for your CD device :
- search IPL (this will all bootable device)
- boot Pxx
- Answer NO for Interact whith IPL
- In the menu select "Run a Recovery Shell"
- Then x Exit to shell
- chroot_lvmdisk
- cd /ROOT
- chroot /ROOT /sbin/sh
- vgchange -a y /dev/vg00
- mount -a
- now you can rename your directory
- reboot normally

Good Luck !

Patrice.
Patrice MARTINACHE
Patrick Wessel
Honored Contributor

Re: SOS!Help Me pls!!!

If renamed just the shell in the /etc/passwd can you still boot the system in single user mode...
There is no good troubleshooting with bad data
Suhas_2
Regular Advisor

Re: SOS!Help Me pls!!!

Hi,
Pls note...never ever change the shell of root from /sbin/sh to anything else.
Pl do man passwd: The login shell for the root user (uid 0)
must be /sbin/sh. Other shells such as sh, ksh, and csh are all located under
the /usr directory which may not be mounted during earlier stages of the bootup
process. Changing the login shell of the root user to a value other than /sbin/sh may result in a non-functional system.
================
The root account must use /sbin/sh, and may not be
changed to any of the shells in /bin. There are a couple of reasons for this,
all of which involve /usr not being mounted in single user mode.
When the system boots, one of the first things it must
do is exec a root shell at single user mode to run fsck and the various rc
scripts. At this time, the only file systems that are mounted are
/ and /stand. /bin is really a symbolic link to /usr/bin, which is not mounted, so the shells there are not available until /usr has been fsck'd and mounted, so we have no way to exec one of them. In addition, the files under /usr/bin are dynamically linked,
meaning the shared libraries under /usr and the dynamic linker /usr/lib/dld.sl must be available to load them (/lib is also a symbolic link to/usr/lib). The executables in /sbin are statically linked and do not require the shared libraries or the dynamic linker.The shell under /sbin/sh is not the old Bourne shell - it is a statically linked version of the posix shell, which should have most, if not all,of the functionality of the Korn shell.
Pls revert in case of any problem...

Regds....
Never say "Die"