2013年8月1日

harddisk failure indicator from SMART

0x05 Reallocated Sectors Count
0xC5 Current Pending Sector Count
0xC6 Uncorrectable Sector Count

http://www.ntfs.com/disk-monitor-smart-attributes.htm

2013年7月15日

2013年5月11日

Instant shutdown by pressing the power button (Ubuntu)


That's simple enough. When you press the power button a ACPI event triggers the script at /etc/acpi/powerbtn.sh.

You can edit that to just run shutdown -h now as the first thing so it looks like:

#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.

/sbin/shutdown -h now "Power button pressed"
exit 0

# leave the old code below (in case you want to revert!)

2013年5月6日

電腦保養心得

1) 防毒軟件
相信沒有人不安裝防毒軟件, 不過很多人都忽略防毒軟件的更新. 電腦病毒日新月異, 防毒軟件之所以能偵測是因為防毒軟件廠商會每日都會準備病毒樣本更新給自家防毒軟件下載使用. 沒有更新的防毒軟件比沒有安裝防毒軟件更危險, 因為那會給使用者虛假的安全感.
就一般而言, 防毒軟件是會自動上網更新; 但以有例外: i) 電腦沒有連上互聯網; ii) 防毒軟件過期而使用者不留意: 這個情況最常出現於隨廠機附送的防毒軟件試用版.
個人使用Microsoft Security Essentials (MSE): i)小公司商用免費; ii) 即裝即用, 不用每年再行註冊
參考:
[下載] 10套免費防毒軟體 (免破解、免買序號 Free Antivirus)
Microsoft Security Essentials 微軟防毒軟體中文版
2) 定期資料備份
個人使用MozyHome Free, 2GB免費, 會定期自動把文件作備份.
有預算又不想為此煩惱的人可以考慮Backblaze,每個月不用US$5就可以線上備份整台電腦的資料.
參考:
MozyHome Free
3) 定期電腦硬件檢查
電腦中最常出現問題的部分是硬碟(Harddisk)和記憶體(RAM)
PC-doctor
memtest
http://www.passmark.com/products/diskcheckup.htm
4) 定期清理電腦
CCleaner
Disk Defrag
參考:
[下載] CCleaner v3.15.1643 繁體中文版!(清除電腦垃圾,讓Windows跑得更順暢!)
Saving proceduces:
Safe mode + Antivirus
WinPE