LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-27-2003, 09:15 AM   #1
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Rep: Reputation: 15
Question turn off maching?


ok, i have an old computer with a noisy fan, so i turn it off every night. when i'm running windows this is easy, start, shutdown. in linux, i'm not quite sure what i'm doing. here's what i did, i don't know if it's right. i had been logged in as root, trying to setup a user account. i went to single user mode, then typed in telinit 0 to go to runlevel 0. this stopped a bunch of stuff and made my hard drive stop spinning. i then turned my maching off, is this ok, or are there other things i have to do before cutting the power to my machine?
thanks in advance,
E
 
Old 12-27-2003, 09:27 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
You don't need to go to runlevel 1 first, an init 0 from any terminal is enough. You do need to be root to do this.
 
Old 12-27-2003, 09:46 AM   #3
tyg
Member
 
Registered: Nov 2003
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
The easiest way is to shutdown or reboot the computer is by doing "halt" or "reboot" as root
 
Old 12-28-2003, 09:02 AM   #4
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
ok, but reboot does what it says, it reboots the machine. during a reboot, when is it safe to turn off the power to the machine with out hurting anything?
 
Old 12-28-2003, 09:15 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
You should not turn of your box when you run a 'bare' reboot.

A few possibilities to turn off your box:
- init 0
- halt
- shutdown -h now
There are more, but these will do.

Please check the manpage (man reboot and/or man shutdown and/or man init).

You should never ever turn of your box when it is running! Only when linux tells you it is safe to turn-off your box you can do so. Ok, that's a bit strong, but you can damage your partitions if you do so.
 
Old 12-28-2003, 09:04 PM   #6
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
i know that. i've been running init 0 or telinit 0 to shut it down, but linux never tells me its ok to shut my machine down. i just shut it down after it seems like the system isnt doing anything.
 
Old 12-28-2003, 11:48 PM   #7
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
just type shutdown -h now as root
 
Old 12-29-2003, 06:50 PM   #8
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
ok
 
Old 01-05-2004, 08:37 AM   #9
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
that works, but at what point like during boot is it safe to cut the power to a machine?
 
Old 01-05-2004, 09:35 AM   #10
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
i would say for percautionary reasons, probably before you make a selection at your grub or lilo boot selection ... so basically that is saying when your computer is still in its POST, that that would be the only real safe time when you could hit the power button... after the selection at your grub/lilo menu you have started the initialization, and i would have to say cuttin power within that, would be the same as cuttin power when its complete, if not more harmful....
so the long and short of all this is, i would say there is no safe time, if you already started the boot process ... wait until the boot process is complete and then issue shutdown -h now ... never cut power during boot..
 
Old 01-05-2004, 08:41 PM   #11
Computergirl24
Member
 
Registered: Dec 2003
Location: PA, USA
Distribution: mandrake 9.1
Posts: 65

Original Poster
Rep: Reputation: 15
ok, thanks, that's exactly what i was looking for

E
 
Old 01-05-2004, 09:02 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
How old is the machine, does it support APM?
If so, all you probably need to do is to recompile
your kernel with built-in APM support, then a
halt or init 0 will actually switch the bugger off,
too ;)


Cheers,
Tink
 
Old 01-05-2004, 11:05 PM   #13
Doomhammer
Member
 
Registered: Oct 2003
Location: Montreal Qc, Canada
Posts: 105

Rep: Reputation: 15
Just do halt -p
 
  


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
How to start, stop, turn on, and turn off deamons BuckRogers01 Debian 3 08-16-2005 10:39 AM
turn off doesn't really turn and power off pcandpc Mandriva 11 05-30-2005 04:22 PM
migrating accounts from maching and distribution version linuxnube Linux - General 2 03-08-2005 07:53 PM
How to turn off Xserver in the gui and turn it off in the command line geminiviper Linux - Newbie 8 08-20-2004 09:05 AM
?? What Is It ?? How Do I Turn It On ?? Raggit Linux - Newbie 11 03-08-2004 06:30 AM


All times are GMT -5. The time now is 12:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration