LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-05-2014, 02:43 PM   #1
labor
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
Debian cannot reboot or shutdown computer


I have small computer as home server with debian.
Motherboard Gigabyte Z87N-WIFI
CPU - Intel core i3 4330
And I have some problems with this configuration.
I'm not using videocard, keyboard, mouse, monitor, any, only case with hardware and lan-cable.
Via console i'm working with this 'server' but I can't reboot or shutdown it.
When I try to do this, I have lost connection but hardware stil works.
The same when I try to power off with user interface. I see stopping debian and black screen, but computer stil works. I thought maybe it was hardware probleme, but with windows OS computer work as need.

Debian from - http://ftp.de.debian.org/debian-cd/c.../amd64/iso-cd/

I need help.
Sorry for my english
 
Old 04-05-2014, 03:47 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
You need to give some more information.

I take it that you are chrooting into the server. Is this the actually the case?

What commands are you using to shut the server down?
 
Old 04-05-2014, 04:08 PM   #3
labor
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
There is clean install, empty SSD and empty HDD (ext4 both), sdd - /, hdd - home, ssd (efi volume, swap, ext4)
Without any USB or other plugged devices.
Installed from USB holder with dvd emulator.

Commands:
shutdown -h now and reboot
 
Old 04-05-2014, 11:30 PM   #4
Archy1
Member
 
Registered: Jan 2014
Distribution: Debian
Posts: 95

Rep: Reputation: 2
A laptop of mine does this; I've never bothered to fix it but I did come across this on the net:
http://linux.koolsolutions.com/2009/...-and-restarts/
 
Old 04-06-2014, 01:16 AM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I think I would try the command "halt" to shut down.

Would really like to know how you are getting into the server. There could be a problem with your chroot commands that are only allowing you some access and not other access. While I think this may not be real likely it should be elimenated as a cause.

If you are not chrooting I am not sure what the problem is at all.

If you are going over a lan I assume you are using an ssh connection. I have never tried to shut anything down with ssh straight up.

Your bios is going to have to be setup to permit remote startup, I think, at the least. Can't help at all with that as I am too paranoid to enable that.

It is just about impossible to figure out your problem without knowing exactly how you are communicating with the server when you are trying to shut it down.
 
Old 04-06-2014, 02:53 AM   #6
labor
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
3 Steps:
1) Via SSH with root account, I've worked with server. After send command to reboot or shutdown I lost connection and can't return access to server, because OS off, hardware still works.
2) With display, keyboard, mouse, with internal video card. Login to account, work, logout. Try to make reboot or shutdown in menu. I see black screen, hardware still works.
3) Install windows 7 to check another OS with the same hardware. Reboot and shutdown works good.

Command 'halt' - works!
But how can I reboot the system?

Last edited by labor; 04-06-2014 at 04:32 AM. Reason: halt
 
Old 04-06-2014, 07:31 AM   #7
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by labor View Post
Command 'halt' - works!
But how can I reboot the system?
Maybe init 6 will work? By the way, you can also shut down the system with:

Code:
init 0
 
Old 04-06-2014, 07:55 AM   #8
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
If your booting from a live CD I ran into the same problem. I open a terminal and did a passwd added a root user and then assumed root then gave the command reboot. Funny thing is when booting the Iso image from Grub2 and not a thumb drive image I did not have a problem very strange. Like I have said before I really wish Debian would polish up that stable "Live" system.
 
Old 04-06-2014, 07:54 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,721

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
Hi,

for the OS to actually power off the machine you need to have acpi installed. To see if this is the case for you, please run the following two commands and post the output.

Code:
dpkg -l '*acpi*'
grep acpi /var/log/dmesg
Depending on your setup, you may need to be root to read /var/log/dmesg

Evo2.
 
Old 04-07-2014, 08:35 AM   #10
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
@labor

are you using LXDE ?
 
Old 04-19-2014, 05:01 AM   #11
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by evo2 View Post
Depending on your setup, you may need to be root to read /var/log/dmesg

Evo2.
FYI, pretty much any modern distribution sets /var/log readable by root only. dmesg can be run by any user.

Quote:
Originally Posted by labor
But how can I reboot the system?
with the command

Code:
$ reboot
run as root.

I had this problem a while back and it was an issue with PolicyKit and gdm3 not playing nice for whatever reason. An update eventually fixed it.

Quote:
Originally Posted by Drakeo
Like I have said before I really wish Debian would polish up that stable "Live" system.
Easier said than done. It's a lot of shell scripts to provide the functionality of a regular system in a small and portable package, it's always going to have it's quirks unfortunately. Although I agree the bootloader should not make a difference.
 
  


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
LXer: Autologin, passwordless login and controlling who can reboot and shutdown your computer in KDE LXer Syndicated Linux News 0 02-17-2012 12:10 PM
[SOLVED] Debian Testing problem with reboot/shutdown Xgamer7 Linux - Desktop 3 06-15-2011 04:34 AM
run this command when the computer shutdown or reboot lindylex Debian 4 11-25-2008 04:31 PM
Computer freezes when I shutdown/reboot from X session scheidel21 Linux - General 2 06-03-2007 07:16 PM
Debian 3.1 hangs up at reboot or shutdown ckostyn Debian 14 08-21-2005 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:41 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
Open Source Consulting | Domain Registration