Solved

getexecname() failed

Posted on 2003-11-10
6
1,233 Views
Last Modified: 2013-12-27
Dear All,

I just made a fresh intallation of Solaris 8(02), the partition is like below:

/dev/dsk/c1t0d0s0    3943839      /
/dev/dsk/c1t0d0s1    8676831      /usr
/dev/dsk/c1t0d0s3    1991988      /proc
/dev/dsk/c1t0d0s4    2516122      /opt
/dev/dsk/c1t0d0s5    4592700      /var
/dev/dsk/c1t0d0s7    12178374     /export/home

But after the installation, I found that ps gave me error message like: ps: getexecname() failed, and some packages were also failed to be installed because of the same problem.
Can anybody here help me out?
Thanks a lot in advance!
0
Comment
Question by:oceandeep
  • 3
  • 2
6 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
ID: 9719811
I use Solaris 2/02 (Sparc) and never have problem. I thinks
you should not have a separate /proc, it should stay with the / filesystem.
(/proc is the process dir, it should mount on system boot up)

also, have a look at the followinf Sun doc:

#--------------------------------------------------------------------------------------------
Keyword(s):error, failure, troubleshooting

Problem Statement Top

During bootup, system has this error:

swap: getexecname() failed

It boots up with a couple more errors. Then after logging in as root, simple commands like "ps" and "swap"
cannot be executed.


Resolution Top

The most likely scenario is that /proc and/or /dev/fd aren't mounting properly.

Both of those are special mountpoints which are VITAL to proper operation of the OS!

One possibility is that the actual /proc and/or /dev/fd directories are missing. If that's the case, boot the system into singleuser mode and re-create those dirs.

Another possibility is that the /etc/vfstab file is missing mount point entries for /proc (and/or for fd).

Edit /etc/vfstab file and add the /proc and/or fd entries.

Example of those entries:

fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -

Note: the above are tabs (not spaces) separating the vfstab fields.
"fd" means File Descriptors (not floppy disk)





0
 
LVL 24

Expert Comment

by:shivsa
ID: 9720422
most likely it must be /proc.

try to mount /proc file system.
mount -F proc /proc /a/proc

also please refer to sundoc as mentioned by Yuzh.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9720433
also please check the system clock time.
if it is set to time back, correct it. and everything will start working smooth thereon.
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: 9736478
How's it going, need more help?
0
 

Author Comment

by:oceandeep
ID: 9746742
Thanks a lot, guys!
I think it might be the problem of proc mouting point. I reinstalled solaris, and removed slice /dev/dsk/c1t0d0s3 /proc, let it be with /, everything running well after that!
I will find a time to try the sun's solution to see whether it works or not. ;)

oceandeep
0
 
LVL 38

Expert Comment

by:yuzh
ID: 9753795
In my first comment:

"you should not have a separate /proc, it should stay with the / filesystem.
(/proc is the process dir, it should mount on system boot up)"

tell you to repartion the HD, means reinstall.

I post the Sun doc to tell you why. (I think you guys believe Sun!)

cheers!


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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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.:
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.

930 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

12 Experts available now in Live!

Get 1:1 Help Now