Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
proper way to restart/shutdown?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
badpenguin
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2004
Posts: 82
Location: USA

PostPosted: Tue Aug 03, 2004 5:02 am    Post subject: proper way to restart/shutdown? Reply with quote

Hey, Im new to linux, and every time I restart (by the restart button on my computer) when the computer comes back on, and linux starts up, it has to check /dev/hda3 because of impropper unmount. Now I know this is a really stupid question, but how *DO* I properly shut down? I know on the gentoo livecd, that is a "restart" command, but on my system, "restart" iisnt there and neather in "shutdown". Man I feel stupid.
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Tue Aug 03, 2004 5:14 am    Post subject: Reply with quote

There are the commands "reboot" "halt" "poweroff", "shutdown -h" and "shutdown -r" (and "init 0").
All of those have to be run as root because they are in /sbin and /sbin is not in the path for normal users. Also, normal users hould not be able to halt the machine (it's a unix thing).

If you want to reboot as normal user you should look into the "sudo" command.

There is also the possibility to use ACPI to halt the system when the power button (not reset) is pressed. Read "man acpid" on how to do that.

HTH.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
badpenguin
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2004
Posts: 82
Location: USA

PostPosted: Tue Aug 03, 2004 5:27 am    Post subject: Reply with quote

ok that makes sense. Thankyou.
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2021
Location: Republic of California

PostPosted: Tue Aug 03, 2004 6:04 am    Post subject: Reply with quote

ctrl-alt-del from console.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum