LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 04-16-2012, 09:06 AM   #1
bteeuwen170
LQ Newbie
 
Registered: Apr 2012
Location: Rockanje
Distribution: Pinguy, Ubuntu, Windows XP, Windows 7, Windows 8
Posts: 3

Rep: Reputation: Disabled
Question Computer wont shutdown


Hi guys,

I have a problem with my 4 jears old Packerd Bell computer. It's a dual-boot with Windows XP, Ubuntu 11.04 and Pinguy. When i boot into Ubuntu or Pinguy and then shutdown the computer the system simply reboots. Ive tried to enter poweroff or shutdown -f or halt shutdown -h but the system only reboot. But if i use Windows XP and then shutdown the computer the system normally shutdown. This is a very annoying problem! Can anyone please help me???

Sorry for my bad english... I live in the Netherlands

Last edited by bteeuwen170; 04-16-2012 at 09:11 AM.
 
Old 04-16-2012, 01:04 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,737

Rep: Reputation: 184Reputation: 184
How about
Code:
#shutdown -h now
http://unixhelp.ed.ac.uk/CGI/man-cgi?shutdown+8
 
Old 04-16-2012, 08:42 PM   #3
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 77

Rep: Reputation: 23
Wink

Quote:
Originally Posted by bteeuwen170 View Post
Hi guys,

I have a problem with my 4 jears old Packerd Bell computer. It's a dual-boot with Windows XP, Ubuntu 11.04 and Pinguy. When i boot into Ubuntu or Pinguy and then shutdown the computer the system simply reboots. Ive tried to enter poweroff or shutdown -f or halt shutdown -h but the system only reboot. But if i use Windows XP and then shutdown the computer the system normally shutdown. This is a very annoying problem! Can anyone please help me???

Sorry for my bad english... I live in the Netherlands
shutdown -h should have done it, although I assume you are using a time specification as the man page seems to require it (normally using now for desktops). There is an option shutdown -P to force poweroff. Still I wonder if there is some BIOS setting causing this behaviour.

Ken
 
Old 04-17-2012, 02:40 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 16, Chakra
Posts: 3,618

Rep: Reputation: Disabled
Shutdown -P is for *BSD systems AFAIK. On many Linux installs shutdown is only for root. You have to enable it in the system settings (sorry, I use KDE, I don't know where to switch it on in your systems).
 
Old 04-17-2012, 07:22 AM   #5
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
In most linux distro only root can shutdown the system .
The command is
sudo shutdown -h now
It will ask for root password.
 
Old 04-17-2012, 07:25 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 16, Chakra
Posts: 3,618

Rep: Reputation: Disabled
Quote:
Originally Posted by ronlau9 View Post
...
sudo shutdown -h now
It will ask for root password.
The OP has Ubuntu as his system. As I understand it, Ubuntu sudo asks for the user's password?!?
 
Old 04-17-2012, 03:58 PM   #7
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Might try to log off from the gui and then use the welcome screen to do shutdown. (if you have it)
 
Old 04-17-2012, 07:18 PM   #8
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 77

Rep: Reputation: 23
Quote:
Originally Posted by JZL240I-U View Post
The OP has Ubuntu as his system. As I understand it, Ubuntu sudo asks for the user's password?!?
Just a clarification.
Code:
sudo shutdown -P now
works fine on Ubuntu. Also sudo does ask for the current user's password but if you are doing lots of sudo's, and aren't overly worried about security, you can avoid that by adding in the /etc/sudoers file (using visudo)
Code:
username ALL=NOPASSWD: ALL
where "username" is your normal username (if desired replace the second ALL with specific applications, eg /sbin/shutdown).

In any case this is not the best way to shutdown if you are using a desktop. It should work naturally from the GUI.

Ken
 
Old 04-18-2012, 07:36 AM   #9
bteeuwen170
LQ Newbie
 
Registered: Apr 2012
Location: Rockanje
Distribution: Pinguy, Ubuntu, Windows XP, Windows 7, Windows 8
Posts: 3

Original Poster
Rep: Reputation: Disabled
sudo shutdown -P now works! Thank you very much!!!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Shutdown Windows XP Computers with a Linux Server BeauSanders LinuxAnswers Discussion 1 03-11-2014 09:03 AM
Shutdown multiple computers via ssh, try different passwords genderbender Programming 10 10-01-2010 02:59 PM
How to Shutdown Windows XP Computers with a Linux Server BeauSanders Linux - General 1 06-09-2009 07:55 PM
PID wont shutdown ashlyjay Linux - Newbie 6 03-15-2007 01:05 PM
Shell Script to shutdown network computers? Brnzwngs Linux - Networking 6 09-11-2005 10:28 AM


All times are GMT -5. The time now is 06:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration