歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> SUSE斷電開機後進入repair system解決方法

SUSE斷電開機後進入repair system解決方法

日期:2017/2/28 15:48:20   编辑:Linux教程

第一種情況:非正常關機引起的磁盤分區問題 不能正常進入系統

如下問題一般是如何引起和應該怎麼樣解決呢?
Finding module dependencies;
modprobe:modprobe:can't locate module block-major-3
fsck.ext3Possibly non-existent or swap device?
such device or address while trying to open /dev/hdb1
/boot: clena, 41/26104 files. 12679/104391 blocks[FAILED]

*** AN error occurred during the file system check
*** Dropping you to a shell; the systm will reboot

*** when you leave the shell
Give root password for maintenance

(or type Control-D to continue):

Login incorrect.
(Repair filesystem) 1 #

非正常關機引起的,用fsck /dev/hdaX後reboot進入,或只用fsck來修復,只管y回車

第二種情況:由於/etc/fstab文件編輯錯誤 而引起的不能正常進入系統

解決方法就是修改/etc/fstab文件成原來正常格式 刪除錯誤的或者是不存在的掛載目錄,本來是/dev/vda1,/dev/vda2兩個分區,竟然被修改成了/dev/xvda1,/dev/xvda2 。

操作:根據提示進入修復模式 Login incorrect.

(Repair filesystem) 1 # vim /etc/fstab
但是修復模式下(read-only system) 文件是被保護的不能修改 運行下面命令 把系統文件權限改成可讀寫(rw)

(Repair filesystem) 1 # mount -o remount,rw /
使根目錄可寫.即可以修復/etc/fstab文件,使之可寫.然後就可以vi修改了
保存 wq

(Repair filesystem) 1 #reboot

Copyright © Linux教程網 All Rights Reserved