LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-04-2005, 01:36 PM   #1
xymian
LQ Newbie
 
Registered: Dec 2004
Posts: 13

Rep: Reputation: 0
Can't reboot via ssh, but can from local terminal


Hi,

I have just set up a new file server using Ubuntu AMD64 (Hoary Hedgehog). My problem is that it will not restart properly from the command line from a remote machine.

I plan to administer the server via ssh. When I start the machine up I can log in OK, and do everything as normal. however if I want to restart (shutdown -r now, OR reboot) it gives the normal warning about the system going down... but it never comes up again. Right now I do have access to the computer, but I am leaving on Tuesday and EVERYTHING will have to be done via ssh. Right now, if I hit the reboot button on the computer it will restart again normally, but something weird is happening when it do it the "proper" way via the command line in ssh.

By the way, this is (so far) pretty much a normal Ubuntu install. I haven't added or changed much (yet). The machine will run headless, however when I did have it hooked up to a monitor, I started up, logged in and I WAS able to reboot using shutdown -r now... no problems whatsoever.

Any idea what is causing a hang in this case? I have spent the last 24 hours scratching my head trying to figure this out. Any help would be greatly appreciated.

Craig
 
Old 09-05-2005, 09:42 AM   #2
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Permissions

Are you issuing those commands as root? With Ubuntu this is most often done using sudo before the command

Next, have you tried issueing a simple telinit 6 on the box. This should reboot the system.

MrKnisely
 
Old 09-05-2005, 10:04 AM   #3
xymian
LQ Newbie
 
Registered: Dec 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Yes, I was issuing the commands as root. (I set up a root account already.)

Actually I have found what is going wrong on my own. Turns out that it is the lack of keyboard that is causing the problems. I am running headless and when I do shutdown -r now, it freezes during the POST (I think). With a keyboard installed it will reboot no problem. I will see if I can figure out some setting in the BIOS to stop it from looking for the keyboard.

Craig
 
  


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
rc.local hanging my system on reboot ub3rj3phf *BSD 5 12-08-2004 01:22 PM
Gnome Terminal Scrolls on reboot/shutdown gpetme Linux - Software 1 10-07-2004 09:15 AM
Random Reboot @ Terminal Shortee Debian 9 08-02-2004 10:05 AM
Blocking local TTY terminal text floods ??? khermans Linux - Security 6 10-01-2003 03:30 AM
Slackware 9, rc.local not working after reboot balton Slackware 2 08-08-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:29 AM.

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
Open Source Consulting | Domain Registration