Solved

Startup problems?

Posted on 2004-10-04
3
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

730 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