Thursday, November 24, 2011

[WinXP]安裝Windows XP後啟動SATA driver(AHCI)

ASUS eeebox pc eb1007 安裝 windows XP後要啟動sata的AHCI模式可依下列方式

1.下載AHCI的driver(for eeebox eb1007 in winxp)
AHCI(Intel SATA AHCI Controller) driver
Intel SATA控制器驅動適用於Windows XP

AHCI_8_9_0_1023.zip

2.解壓縮後將 IaStor.sys 複製到 windows\system32\drivers 目錄下

3. 將下列文字存成ahci.reg
====================================================
Windows Registry Editor Version 5.00

; --
; traegt einige Betriebsmodi der SATA-AHCI-Hostadapter
; der I/O Controller Hubs
; ICH7R, ICH7-DH, ICH7M-DH
; ICH8R, ICH8-DH, ICH8-DO, ICH8-M, ICH8-ME
; ICH9, ICH9R, ICH9-DH, ICH9-DO
; ICH9-M, ICH9-ME (experimentell)
: ICH10, ICH10R
; der Intel-Chipsaetze
; 955X, 945P, 945G, P965, G965, Q965, Q963
; 945GM, 945PM, 965GM, 965PM
; G31, G33, G35, P31, P35, X38, X48
; G43, G45, P43, P45
; GM45, GM47, PM45
; Q45, P55 (experimentell)
; in die Registry einer Windows-XP-Installation ein
; (XP Home, Professional, x64 Professional Edition).
; --
; Der Treiber IaStor.sys muss man manuell kopieren
; in das Verzeichnis
; %SYSTEMROOT%\system32\drivers\iaStor.sys
; Weitere Tipps: c't 23/05, S. 210
; und
; SATA-AHCI-Treiber nachrüsten:
;
; Weitere Informationen:
; ICH7R: www.intel.com/design/chipsets/datashts/307013.htm
; IaStor.sys:
; Enthalten in Intel Matrix Storage Manager (IMSM), 32- und 64-Bit:
; http://support.intel.com/support/chipsets/imsm/
; Trademarks: Intel (www.intel.com), Microsoft (www.microsoft.com)

; ICH7 AHCI
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_27c1]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH7-M AHCI
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_27c5]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH7 RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_27c3]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH7-M DH RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_27c6]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH8, ICH8R, ICH8-DO, ICH8-DH AHCI 6-Port
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2821]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH8, ICH8R, ICH8-DO, ICH8-DH AHCI 4-Port
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2824]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH8, ICH8R, ICH8-DO, ICH8-DH RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2822]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH8-M, ICH8-ME AHCI
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2829]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH8-M RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_282A]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH9, ICH9R, ICH9-DO, ICH9-DH AHCI Ports 0-5
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2922]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH9, ICH9R, ICH9-DO, ICH9-DH AHCI Ports 0, 1, 4, 5
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2923]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH9R RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2822]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH9R RAID Alternativ je nach Bit 7 im Register D21:F2:9Ch (siehe Datenblatt)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2925]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH9-M, ICH9-ME AHCI
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2929]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH9-M RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_282A]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH9-M RAID Alternativ je nach Bit 7 im Register D21:F2:9Ch (siehe Datenblatt)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_292C]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH10, ICH10R AHCI Ports 0-5
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3A22]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH10R RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3A25]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH10DO AHCI
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3A02]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; ICH10DO RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3A05]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; P55 AHCI Port 0-5
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3B22]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; P55 AHCI Port 0,1,4,5
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3B23]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; P55 RAID ist 3A25 wie ICH10R

; P55 Mobile AHCI Port 0-5
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3B2F]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; P55 Mobile AHCI Port 0,1,4,5
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3B29]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

; P55 Mobile RAID
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&dev_3B2C]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor]
"Type"=dword:00000001
"Start"=dword:00000000
"Group"="SCSI miniport"
"ErrorControl"=dword:00000001
"ImagePath"="system32\\drivers\\iaStor.sys"
"tag"=dword:00000019
"DisplayName"="Intel AHCI Controller"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\iaStor\Parameters]
"AtapiOnPrimary"=dword:ffffffff
"AtapiOnSecondary"=dword:ffffffff

================================================================
4.執行ahci.reg
5. 重新開機,按F2進入BIOS中將sata模式由IDE改為AHCI,應該就可以正常進入Windows XP了

Reference:http://etactiks.blogspot.com/2010/12/how-to-inject-sata-drivers-ahci-after.html

Sunday, November 20, 2011

[Ubuntu]How to enable exFAT

如果你的磁碟是在Win7下格式化為exFAT,在Ubuntu下是無法讀取的,必須要安裝下面的套件就可以掛載讀取了

sudo apt-add-repository ppa:relan/exfat
sudo apt-get update
sudo apt-get install fuse-exfat


Reference:http://apcmag.com/how-to-enable-exfat-in-ubuntu.htm

Tuesday, November 15, 2011

[CentOS] yum update db error

當使用yum install時,如果有出現下列錯誤(error)

updates/primary_db

http://ftp.iij.ad.jp/pub/linux/centos/5.7/updates/x86_64/reposdata/primary.sqlite.bz2:[Errno -1] Metadata file does not match checksum

解決方式如下(Solution)

yum clean all

rm -f /var/lib/rpm/_db*

rpm --rebuilddb

Tuesday, November 1, 2011

[PDF] 免費視覺化的裁切PDF檔工具

在Kindle看PDF時,常會因為PDF周圍的空白太大,導致本文看起來很小,所以最好是可以裁切一下PDF檔,把周圍的空白的切掉,Briss是個不錯的免費軟體,不需要安裝,又很方便使用。