- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /sbin/rc[61]: Error
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
05-02-2002 07:47 AM
05-02-2002 07:47 AM
/sbin/rc[61]: Error
I have HP Visualize C200 running HP-UX 10.20.
When I boot the system I can get the following error:
/sbin/rc[61]: ^M: not found
" "
" "
...
It is also indicated in /etc/rc.log. Also /etc/rc.log file consists ;
"/sbin/rc1.d/S320hostname start" FAILED
...
/sb??n/rc1.d/S320hostname[36]: ^M: not found.
" "
" "
...errors.
Then, in start-up progress, Setting Hostname : [FAIL] message.
I make all network configurations and then the system pings outside, FTP works fine etc. But CDE fails to start. The hostname is mercur and I get response from
# hostname
# uname -a
commands.
Can anybody help me about this problem?
Thanks for now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 07:52 AM
05-02-2002 07:52 AM
Re: /sbin/rc[61]: Error
Check your /etc/rc.config.d/netconf file and look at the syntax of this file.
Also try to set the hostname manually by runnign the command /sbin/init.d/hostname start
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 07:53 AM
05-02-2002 07:53 AM
Re: /sbin/rc[61]: Error
I think you have some bad filenames in there!!!
/etc/rc.config does this:
for CFG_FILE in /etc/rc.config.d/* /etc/TIMEZONE
do
fname=${CFG_FILE##*/} # get file basename
if [ -f $CFG_FILE -a "$fname" != "core" -a "${fname##*[.,~\#]}" = "$fnam
e" ]
then . $CFG_FILE # source a valid config file
fi
done
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 07:54 AM
05-02-2002 07:54 AM
Re: /sbin/rc[61]: Error
. /etc/rc.config
so either you have a carriage return (the ^M) embedded in the /sbin/rc script on that line or the line above, or there is one in the file /etc/rc.config. Do "cat -v /sbin/rc" to see if this is the case. You can remove it with vi, with the "set list" option turned on to see the control-codes.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 07:54 AM
05-02-2002 07:54 AM
Re: /sbin/rc[61]: Error
The first thing I would check is the files under /etc/rc.config.d directory. If you see any unwanted files under this ( may be somebody accidently moved some commands here), then remove it and reboot the system. Boot in single user mode and check this. That may solve the issue.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 07:54 AM
05-02-2002 07:54 AM
Re: /sbin/rc[61]: Error
dos2ux rc > file ; mv file1 rc
This should strip the ^M's out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 07:55 AM
05-02-2002 07:55 AM
Re: /sbin/rc[61]: Error
The S320hostname script in /sbin/rc1.d is failing.
1)Check that the file that it links to - /sbin/init.d/hostname has not been deleted or corrupted.
2) Check the config file for this script /etc/rc.config.d/hostname has not been deleted or corrupted.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 07:56 AM
05-02-2002 07:56 AM
Re: /sbin/rc[61]: Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 07:59 AM
05-02-2002 07:59 AM
Re: /sbin/rc[61]: Error
The easiest way to make sure the hostname is not misconfigured somewhere would be to run
/sbin/set_parms hostname
If that doesn't straighten it out, then you've got other problems.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 08:04 AM
05-02-2002 08:04 AM
Re: /sbin/rc[61]: Error
I suggest fixing the file manualy or with the dos2ux command as posted earlier.
-Yates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 08:08 AM
05-02-2002 08:08 AM
Re: /sbin/rc[61]: Error
of
/sb??n/rc1.d/S320hostname
for the ^M error.
dos2ux /sb??n/rc1.d/S320hostname > /tmp/S320hostname
mv /sb??n/rc1.d/S320hostname /S320hostname.old
mv /tmp/S320hostname /sb??n/rc1.d/S320hostname
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 09:04 AM
05-02-2002 09:04 AM
Re: /sbin/rc[61]: Error
two points to check:
- somebody seems to have transferred file from a windows machine using "ftp" in ASCII mode to your HP-UX server, never do this (as you get those "^M" at the end of each line)
- maybe somebody tried to keep "backups" of the original files in "/etc/rc.config.d/", again: never do this as ALL files in that directory are used, regardless of filenames!
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:49 PM
05-06-2002 11:49 PM
Re: /sbin/rc[61]: Error
Yes, you solved the "/sbin/rc[61]:^M: not found" problem, thank you very much. The problem was the /sbin/rc.config.d/netconf and file that is full of ^M. Also, there was some ^M codes in the /etc/hosts file. I used vi editor with the set list option to see this codes. Then, I removed all with the dos2ux utility. After the network setup with SAM, the system started to work normally. I did not touch netconf file on HP-UX server via FTP or any unix editor, how is that possible? Only I transferred once the hosts file from Windows via FTP. Anyway, the problem solved!
Thanks again,
astro
Tuncay Ozisik