SCO UNIX(XENIX、SVR4、OpenServer 5)以多用戶、多任務、安全性佳、終端接入易、成本低,廣泛用於金融終端。但異常關機、誤刪系統檔、無中文提示、需手工敲指令排故,對維護人員技術要求高。故障多源於:異常關機導致檔案系統錯誤累積、維護人員操作不當造成二次傷害。核心工具為急救開機磁碟(製作方法參考《中國金融電腦》2001年第10期)。
boot not found / cannot open / stage 1 boot failure:error loading hd(40) /boot原因: /boot 損壞或遺失。
修復:
Boot: 提示下輸入 fd(60) unix.Z root=hd(42)。# umount /stand → # mount /stand(改變唯讀屬性)。# mount -r /dev/rfd0135ds18 /mnt(掛載急救磁碟)。# cp /mnt/boot /stand(複製 boot 檔)。# umount /mnt → # reboot。unix not found 系統掛起原因: /unix 核心檔損壞/遺失。
方案一(快): Boot: 下輸入 unix.old 使用備份核心啟動。
方案二(急救盤):
Boot: 輸入 fd(60) unix.Z root=hd(42) swap=hd(41)。umount /stand; mount /stand。mount -r /dev/rfd0135ds18 /mnt。cp /mnt/unix.Z /stand → reboot。現象 A: init:cannot open /etc/inittab errno:2 → /etc/inittab 遺失/損壞。
修復:
# ln -s /var/opt/K/SCO/unix/5.0.5a/etc/inittab /etc/inittab。# touch /etc/.new-unix; cd /etc/conf/bin; ./idmkenv(提示輸入 y)→ # cat /etc/inittab → # init 2 進入多用戶。現象 B: su:unknown id:root / init:single user mode / password file missing → /etc/passwd 遺失/損壞。
修復:
# mount -r /dev/rfd0135ds18 /mnt# cp /mnt/etc/passwd /etc/passwd# chown bin:auth passwd → reboot現象: shutdown -g0 -i0 -y 後提示 /etc/initscript:/etc/uadmin:not found 掛起。
原因: /etc/uadmin 遺失/損壞。
修復: 單用戶模式下掛載急救盤根分區(第 2 片),cp /mnt/etc/uadmin /etc/uadmin; chown bin:bin /etc/uadmin; umount /mnt; reboot。
現象: 終端顯示 login:,輸入用戶名後提示 terminal ttyXX is disabled ---see account administrator 退回。
原因: 預設連續失敗 99 次鎖定埠。
解鎖: 超級用戶登入 → scoadmin → System → Terminal Manager → Unlock 選中該埠解鎖。
防患: Terminal Manager → Options → Maximum unsuccessful attempts before locking terminal 改為 infinite(不限制)。
fsck -y 檢查並自動修復檔案系統一致性。SCO UNIX 穩定可靠,關鍵在於「預防性維護」與「標準化急救流程」。掌握上述五大故障修復,讓金融終端系統永續運轉。