原文(繁體中文):http://don.7mix.net/archives/192
安裝 DazukoFS:
DasukoFS官網:http://dazuko.dnsalias.org/wiki/index.php/Main_Page
DazukoFS下載:http://dazuko.dnsalias.org/wiki/index.php/Downloads
# uname -a<br />#Linux localhost.localdomain 2.6.26.8-57.fc8 #1 SMP Thu Dec 18 19:19:45 EST 2008 i686 i686 i386 GNU/Linux<br />#tar -zxf dazukofs-3.0.0.tar.gz<br />#cd dazukofs-3.0.0<br />
安裝請參考README文檔,目前提供的 patch有如下幾個版本:
patch-linux-2.6.16 patch-linux-2.6.20 patch-linux-2.6.24 patch-linux-2.6.18 patch-linux-2.6.22 patch-linux-2.6.26 patch-opensuse-11.0 patch-opensuse-11.1 patch-ubuntu-8.10
按照uname的顯示,進行patch。如:
#patch -p1 < patches/patch-linux-2.6.26<br />#make<br />#make dazukofs_install<br />#/sbin/modprobe dazukofs<br />#dmesg | grep dazukofs<br />
應該顯示:dazukofs: loaded, version=3.0.0
測試:
#mkdir /tmp/dazukofs_test<br />#mount -t dazukofs /tmp/dazukofs_test /tmp/dazukofs_test<br />#cp /bin/a* /tmp/dazukofs_test<br />
建立測試程式:
#cd test<br />#make<br />#env LD_LIBRARY_PATH=lib ./showfiles<br />
開啟新的視窗:
#find /tmp/dazukofs_test -type f | xargs file
顯示:
/tmp/dazukofs_test/arch: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
/tmp/dazukofs_test/alsaunmute: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
/tmp/dazukofs_test/alsacard: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
/tmp/dazukofs_test/awk: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
出現類似上述資訊,表示載入成功
回前一個終端會看到如以下的列印:
pid:10173 file:/tmp/dazukofs_test
pid:10173 file:/tmp/dazukofs_test
pid:10175 file:/tmp/dazukofs_test/arch
pid:10175 file:/tmp/dazukofs_test/alsaunmute
pid:10175 file:/tmp/dazukofs_test/alsacard
pid:10175 file:/tmp/dazukofs_test/awk
按 Ctrl+C 結束測試進程
^C
Goodbye.
[root@fedora test]# umount /tmp/dazukofs_test
啟動自動掛載 DazukoFS 檔案系統:
最簡單的方法就是直接編輯 /etc/fstab,例如:
# vi /etc/fstab
/var/mysql /var/mysql dazukofs defaults 0 0
/usr /usr dazukofs defaults 0 0
開機時自動掛載/var/mysql 及 /usr 目錄