存档
Ubuntu中的Load/Unload Cycle Count问题及解决方案
http://linuxtoy.org/archives/ubuntu-harddisk.html,
只有笔记本有此问题,试了下真的如文中所说,最后采用文章的第一方案:
摘自上面的链接:
4.1. 加入acpi脚本
1) 为使用电源和电池的时候定制不同的hdparm参数。你可能需要把/dev/sda修改成你的硬盘设备。
$sudo vi 99-hdd-ugly-fix.sh
#!/bin/bash
if on_ac_power; then
# on AC so don't do any head parking
hdparm -B 254 /dev/sda # you might need 255 or a different value
else
# either on battery or power status could not be determined
# so quickly park the head to protect the disk
hdparm -B 192 /dev/sda
fi
2) 将如上脚本安装到如下4个地方
$sudo install 99-hdd-ugly-fix.sh /etc/acpi/resume.d/
$sudo install 99-hdd-ugly-fix.sh /etc/acpi/start.d/
$sudo install 99-hdd-ugly-fix.sh /etc/acpi/ac.d/
$sudo install 99-hdd-ugly-fix.sh /etc/acpi/battery.d/
这个方案比开启laptop简单且方便。因此如果你实在是不想用pm.utils的时候,推荐使用这种方法。
升级ubuntu
8.04 代号hardy,上个月准时发布,昨晚升级了,下载了一千多个文件,4个多小时,顺利升级,虽然网上说性能和7.10版本相比没有提升,甚至有所减弱,但是这个版本有最新的ati驱动,不用再配置了,直接支持compiz,一开始还以为compiz没有起来,原来需要在Advanced desktop effects settings -> general options ->desktop size->水平设为4个,垂直设为1个,关掉,然后3d效果就出来了
最近又看了之前看的一本技术书,突然发现有了新的心得,以前看的时候就只是看过,没有觉得有什么特殊,这次有点不一样了,好像突然明白了很多,嘿嘿,继续
virtualbox虚拟ubuntu全屏问题
版本:
virtualbox:1.5.6
ubuntu:8.04 beta
装好后都挺好的,就是分辨率只有800*600,不能调,全屏后很难看,装了guest addition还是不管用,后来google了一把,直接把/etc/X11/xorg.conf对应的地方改为如下的就行了:
Section “InputDevice”
Identifier “Configured Mouse”
Driver “vboxmouse”
Option “CorePointer”
EndSection
Section “Device”
Identifier “Configured Video Device”
Driver “vboxvideo”
EndSection
Section “Monitor”
Identifier “Configured Monitor”
EndSection
Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Modes “”1024×768″ “800×600″ “640×480″ <– add the resolution you want
EndSubSection
EndSection
然后重启X就ok了。
ps,关于安装linux guest additions,在启动的ubuntu系统那个vbox菜单栏–>设备–>安装虚拟电脑工具包,这样会在桌面上出现一个iso,然后进入终端,
~>cd cdrom
~>sudo ./VBox….run
安装完后重启ubuntu就好了