Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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.
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.
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..
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 ;)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.