Solved

System wont boot

Posted on 2002-04-18
11
305 Views
Last Modified: 2013-12-27
okay, I have a Solaris 8 system that won't boot anymore.
when attmepting to boot it says:

boot device: disk:a
/sbin/rcS:  /.tmp_proto: does not exist
/sbin/rcS: /sbin/mem: not found
/sbin/rcS: test: argument expected
INIT: Cannot create /var/adm/utmpx
INIT: failed write of utmpx entry:"  "
INIT: failed write of utmpx entry:"  "
INIT: SINGLE USER MODE.

The machine was rnning fine until I inadvertantly erased the contents of /var/sadm/pkg  
I replaced the /var/sadm/pkg with the data I found on the CD and now I cannot get it to boot.

Any suggestions on how to fix this without having to reload the OS?


0
Comment
Question by:carydb
11 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 6951601
My suspicion is that you did more than just delete the contents of /var/sadm/pkg or that your attempt to restore that directory has damaged other things. I don't believe you'd get those boot errors even if /var/sadm/pkg was completely missing.

What else did you do before/after the accident with the pkg dir?
0
 

Author Comment

by:carydb
ID: 6951611
I attempted to add Recommended patches.  That is how I ended up deleting that directory.  Nothing else was done.  When the system boots into single user mode, all file systems are read only.
Anyway,
I thought it was the unzipped directory of patches and I did an rm -rf before I realized I was in the wrong window.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6951665
When you say that you attempted to install the Recommended Patch cluster does that mean that you invoked the installation and it aborted or had some other problem? If that's the case then more than likely you have a partial installation of patches and that may not have left the system in a state that it can run.

In what directory were you when you did the rm -rf?
0
 

Author Comment

by:carydb
ID: 6951808
/var/sadm/pkg
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6951937
What about the other question in that comment? Did part of the patch installation start or complete?
0
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.

 
LVL 38

Expert Comment

by:yuzh
ID: 6952622
I think you might end up have to reinstall or run an upgrade install to the system.
0
 
LVL 4

Expert Comment

by:jlms
ID: 6952875
Reinstall. You did not read how to patch your system and now have to pay the newbie toll :-)
0
 
LVL 15

Expert Comment

by:samri
ID: 6963194
it's interesting how one could react; I would personally just put in the cd, and reinstall.  But it's best to follow the thread, as what jlevie's is getting.  It's very interesting to know, what is actually happen that render the box unbootable.

I would have suspected that the "rm -rf" is done, at root (/), since that's where user root tend to be (homedir).  And personally, I did went into the same scenario.  Pulling hairs for a few hours, then reinstall.  It was Solaris 7 by the way.

no offense guys.
cheers/
0
 
LVL 40

Accepted Solution

by:
jlevie earned 200 total points
ID: 6963378
You can also wind up with a non-bootable system if you start the installation of a Recommended Patch Cluster and abort it part way through (like when you see that there's not enough free space). What can happen in that case is that part of the patches are installed, but not all. If something that has been patched needs something else to have been patched, that hasn't yet been bizarre things can happen. Most of the time this won't occur, but it is possible (you can guess how I know that).
0
 

Author Comment

by:carydb
ID: 6963652
It was during patching and I tried to run a patchadd and it was failing with strange return messages. It was saying that there is no space in /var/sadm/pkg.  df -k was not reporting so I found that the executable was 0 bytes. I am now wondering if patchadd was using df to assertain the free space, since it tried to say there was no space.
So the recommended patches went fine, but a second set of patches did not complete.

I have reinstalled the operating system.

All of you guys are a great source of help and I agree that it is good to understand what happened.  I have added this little thing to my book of No-No's and paid the "newbie" toll  

Thanks for all your comments.  Jlevie, i will award the points to you as you followed this all the way through for me.
Thanks much.  


:o)
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6963734
I believe that patchadd does use df as a free space check. So if something happened that prevented df from executing and reporting correct data then patchadd would fail.
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
Can I copy a solaris 10 Install DVD to local hard drive and install from there?  How? 21 158
Audit HISTFILE for all users on AIX 9 108
Skill Development 15 163
Linux hostname change 2 55
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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.:
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.

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