- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Bad Shell - System didn't boot!!!!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 12:16 PM
07-16-2001 12:16 PM
I've made some changes in the 10.20 aiming enable the "bash" shell. Unfortunately, when the system rebooted, the following message appeared:
"
/sbin/ioinitrc:
INIT: SINGLE USER MODE
INIT: WARNING: Bad shell "/usr/bin/bash" for root
FIX root ENTRY in /etc/passwd AND REBOOT !!!
"
Could somebody give me a clue ?
Stenio
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 12:20 PM
07-16-2001 12:20 PM
SolutionTo correct this, boot into single-user mode, which you may already be at, activate the vg00 volume group (vgchange -a y /dev/vg00) mount your root filesystems (mount -a -- don't worry about failures of other volume groups) and use the vipw command to edit the password file and fix the root user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 12:22 PM
07-16-2001 12:22 PM
Re: Bad Shell - System didn't boot!!!!
You should not change the root shell to anything other than POSIX /sbin/sh shell.
As posted already, you need to fix this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 12:24 PM
07-16-2001 12:24 PM
Re: Bad Shell - System didn't boot!!!!
You did a bad,bad thing.
First, unless /usr/bin/bash is in /etc/shells,
you can't use it.
Secondly, in single user mode /usr is not mounted.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 12:31 PM
07-16-2001 12:31 PM
Re: Bad Shell - System didn't boot!!!!
...as the others have aptly noted, you "bash"ed yourself. root's shell *must* always be /sbin/sh.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 12:36 PM
07-16-2001 12:36 PM
Re: Bad Shell - System didn't boot!!!!
It will be simple if I had a shell available. There is nothing available (vi, ls, mount, vgchange, ...).
What should I do now?
Stenio.
-----------------------------------------------
Hello Everybody,
I've made some changes in the 10.20 aiming enable the "bash" shell. Unfortunately, when the system rebooted, the following message appeared:
"
/sbin/ioinitrc:
INIT: SINGLE USER MODE
INIT: WARNING: Bad shell "/usr/bin/bash" for root
FIX root ENTRY in /etc/passwd AND REBOOT !!!
"
Could somebody give me a clue ?
Stenio
Do NOT EVER use any shell other than /sbin/sh for root. If you do you will have MAJOR problems rebooting the system.
To correct this, boot into single-user mode, which you may already be at, activate the vg00 volume group (vgchange -a y /dev/vg00) mount your root filesystems (mount -a -- don't worry about failures of other volume groups) and use the vipw command to edit the password file and fix the root user.
melvyn burnard
---------------------------------
The clue is in the error message you got.
You should not change the root shell to anything other than POSIX /sbin/sh shell.
As posted already, you need to fix this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 12:53 PM
07-16-2001 12:53 PM
Re: Bad Shell - System didn't boot!!!!
Stop the boot process by hittin
Type bo pri
When it ask you if you want to interact with ISL?
Answer [Y]
In the ISL> prompt type: hpux -is
When you get a root prompt #
Type vipw --> this will let you edit your passwd file.
Change the root shell to /sbin/sh.
and
init 3
Or
try to mount your
/usr /var.
If it fails you would have to fsck /dev/vg00/lvolxx where /usr and /var are.
Then mount /usr and /var
and vi your passwd file and edit it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2001 01:06 PM
07-16-2001 01:06 PM
Re: Bad Shell - System didn't boot!!!!
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 05:55 AM
07-17-2001 05:55 AM
Re: Bad Shell - System didn't boot!!!!
But...
I've entered interactively with ISL and tried to load the OS using "hpux -is" option. The system failed in the same way that before: load it in single user with a bad shell. I still do not have a shell available after this procedure.
I've tried to boot using another kernel in the ISL (hpux -is /stand/vmunix.prev) but it didn't work.
Any other tip ? Should I have to reinstall the entire system ?
Stenio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 06:00 AM
07-17-2001 06:00 AM
Re: Bad Shell - System didn't boot!!!!
In your case, booting single-user doesn't help at all. You need to boot from a recovery CD so that your root is actually on another filesystem. You then mount your old system / and edit or copy /etc/passwd.
The other option you have (if you have a spare system) is to removbe the drive and put in a bootable system and make the changes. In any event, a recovery CD is your easist option.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 06:18 AM
07-17-2001 06:18 AM
Re: Bad Shell - System didn't boot!!!!
So you need a working system where you can mount and correct your /etc/passwd. The best option is to boot an a recovery CD and mount your harddrive. Another option is to install this harddrive as a second disc an a working system and mount it.
I can't think of any other option than to use a CD or another Workstation. Using a previous kernel doesn't help as your kernel is prefectly ok, its your configuration which is wrong. Also as you are stuck in single user mode, you can't use any networkservices (rcp, ftp ...)
Hope this helps
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 07:08 AM
07-17-2001 07:08 AM
Re: Bad Shell - System didn't boot!!!!
The last try:
Using the recovery disk I've got a support shell. But, I couldn't mount the old /etc in order to replace the old /etc/passwd with the new one available. It won't work if I mount a NFS in another system either. There are some unavailable tools and options in that support shell (fstyp, mount -v, etc.). When I try to mount any point the OS returns with "unrecognized file system".
I promise that is the last question to the forum. If doesn't work... Forgetaboutit!! I've got a full backup.
Stenio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 07:16 AM
07-17-2001 07:16 AM
Re: Bad Shell - System didn't boot!!!!
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=10521465193e37104f/screen=ckiDisplayDocument?docId=200000047869320
The part you are interested in is where you do the chroot_lvmdisk. Be sure you know the hardware path to your boot disk.
Hopefully this makes sense.