LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian cannot reboot or shutdown computer (https://www.linuxquestions.org/questions/debian-26/debian-cannot-reboot-or-shutdown-computer-4175500697/)

labor 04-05-2014 02:43 PM

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

widget 04-05-2014 03:47 PM

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?

labor 04-05-2014 04:08 PM

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

Archy1 04-05-2014 11:30 PM

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/

widget 04-06-2014 01:16 AM

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.

labor 04-06-2014 02:53 AM

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?

Hungry ghost 04-06-2014 07:31 AM

Quote:

Originally Posted by labor (Post 5147475)
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

Drakeo 04-06-2014 07:55 AM

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.

evo2 04-06-2014 07:54 PM

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.

qrange 04-07-2014 08:35 AM

@labor

are you using LXDE ?

goumba 04-19-2014 05:01 AM

Quote:

Originally Posted by evo2 (Post 5147821)
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.


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