[SOLVED] command do not exit successfully after execution.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It should return to the shell prompt after the successful execution of command.
The ctrl+C, ctrl+D, ctrl+X any key combination also do not work.
Just have to click on the close button of the terminal then only it exits from there.
So, what is the problem exactly?
Thank You!
Last edited by Satyaveer Arya; 08-27-2012 at 06:40 AM.
Could it be trying to read a network share that's currently unavailable? That generally locks up my shell, and pretty much any other program I use. Try it perhaps with the -l/--local option.
So I would say that one of your volumes has some kind of issue - corrupt, an odd filesystem, or simply taking a very long time to respond. If you look at mount are there any volumes missing from the df output?
You could list by type using
Code:
df -hTt ext4
(-T shows the type in the output, -t TYPE limits to a specific type - work through the various possibilities)
eta: scrap that, an unresponsive network share is the most likely thing
Last edited by SecretCode; 08-27-2012 at 06:43 AM.
Reason: cross post
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Original Poster
Rep:
Quote:
So I would say that one of your volumes has some kind of issue - corrupt, an odd filesystem, or simply taking a very long time to respond. If you look at mount are there any volumes missing from the df output?
We have mounted the partitions from SAN.
And when I executed the 'cat /etc/mtab' command I found this -
So, the last line shows that I have mounted the /rhnpackages of other server on /mnt. The problem lies here and when I try to unmount the partition, it does not unmount.
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Original Poster
Rep:
And here is the output of 'mount' command -
Code:
[root@portalnode01 ~]# mount
/dev/cciss/c0d0p1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cciss/c0d0p10 on /tmp type ext3 (rw)
/dev/cciss/c0d0p7 on /home type ext3 (rw)
/dev/cciss/c0d0p6 on /opt type ext3 (rw)
/dev/cciss/c0d0p5 on /var type ext3 (rw)
/dev/cciss/c0d0p3 on /usr type ext3 (rw)
/dev/cciss/c0d0p2 on /backup type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /var/lib/xenstored type tmpfs (rw)
172.16.107.152:/rhnpackages on /mnt type nfs (rw,addr=172.16.107.152)
nfsd on /proc/fs/nfsd type nfsd (rw)
So you need to diagnose why that nfs share is not responding ... and whether you need it at all. Either fix the server, or remove the entry from /etc/fstab or whatever script is causing it to be mounted.
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Original Poster
Rep:
Hi,
The problem was due to NFS share. Actually, there was another server on which I configured NFS and mounted the nfs share on this machine on which I get this problem.
So, recently I formated the nfs configured server and forgot to unmount the nfs share on client side before formating the nfs server.
So, now on nfs configured server I again configured nfs server and on client side I remounted the nfs share and then I unmounted the partition and it worked.
Now, the problem has been solved and I am marking the thread as SOLVED.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.