Solved

Startup problems?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux :how to provide sudo access to the user 13 88
AIX 5.x set up arrow to recall 11 46
Need a version of telnet and/or ssh that supports tcp wrappers on AIX 5.1 16 72
Access_log 17 100
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

895 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

11 Experts available now in Live!

Get 1:1 Help Now