droidus
Posts: 246
Joined: Sat Feb 02, 2013 4:09 am

shutdown command

Wed Feb 20, 2013 4:07 am

Hello everybody:

When I try to shutdown my Raspberry Pi with the command "sudo shutdown now", it gets to:

"Give root password for maintenance
(or type Control-D to continue):"

So I type in my password for the root account. then it comes up with the root account prompt. So I type the command in again. I then comes up with the prompt again. How do I properly shut it down?

FidelGVelasquez
Posts: 1
Joined: Sun Aug 19, 2012 6:21 am

Re: shutdown command

Wed Feb 20, 2013 4:13 am

"sudo poweroff" shuts down; "sudo reboot" reboots

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: shutdown command

Wed Feb 20, 2013 4:37 am

Code: Select all

sudo shutdown -h now

User avatar
Jessie
Posts: 1754
Joined: Fri Nov 04, 2011 7:40 pm
Location: C/S CO USA

Re: shutdown command

Wed Feb 20, 2013 5:41 am

I generally just put in "sudo halt" since you have to pull the cord to actually shutdown a Pi. Sometimes I forget it's attached to a USB port on my TV so my family will turn it off and on a couple times a day without shutting down. So far no damage from this.

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2827
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: shutdown command

Wed Feb 20, 2013 8:19 am

Jessie wrote:I generally just put in "sudo halt" since you have to pull the cord to actually shutdown a Pi. Sometimes I forget it's attached to a USB port on my TV so my family will turn it off and on a couple times a day without shutting down. So far no damage from this.
Seconded.

Code: Select all

sudo halt
seems to be the lowest number of keystrokes to do the job. :) I've found that lower quality SD cards tend to corrupt if you pull the plug, but better ones cope OK.
Alex Eames RasPi.TV, RasP.iO

Return to “General discussion”