Centos6.5進入救援模式的方法
時間:2015-03-16 21:17來源:blog.51cto.com 作者:“模范生的學習博客” 舉報 點擊:3993次
使用版本:Centos6.5
救援模式有什麼作用:
◆可以更改root密碼;
◆恢復硬盤、文件系統操作;
◆系統啟動不來的時候,只能通過救援模式來啟動;
救援模式啟動的步驟如下:
1、首先開機進入BIOS設置(每台電腦進入bios的方法不同根據自己的電腦進入),BOOT啟動順序為光盤優先啟動 CD-ROM Drive 使用小鍵盤的+ -號調整上下順序;設置好後保存並退出。

2、重啟系統後進入安裝啟動菜單,上下鍵移動到Rescue install system 救援安裝系統;

3、選擇語言,保持默認English

4、選擇鍵盤類型,保持默認us

5、是否啟動網絡,需要根據你實際情況進行選擇,如果需要通過聯網拷貝數據,選擇YES,在這裡我們選擇NO;

6、進入到Rescue界面,選擇Continue

7、系統掛載在/mnt/sysimage下 如果要到root環境下,運行 chroot /mnt/sysimage 命令

8、三種選項:shell 進入命令行模式;fakd是診斷模式;reboot重啟電腦;我們這裡選擇shell

9、進入shell命令行,提示符為bash-4.1#
ls /mnt/sysimage/ 顯示掛載的目錄為根目錄的文件
執行chroot /mnt/sysimage/ 將/mnt/sysimage/目錄下的文件移動到根目錄;
命令後提示符為sh-4.1#
ls 顯示為根目錄的文件;

10、在sh-4.1#模式下需要先exit退出,回到bash-4.1#才可以reboot重啟系統;