linux啓動不了,無法進入rescure模式,Mount: could not find filesystem '/dev/root

我在虛擬機上做linux練習,昨天正常關機後,今天便無法開機了,而且resucre模式都進入不了。如下所示:
Mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mouting /proc: No such file or directory
setuproot: error mouting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
於是回想可能是因爲昨晚的一系列操作導致文件系統出了問題,昨天看鳥哥的私房菜講到修改分區的label,於是就胡亂找了個分區改了下,個人感覺問題可能出現在這。
解決辦法:步驟1,當進入grub界面時,修改kernel那行,將root=LABEL=/改爲不通過標籤啓動即root=/dev/hda2(這是我的根目錄分區,昨天修改的好像就是它),然後重新啓動就進入了系統,不過它需要輸入root密碼。
步驟2,修改標籤。命令e2label /dev/hda2 "/"。OK,完成。hahahaha

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章