Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

UNIX 系統五大啟動故障診斷與修復實戰手冊

編輯:Linux 教學

針對 UNIX 系統啟動階段常見的五類故障,提供逐步修復流程。核心原則:以開機磁片/光碟引導進入單用戶模式,掛載根分區,從備份媒體還原遺損的關鍵系統檔,修正權限後重啟。

故障一:Boot 檔遺失

現象:boot not found cannot open Stage 1 boot failure:error loading hd(40)/boot 掛死。
修復:開機磁片啟動 → 輸入 hd(40)/unix 載入核心 → 單用戶模式 → 掛載開機磁片 mount /dev/fd0135ds18 /mnt → 複製 cp /mnt/boot /boot → 卸載、關機、修正 /boot 擁有者為 bin。

故障二:核心 unix 檔遺失

現象:unix not found 掛死。
修復:開機磁片啟動 → 輸入 fd(64) unix root=hd(40) swap=hd(41) pipe=hd(40) → 單用戶模式 → 掛載開機磁片 → cp /mnt/unix /unix → 卸載、關機、修正 /unix 擁有者為 bin:mem。

故障三:/bin/sh 損毀

現象:啟動次畫面出現 INIT: command exec /etc/brc ... errno=9 (exec of shell failed)。
修復:開機磁片 + Root 磁片雙磁片啟動 → 掛載硬碟 mount /dev/hd0root /mnt → cp /bin/sh /mnt/bin/sh → 卸載、關機、修正權限。

故障四:/etc/uadmin 遺失導致無法正常關機

現象:關機顯示 /etc/initscript:/etc/uadmin:not found 死機,下次開機需 fsck。
修復:單用戶模式 → 掛載 Root 磁片 → cp /mnt/etc/uadmin /etc/uadmin → 卸載、修正權限為 bin。

故障五:/etc/init 遺失導致系統掛起

現象:第二畫面出現 Kernel: I/o bufs=600k 後掛起。
修復:開機磁片 + Root 磁片啟動 → 掛載硬碟 → cp /etc/init /mnt/etc/init → 卸載、關機、修正權限為 bin。

所有修復完成後,務必以超級用戶身分驗證檔案擁有者與群組,確保系統穩定啟動。

Copyright © Windows教程網 All Rights Reserved