help! can't excute


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users help! can't excute
# 1  
Old 09-10-2002
help! can't excute

I can't excute any commands in /usr/bin

when I try to excute commands in /usr/bin
the error message is displayed " No Such device or
address"

Can you Help?

Thanks in Advance
# 2  
Old 09-10-2002
Can execute them using the absolute address?

i.e. /usr/bin/<command>

Is /usr/bin in your list of paths?

echo $PATH

If you find it's not in your paths, check your .profile

You could also check the permissions of the commands in /usr/bin

If it's not any of these, post back with a bit more detail if possible
# 3  
Old 09-10-2002
I have already checked the above suggestions but none of commands in the /usr/bin directory can be executed, no changes has been made on server.
# 4  
Old 09-10-2002
I believe in other posts you have mentioned you run Solaris.

Was /usr a separate file partition?

If it was, you may have a problem with it mounting. Check to see if it's mounted with the df command (that should be out of /bin/df).

If it was not separate, then suggest a boot -s from cdrom...you can bring your server down with sync, sync, sync, halt and it probably won't hurt it as bad as just a poweroff since init 0 will run through the rc kill scripts and possibly hang (due to the problem).

Was the server up and running when this happened? Can you get to the /var/adm/messages to cat the file? You can also try dmesg which may show any error. Or if you were using a volume manager (SDS or Veritas) those commands may show something.
# 5  
Old 09-10-2002
RTM has a good idea actually.

I remember right after i did an install the disk had gone bad but it still looked mounted but i could not get any of the data but i could see it all. it was quite weird.

try unmounting that FS and then remounting. If you get errors remounting it (and its not from your command error) then sounds like you might have a currupt FS.
# 6  
Old 09-10-2002
If this is SunOS, can you verify that "/usr/bin/uname -a" fails and "/sbin/uname -a" succeeds? The former is dynamically linked while the latter is statically linked. If the dynamically linked version is failing you have some kind of shared library problem. By running truss on the dynamically linked version, I notice the open on /dev/zero which looks like the only opportunity that I see to generate the particular error that you are reporting. Can you verify that /dev/zero is present? What shell are you using?
# 7  
Old 09-10-2002
Thanks everyone.

I rebooted the server and the server had problem coming back up. it seems server cannot see the disk

from OK prompt I issued probe-scsi-all

and the this displayed the error message "Fast Data Access MMU"

I followed the procedure on sunsolve and this solved the problem

http://sunsolve.sun.com/pub-cgi/retr...20access%20mmu

Note
I followed the procedure without reinstalling the OS and this
sovled the problem

Thanks again
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

What are the differences between 'bash' and 'sh'

Hopefully this doesn't come off as too much of a "newbie" question or a flamebait. But I have recently begun working with a Sun Solaris box after having spent the past five years working with RedHat. From what i can tell, thing look fairly similar and the 'man' command is some help. But I've... (7 Replies)
Discussion started by: deckard
7 Replies

2. UNIX for Advanced & Expert Users

How to remove a file with a leading dash '-' in it's name?

Somehow someone created a file named '-ov' in the root directory. Given the name, the how was probably the result of some cpio command they bozo'ed. I've tried a number of different ways to get rid of it using * and ? wildcards, '\' escape patterns etc.. They all fail with " illegal option --... (3 Replies)
Discussion started by: GSalisbury
3 Replies

3. Email Antispam Techniques and Email Filtering

Procmail recipe: blocking 'unsubscribe and opt-out' messages....

Here is a crude procmail recipe that I quickly created (NOT a procmail recipe expert, btw) that has been catching lots of spam (current second after the charset_spam recipe posted earlier): :0B * .*If.you.do.not.wish.to.receive...* more_spam :0B * You.requested.to.receive.this.mailing... (0 Replies)
Discussion started by: Neo
0 Replies

4. IP Networking

BELKIN 'F5D5020' 16bit PCMCIA - FreeBSD HOWTO

Hey all, I've bought a few bits from Belkin who seem quite happy to support FreeBSD! Last time I bought a UPS from them and it's still going well :D I saw this on their website that the 16bit PCMCIA card was supported under FreeBSD: http://www.belkin.com/network/F5D5020.html I went to my... (0 Replies)
Discussion started by: WIntellect
0 Replies

5. UNIX for Dummies Questions & Answers

quoting echo 'it's friday'

echo 'it's friday' why appear the > (3 Replies)
Discussion started by: yls177
3 Replies

6. UNIX for Dummies Questions & Answers

HELP! The '/var/adm/message' file increase every few seconds???

Hi, guys, I have a big problem. I've got a sun solaris 4.1.4 workstation, and the /var/adm/message file will add one row every few seconds. It becomes a large file in a short time. I wander if there are some mistakes configuring the workstation. the /var/adm/message is as follow: ... (3 Replies)
Discussion started by: cloudsmell
3 Replies

7. UNIX for Advanced & Expert Users

Terminal 'Local Echo' lost on Modem Dial-out

Can anybody help me? I am developing a utility for automating message paging to a BT alphanumeric pager. I am using a USR 56K Fax-modem connected to /dev/cuab on a Sun Ultra-10. I am using the UNIX 'tip' utility to connect to the modem and I have configured the modem as follows: Baud Rate:... (2 Replies)
Discussion started by: mybeat
2 Replies

8. Shell Programming and Scripting

Clearify what it means under 'WHAT' when hit the 'w'-command

I wonder how I shall read the result below, especially 'what' shown below. The result was shown when I entered 'w'. E.g what is TOP? What is gosh ( what does selmgr mean?)? login@ idle JCPU PCPU what 6:15am 7:04 39 39 TOP 6:34am 6:45 45 45 TOP 6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies

9. Programming

i can't use 'make' in my computer?

I need to compile a file,but 'make' does not work.please tell me how to use it or need which tools? (3 Replies)
Discussion started by: dsun5
3 Replies

10. UNIX for Dummies Questions & Answers

How to subtract 2 hours from 'date' in shell ( /bin/sh ) script ?

I write a sh script that zip and copy to tape all files that older then 2 hours. 1. The way I choose is - touch a file with "now - 2 hours", then use fine with '! -newer' 2. Do you have any other idea to do it ? tnx. (1 Reply)
Discussion started by: yairon
1 Replies
Login or Register to Ask a Question