1. 清除 obj 暫存檔
   cd /usr/obj
   chflags -R noschg *
   rm -rf *
   cp -Rp /etc /etc.old
2.進入單機模式 ( 可忽略)
   1. fsck -p
   檢查檔案系統
   2. mount -u /
   重新以可讀寫的方式來掛載 root slice
   3. mount -a -t ufs
   繼續掛載 root slice 之外的分割區(slice)
   4. swapon -a
   啟動所有於 /etc/fstab 中未加上 "noauto" 選項的 swap

3. 建立與安裝 kernel
   1.一般設定
   make buildworld
   make buildkernel
   make installkernel
   reboot
   2.進階自定
   make -j8 buildworld
   make buildkernel  KERNCONF=YOURKERNELNAME
   make installkernel  KERNCONF=YOURKERNELNAME
   reboot

4. 安裝 World
   make installworld
   mergemaster
   reboot
arrow
arrow
    全站熱搜

    gary1974tw 發表在 痞客邦 留言(0) 人氣()