LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2009, 10:10 AM   #1
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Rep: Reputation: 15
Computer very unreactive after /bin/sh


Hi!

I wanted to change to the bash shell, but I didn't think and I was in a hurry, and then I typed /bin/sh instead of /bin/bash, and now my computer doesn't do anything. I can't move the mouse or get any response. Well, I think this is what caused the unreactiveness. I do have a lot of applications open, but the computer should be able to handle it.

To make matters worse I was logged in as root because I wanted to change file permissions, and I have a CD in the CD/DVD drive and a flashdisk connected.
I do have the Fedora install DVD and with a different problem I have done the "Rescue installed system" option or something like that a few months ago, but I don't know whether I can just eject the CD, if documents on the CD were open when this "hanging" took place?

I could also ssh from another computer, but I do not know what I should do then. Should I try and reboot the "hanging" computer? I've never had this type of thing before.

Please advise me. I'm rather lost and slightly worried...

Thanks!

BTW, the computer from which I'm typing this, doesn't have a functional mouse, so I would just like to thank whoever who did the "tab-functionality" on this website. It's works well, and I am ever so grateful!
 
Old 07-09-2009, 10:30 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
SSHing into the box would sure get you good. If you can login try to do a ps aux | grep '/bin/sh' note down the pid umber and kill the process.
kill -s 9 pidnumber should do the trick.

Where you could run in trouble if you just reboot the machine is with your flashdisk. If you'd been working with it shortly before the "accident" there probably be some datalost if you just unplug it.
What you can try if you can ssh into the box is to umount it. Do a sync before it, just to make sure everything got written to it.

In the case you can't ssh in you can try to just once hit the power button maybe ACPI come to rescue and bring down the machine in a normal way. That could also be done from the ssh shell with shutdown -t now. That would just be the last resort if sshin or killing the process would not work.
 
Old 07-14-2009, 11:20 AM   #3
Azazwa
Member
 
Registered: Mar 2009
Distribution: Fedora 8, Ubuntu 9.10, SuSE 10, Fedora 14
Posts: 98

Original Poster
Rep: Reputation: 15
Solved

Hi !

I didn't manage to ssh into the machine.
Well, I tried pressing the power-button, but it didn't work, so I pressed the reboot button, and all seems well.

Thank you very much!
 
Old 07-14-2009, 06:16 PM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Glad to be of any help.

Cheers Zhjim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tetex-bin install error: No alternatives for oxdvi.bin. Aleora Linux - Software 0 11-28-2008 08:14 PM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 11:30 AM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
cgi-bin script: turn off computer hamish Linux - General 2 10-21-2005 10:46 AM
Newbie needs help Installing j2sdk-1_4_2-nb_3_5_1-bin-linux.bin bendoku Linux - Newbie 5 10-11-2003 10:27 AM


All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration