睡眠 休眠 硬盘 空间

查了下c盘根目录下的休眠文件hiberfil.sys有1G大小,真的要删除它。删除方法可不是直接删除 hiberfil.sys,那删除不了,也不是用windows7自带的磁盘清理,虽然清理项目中会显示出休眠文件,不过是清不掉了,只能通过命令  powercfg -h off 来关闭休眠功能(powercfg -h on是开启)。这是网上搜索到的方法,不过实际使用中,不论你是在开始-运行中,还是通过cmd打开的命令提示符窗口中运行该命令,均不会成功,前者直接 闪下就没了,后者会提示没有权限,再去看hiberfil.sys,还在。

真正关闭休眠的方法是,找到cmd.exe(在c:\windows\system32下),或直接在开始-运行中输入cmd,这时运行框的上 方程序中会出现cmd.exe(前提你没改了开始菜单的样式),然后右击cmd.exe,在弹出菜单中选择“以管理员身份运行”,再在打开命令提示符窗口 中,输入运行命令 powercfg -h off

这样才能真正关闭windows7中的休眠,运行完上面的命令后,不用再去删除hiberfil.sys文件了,它会自动消失,看看可用空间,已经增加1G了。

Last modified onSaturday, 05 January 2013 13:17

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0008413888{main}( ).../index.php:0
20.09114718664Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09114718664Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.421412446792Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.422512471312Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.423612526640Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.424012555464require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.436412990872K2ControllerItem->execute( ).../k2.php:64
90.436412990872K2ControllerItem->display( ).../BaseController.php:710
100.451013716072K2ControllerItem->display( ).../item.php:78
110.451013716072K2ControllerItem->display( ).../controller.php:19
120.457414112440Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.459914132808K2ViewItem->display( ).../ViewController.php:102
140.552617070968K2ViewItem->display( ).../view.html.php:742
150.552617070968K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.555117251168include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Debian
  • Read 3695 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0008413888{main}( ).../index.php:0
20.09114718664Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09114718664Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.421412446792Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.422512471312Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.423612526640Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.424012555464require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.436412990872K2ControllerItem->execute( ).../k2.php:64
90.436412990872K2ControllerItem->display( ).../BaseController.php:710
100.451013716072K2ControllerItem->display( ).../item.php:78
110.451013716072K2ControllerItem->display( ).../controller.php:19
120.457414112440Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.459914132808K2ViewItem->display( ).../ViewController.php:102
140.552617070968K2ViewItem->display( ).../view.html.php:742
150.552617070968K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.555117251168include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top