• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: halt is necessary ?  (Read 1864 times)
math
Newbie
*

Karma: 0
Posts: 11


View Profile
« on: July 17, 2010, 05:45:39 AM »

Hello,

When I wants to unplugged the guru, do I have to "sudo halt" before ? or can I unplug it roughly ?
Logged

sfzhi
Jr. Member
**

Karma: 1
Posts: 83


View Profile
« Reply #1 on: July 19, 2010, 12:40:58 AM »

If you have disk volumes mounted read/write you always risk losing information, whether you do "sudo halt" or not. "halt" decreases the risk significantly, because it syncs the disk buffers, but there is still no guarantee that some application is not in the process of writing data at that moment. You should use the normal shutdown procedure or at least remount all volumes read-only.
Logged

Lack of knowledge is not such a big problem, unwillingness to learn is.

math
Newbie
*

Karma: 0
Posts: 11


View Profile
« Reply #2 on: July 19, 2010, 01:15:31 AM »

> You should use the normal shutdown
And... what is the normal shutdown ? Are you talking about "shutdown -h now" ?
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 443


View Profile WWW
« Reply #3 on: July 19, 2010, 06:10:06 PM »

> You should use the normal shutdown
And... what is the normal shutdown ? Are you talking about "shutdown -h now" ?
Linux tries to help you with such things:
From "man halt"
Quote
       If  halt or reboot is called when the system is not in runlevel 0 or 6,
       in other words when it's running normally,  shutdown  will  be  invoked
       instead  (with  the  -h  or -r flag).
Just don't expect Solaris to be so helpful (IIRC)...
Logged

sfzhi
Jr. Member
**

Karma: 1
Posts: 83


View Profile
« Reply #4 on: July 20, 2010, 12:07:50 AM »

And... what is the normal shutdown ? Are you talking about "shutdown -h now" ?

Right. As birdman has pointed out, "halt" will normally call "shutdown". When writing my previous post I was thinking about "halt -f".
Logged

Lack of knowledge is not such a big problem, unwillingness to learn is.

Pages: [1]
Print
Jump to: