Solved

getexecname() failed

Posted on 2003-11-10
6
1,226 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
Comment Utility
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
Comment Utility
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
Comment Utility
also please check the system clock time.
if it is set to time back, correct it. and everything will start working smooth thereon.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 38

Expert Comment

by:yuzh
Comment Utility
How's it going, need more help?
0
 

Author Comment

by:oceandeep
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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.

772 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

16 Experts available now in Live!

Get 1:1 Help Now