close
Linux 改錯fstab 無法開機怎麼辦

如果修改 /etc/fstab 後,沒有用 mount -a 去檢查但又改錯了。下次開機可能會出現下面這個錯誤而失敗:

fsck.ext3:Unable to resolve "LABEL=/"
*** An error occured during filesystem check.
*** Dropping you to a shell, the system will reboot
*** when you leave shell

Give root password for maintenance (or type Control-D to continue):

這時該如何處理?

1. 輸入 root 密碼進入管理模式

2. 用 fdisk -l 或是 df 去看看掛載的情形,除錯模式中預設是以 ro 模式掛載,所以要改變掛載模式為 rw

3. 把/ remonut
(repair file system) n# mount -o remount,rw /dev/mapper/VolGroup00-LogVol00 /

4. vi 修改 /etc/fstab 把他改正確

5. 用reboot 重新開機即可

[參考資料]

聯成電腦技術前線:RHEL5開機過程疑難排解 胡尚忠 http://lccnetvip.pixnet.net/blog/post/28736834

[補充說明]

如果要檢查檔案系統,可下 (repair file system) 1# fsck -A -y

完整連結 http://note.tc.edu.tw/575.html

arrow
arrow

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