Solved

Startup problems?

Posted on 2004-10-04
3
252 Views
Last Modified: 2013-12-27
Solaris 5.7.  I've changed the name of a script in /etc/rc3.d.  I changed the upper case S to a lower case s. Now when I restart the server.  I see a line that says bad trap in module xx it's pointing to a null value.  Then it does a core dump successfully, and then it reboots.  It does this repeatedly.  I've used the Stop Key + A to get to an OK prompt.  How can I get past the OK prompt so I can rename the script file?  Or, how can I boot up so that I can get to the script file to rename it?
0
Comment
Question by:mobot
3 Comments
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 100 total points
ID: 12223746
You have to use Solaris Software CD to boot up the system in single user mode (or boot
from a boot server to single user mode).

assume that you have a cdrom in your Sun box, put the Software CD in:
1) <Stop> A  
2) When you see ok prompt, put the Solaris CD in, then type in:
boot cdrom -s
to boot up to single user mode

3) mount your root file system, eg:
mount /dev/dsk/c0t0d0s0 /a

cd /mnt/etc/rc3.d

use "mv" command you cahnge the file names backup to what it was.

PS: Solaris startup script name start with a Upper case S, if you change it to something
      else, it will not run.

0
 
LVL 34

Accepted Solution

by:
PsiCop earned 150 total points
ID: 12226663
If you changed something in /etc/rc3.d, then it doesn't affect the operation of your machine until you reach Run Level 3. So there is no need to boot to the CD-ROM, you should be able to just do a normal single-user boot on the machine, reverse your change, and then bring it up normally.

At the OpenBoot PROM prompt, I would enter --> boot -s

It will come up to single-user mode, and you login as root at the special prompt it presents. cd in the /etc/rc3.d and mv the file back to having an upper-case S. Then exit the shell and the system should boot up normally.

What entry in /etc/rc3.d did you change?
0
 

Author Comment

by:mobot
ID: 12229573
Thanks to both of you for your help. I split the points because I learned how to boot from the cd, etc from yuzh's answer.  PsiCop's solution worked just as it was outlined.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question