Moya's Blog

About

慈濟大陸賑災、緬甸風災捐款: External link mark
郵政劃撥帳號-06692433
戶名-佛教慈濟基金會賑災專戶
(註明四川震災或緬甸風災)
慈濟捐款網站請按此 External link mark


處順境若能慈悲,則後福自在,仆逆境倘得智慧,則遺禍自消,於順境若能不喜,則後患不至,當逆境或能捨得,則福自踵來。此慈悲喜捨,便是大般涅槃無上妙法,入世行者或能三思。


《既然清淨,何必有網?》
《譬如大日,遍照不爽。》
《上下十方,無為自在;》
《因陀羅手,去曼達礙。》


靜思晨語系列 獅子吼大德 慈濟的好友 雅虎的好友 老骨頭級的朋友

14 Nov 2008 - 18:49 in tagged , by MoyaTseng
其實 FreeBSD 7 出來很久了,只不過有鑑於之前的升級都不怎麼成功,弄到最後都要重灌,所以不是很喜歡作這種跨大版本的升級。

不過,這次找到一份文件,相當的完整,實際上測試也是成功了,所以把他精簡出來。他的文件寫得很好,滿詳細的,沒有會讓人失誤的地方。其實也可以直接參考那一份文件。

參考文件

  1. http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-6x-7x.txt

install compat libraries

  1. fetch -p ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.1-release/All/localedata-5.4.tbz
  2. pkg_add localedata-5.4.tbz
  3. fetch -p ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.1-release/All/compat6x-i386-6.3.603000.200801.tbz
  4. pkg_add compat6x-i386-6.3.603000.200801.tbz

install upgrade toolkit

  1. cd /usr
  2. fetch http://people.freebsd.org/~rse/dist/freebsd-adm-1.2.2.tar.gz
  3. rm -rf adm
  4. tar xvfz freebsd-adm-1.2.2.tar.gz
  5. rm -f freebsd-adm-1.2.2.tar.gz
  6. vi /usr/adm/cfg/csup.src
    • replace RELENG_6 to RELENG_7

Upgrade

Download new source tree

  1. vi /etc/cvsupfile
    • add src-cddl
  2. cd /usr/src && make cleandir
  3. cd /usr/adm && make update

Merge master files

  1. mergemaster -p

build new system

  1. cd /usr/adm && make world-build kernel-build

install new system

  1. make world-install kernel-install
  2. rm -f /etc/rc.d/ike /etc/rc.d/pccard /etc/rc.d/pcvt /etc/rc.d/ramdisk
  3. rm -f /etc/rc.d/ramdisk-own /etc/rc.d/usbd
  4. make etc
  5. make clean
  6. reboot

Cleanup

  1. ( for dir in /bin /sbin /usr/bin /usr/sbin /usr/libexec /usr/libdata; do find $dir -mtime +2 -type f -xdev -print; find $dir -mtime +2 -type l -xdev -print; done ) >/tmp/remove
  2. vi /tmp/remove
    • REVIEW FILES TO REMOVE MANUALLY
  3. cat /tmp/remove | xargs rm -f
  4. ( for dir in /lib /usr/lib; do find $dir -mtime +2 -type f -xdev -print; find $dir -mtime +2 -type l -xdev -print; done ) | grep -v /usr/lib/compat >/tmp/move
  5. vi /tmp/move
    • REVIEW FILES TO MOVE MANUALLY
  6. for x in `cat /tmp/move`; do chflags noschg $x; mv $x /usr/lib/compat/; done
  7. cd /usr/src; make BATCH_DELETE_OLD_FILES=YES delete-old delete-old-libs
  8. shutdown -r now
    • After reboot, System is clean.


Leave a Reply

You may have to login or register to comment if you haven't already.

訪客統計: 4366 人次



請按此訂閱每日人間菩提。靜思晨語 External link mark
本站所有言論均不代表慈濟基金會 External link mark


我為你祝福
我也要許願

r1 – 14 Nov 2008 – 18:52:06 – Main.MoyaTseng
Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding Moya's Blog? Send feedback.