1. 程式人生 > >Redhat 伺服器開機過程中在 /etc/fstab swaps [ok]後就停止

Redhat 伺服器開機過程中在 /etc/fstab swaps [ok]後就停止

如果你還卡在
Enabling etc/fstab swap OK
那請重啟,不要再傻等了,在重啟後進入grub列表時以單使用者進入
修改如下檔案:
/etc/X11/xorg.conf
修改類似下面的一行:
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes “1440x900" "1024x768" "800x600" "640x480"

EndSubSection
EndSection
沒有這一行,請加上,在SubSection 到EndSubSection之間。
注意:
是Modes 不是models,
是"1024x768" 而非"1024*768"。
這裡解析度根據你自己情況的設定,但最好包含一些低標準的解析度,不要只寫高的,像“1440x900",不然你可能還是無法顯示。
第二種方法 1、在系統啟動時,進入啟動選單編輯,會發現在grub的載入程式中引數:grub append>ro root=LABEL=/1 noapic rhgb quiet,就是這個rhgb quiet讓系統載入到enabling /etc/fstab swap ok 後就停止不動了,把這個引數刪除,就可以進入
linux了.
2、使用vi編輯一下/etc/grub.conf 把grub append>ro root=LABEL=/1 noapic rhgb quiet這一行的rhgb quiet刪掉,存在退出就OK了。
或者

1. 開機倒數幾秒的時候按任意鍵
2. 畫面會跳到 2.6.18.xxxx.fc6
3. 按 e
4. 選第二行 kernel /boot/vmlinuz-xxxxxxxx
5. 把最後面 rhgb quite 給 delete 掉
6. Enter
7. 按 b

就可以進入linux了!!

方法三

進入單使用者模式

是在啟動時 把APIC禁止啟動

原因:在系統裡面加入了幾條啟動服務的命令
通過登單使用者模式把這幾條命令禁止掉,系統就能正常啟動了
如#vim /etc/init/rc.conf