- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: abnormal issue when system boot:/sbin/rc could...
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
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
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
11-05-2010 01:46 AM
11-05-2010 01:46 AM
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1455121
above thread discribed the issue I met at an rp2430.
When I boot this rp2430, and when it tried to run /sbin/rc, it told:
/sbin/rc[67]: can not execute
/sbin/rc:failed to read row and column info from screen.
HP-UX Start-up in progress
Starting Servicecontrol Manager daemon............[OK]
Starting the Skywin-wg Subsystem........[OK]
everything in /sbin/init.d was not startup, so the os was not completely an os. /sbin/rc and /etc/rc.config were not modified recently.
the 66th and 67th lines of /sbin/rc:
if [ -f /etc/rc.config ]; then
. /etc/rc.config
could you please offer some hints to fix this problem?
thanks a lot!
Solved! Go to Solution.
- Tags:
- rc.config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2010 01:59 AM
11-05-2010 01:59 AM
Re: abnormal issue when system boot:/sbin/rc could not execute.
>could you please offer some hints to fix this problem?
This script fragment sources just about EVERYTHING in /etc/rc.config.d. Remove old backup and junk files there.
(Or create a subdirectory.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2010 02:26 AM
11-05-2010 02:26 AM
Re: abnormal issue when system boot:/sbin/rc could not execute.
You shouldn't keep those backups in that directory.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2010 04:41 AM
11-05-2010 04:41 AM
SolutionAs noted, keeping "backup" copies of files in the '/etc/rc.config.d' directory can lead to the behavior you have observed. You can keep backup copies of files here _ONLY_ if you follow the rules documented in '/etc/rc.config'.
One way to expose your problem is to do:
# sh -vx /etc/rc.config 2>&1|more
The actual filename will appear as 'fname=' in the traced output with clear syntax errors like you have seen.
For more on this, see:
You probably have a bogus file in the '/etc/rc.config.d' directory. You can keep backup copies of files here _ONLY_ if you follow the rules documented in '/etc/rc.config'.
One way to expose the problem is to do:
# sh -vx /etc/rc.config 2>&1|more
The actual filename will appear as 'fname=' in the traced output with clear syntax errors like you have seen.
See my further comments in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1350776
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2010 05:26 AM
11-05-2010 05:26 AM
Re: abnormal issue when system boot:/sbin/rc could not execute.
thank you for your reply!
I could never imagine such situation that would cause this issue. I would try your method next week, hopefully it would work out!
regards
stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 11:10 PM
11-09-2010 11:10 PM
Re: abnormal issue when system boot:/sbin/rc could not execute.
Probably your /sbin/init itself is corrupt since /sbin/rc is symbollically linked to it. If the above solutions do not work try booting from a recovery shell and proceed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2010 12:31 AM
11-10-2010 12:31 AM
Re: abnormal issue when system boot:/sbin/rc could not execute.
You were so right. someone emptied most scripts at /sbin/init.d two years ago. since it was not rebooted all the time, so no one found out what happened.
regards
Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2010 12:32 AM
11-10-2010 12:32 AM