簡體   English   中英

如何從Fedora Core的rc.local中的錯誤insmod中拯救Linux系統?

[英]How to rescue the Linux system from erroneous insmod in rc.local in Fedora Core?

我在rc.local中放置了錯誤的內核對象。 由於此錯誤的內核對象,系統在啟動時崩潰。 現在,我的目標是從rc.user中刪除有問題的ko insmod。 但是,由於系統在啟動時崩潰,因此無法訪問rc.user。 如何解決此問題?

如果您正在獲取grub屏幕,則可以轉到runlevel 1並更改文件。

在grub屏幕上,您將必須

press a after selecting the Fedora kernel with which you want to boot.
APPEND single after space in that line and press enter
press b to boot in single user mode

您可以在此模式下編輯任何文件。

當我進入這樣的煩惱,最安全和最簡單的方法是mount在HD(contaning故障內核)作為外部硬盤驅動器到另一個Linux機器和手動編輯文件作祟。

  1. 在插入HD的情況下執行fdisk -l (通過USB)。 注意< /dev/sd*# >。
  2. mount /media /dev/<sd*#>

現在,您可以訪問boot分區或root分區來訪問文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM