The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
boot failure-init died mrviking HP-UX 12 02-25-2008 11:00 AM
My VNC died mike_q UNIX and Linux Applications 0 01-17-2008 02:47 AM
Init 6 & Init 0 problem sc2005 UNIX for Advanced & Expert Users 6 09-06-2005 07:36 AM
Many dtexec process that do not died itayst UNIX for Advanced & Expert Users 3 04-02-2003 09:23 AM
Installation died on the beginning. HOUSCOUS UNIX for Dummies Questions & Answers 5 02-18-2003 10:13 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-28-2003
BAM BAM is offline
Registered User
 

Join Date: Jan 2002
Location: Lebanon
Posts: 34
Unhappy WARNING - exit init (PID1) died.

Hi,

Today, on one of my SCO machines, i was getting the following:

PANIC : exit cannot exec /etc/init (PID1).

I used two floppy boot/root disks to boot from floppy.
I followed the procedures to restore the files:

/usr/lib/libc.so.1 and /etc/init.

When I reached the part of making sure that both above files are owned and executable by bin, I wanted to use the "chown" command, but this command was not found (not foun error).

So then i proceded without the chown step, umnounted the hard disk, reboot, but this time instead of getting a panic error, i am getting a warning instead:

WARNING - exit init (PID1) died.


Any help would be appreciated, meanwhile i will try to insert the /bin/chown in the floppy root disk to :

cp /mnt/bin/chown . (of course doing that after cd /mnt/bin), maybe this is the step that is still missing.

Thanks.
Forum Sponsor
  #2  
Old 09-29-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Suggest a search on A.P. Lawrence.com for "exit cannot exec /etc/init".

That is where you will find this:
Quote:
Panic cannot exec /etc/init ( PID 1) status 9 *can* be caused by a missing symbolic link for /usr/lib/libc.so.1
If so you need to boot from other media and recreate the link- it's in /opt/K/SCO/Unix/5.0.*/usr/lib
This can also be caused by /etc/init's link being missing; the real file for that is in /opt/K/SCO/Unix/etc
Other circumstances can also cause this-
and other info relating to your problem.
  #3  
Old 09-30-2003
BAM BAM is offline
Registered User
 

Join Date: Jan 2002
Location: Lebanon
Posts: 34
I appreciate your reply.
I already tried this solution and after applying it, i started receiving a init died message instead of the cannot exce init.

I think my problem is bigger than that, /bin has only one component: the posix directory....it is empty man.


Quote:
Originally posted by RTM
Suggest a search on A.P. Lawrence.com for "exit cannot exec /etc/init".

That is where you will find this:

and other info relating to your problem.
  #4  
Old 09-30-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Unless you have a good backup then it looks like a rebuild.
  #5  
Old 09-30-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,611
I assume that you have mounted your root filesystem on another box or something so that you can examine it?

I have access to a SCO box. uname -a says:
SCO_SV scobox 3.2 2 i386

/bin is nothing but a bunch of symbolic links.
For example:
sh -> /opt/K/SCO/Unix/5.0.2Dp/bin/sh

That directory is the most common one in my symlinks, but there are others.

So my guess is that someone removed all of your symbolic links. That would take something like
find / -type l -exec rm "{}"
run as root.

Removing a symbolic link or anything else will update the inode change time on the directory which contained it. If you have not touched /bin yet:
ls -lcd /bin
will tell you when that happened. sulog and/or wtmp may give an idea as to who did it. Unless everyone just logs on as root.
  #6  
Old 10-01-2003
BAM BAM is offline
Registered User
 

Join Date: Jan 2002
Location: Lebanon
Posts: 34
Thanks for your reply.

But I did not get exactly your solution
I think you mentioned what might have happened, but not what i should do to get the machine again up.

Thanks.

Quote:
Originally posted by Perderabo
I assume that you have mounted your root filesystem on another box or something so that you can examine it?

I have access to a SCO box. uname -a says:
SCO_SV scobox 3.2 2 i386

/bin is nothing but a bunch of symbolic links.
For example:
sh -> /opt/K/SCO/Unix/5.0.2Dp/bin/sh

That directory is the most common one in my symlinks, but there are others.

So my guess is that someone removed all of your symbolic links. That would take something like
find / -type l -exec rm "{}"
run as root.

Removing a symbolic link or anything else will update the inode change time on the directory which contained it. If you have not touched /bin yet:
ls -lcd /bin
will tell you when that happened. sulog and/or wtmp may give an idea as to who did it. Unless everyone just logs on as root.
  #7  
Old 10-01-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,611
I would reload the os, rebuild my file systems, and read in my last backup tape. That will be much easier than trying to undo a disaster like that.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0