Solved

Startup problems?

Posted on 2004-10-04
3
249 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now