針對傳統商業 UNIX (SCO UnixWare, OpenServer 等) 五大核心啟動故障 —— **Boot 遺失、Unix 核心遺失、/bin/sh 損壞、/etc/uadmin 遺失導致關機失敗、/etc/init 遺失導致掛起** —— 提供標準化急救流程:啟動盤/根盤雙盤啟動 → 掛載硬碟 → 從救援盤拷貝缺失檔案 → 修正屬主群組 → 重啟驗證。
# 提示符。mount /dev/hd0root /mnt (或對應裝置節點)。boot not found cannot open Stage 1 boot failure: error loading hd(40)/boothd(40)/unix 載入核心 → 單用戶模式。mount /dev/fd0135ds18 /mnt。cp /mnt/boot /boot (或 /mnt/boot / 視路徑)。umount /dev/fd0135ds18。haltsys 關機 → 拔 Boot 盤重啟。chown bin:bin /boot。unix not foundfd(64) unix root=hd(40) swap=hd(41) pipe=hd(40) 或 fd(64)/unix → 單用戶模式。mount /dev/fd0135ds18 /mnt。cp /mnt/unix /unix。haltsys、重啟。chown bin:mem /unix。INIT: command exec /etc/brc ... failed to execute, errno=9 (exec of shell failed)#。mount /dev/hd0root /mnt。cp /bin/sh /mnt/bin/sh。haltsys、重啟。chown bin:bin /bin/sh。/etc/initscript:/etc/uadmin: not found 死機mount /dev/fd0135ds18 /mnt。cp /mnt/etc/uadmin /etc/uadmin。chown bin:bin /etc/uadmin。Kernel: I/o bufs=600k 後掛起#。mount /dev/hd0root /mnt。cp /etc/init /mnt/etc/init。haltsys、重啟。chown bin:bin /etc/init。| 故障現象 | 缺失檔案 | 救援盤類型 | 拷貝來源 | 目標路徑 | 屬主:群組 |
|---|---|---|---|---|---|
| Boot 遺失 | /boot | Boot 盤 | /mnt/boot | /boot | bin:bin |
| Unix 核心遺失 | /unix | Boot 盤 | /mnt/unix | /unix | bin:mem |
| Shell 損壞 | /bin/sh | Root 盤 | /bin/sh | /mnt/bin/sh | bin:bin |
| 關機失敗 | /etc/uadmin | Root 盤 | /mnt/etc/uadmin | /etc/uadmin | bin:bin |
| 啟動掛起 | /etc/init | Root 盤 | /etc/init | /mnt/etc/init | bin:bin |
chroot → grub-install/update-initramfs/reinstall kernel。cp -a /lib/x86_64-linux-gnu/* /mnt/lib/x86_64-linux-gnu/。cp -a /sbin/init /mnt/sbin/init。UNIX 經典啟動故障雖屬歷史,但其**救援邏輯 (雙盤啟動 → 掛載 → 拷貝 → 屬主 → 驗證)** 普世適用於所有類 Unix 系統。現代 Linux 管理員若能熟練掌握 chroot、grub-install、dracut/mkinitcpio、rpm2cpio/dpkg-deb 解包提取單檔等技能,即是這套經典邏輯在當代工具鏈上的投影。