|
|
发表于 2007-5-9 17:43:18
|
显示全部楼层
Post by wd_afei
是什么原理?有没有原理性的说明?要不就可以加精了,呵呵。 楼主说了通过看man可以查到的
man poweroff可以查到这一段 The -h flag puts all harddisks in standby mode just before halt or
poweroff. Right now this is only implemented for IDE drives. A side
effect of putting the drive in standby mode is that the write cache on
the disk is flushed. This is important for IDE drives, since the kernel
doesn't flush the write-cache itself before poweroff.
大概就是先用halt把硬盘置成standby,在硬盘进入standby模式后(后面的sleep命令的作用),就用poweroff切断电源。
根据这个原理,理论上hdparm也可以做到同样的工作,而且可能更可靠一点,前面说不行的同学们可以试试。 |
|