How to fix a Linux system when it fails to boot (如何在Linux系統發生啟動故障時,對其進行修復)

I have only tested the following on Ubuntu systems and should also work on other Linux systems. As we all know, Linux systems are very different from Widows system. Sometimes, the Linux system will also have some errors. Next, I will show you how to fix the system when the Linux system fails to boot.
   Some time ago, my Ubuntu system got sonething wrong, which was caused by the bug of Timeshift software. Timeshift occupies the entire hard disk of Linux due to the backup system, and the system cannot boot normally. I ended up using my own method to successfully save my computer. The following is a summary:

Method 1:
   In general, if you know the problem and know how to fix it, that's the best case. But in most cases, this is often a complex issue that can cost us a lot of time.

Method 2:
   Linux systems generally have a recovery mode, we can follow the system prompts. To save our computer.

Method 3:
Install Boot-Repair tool
   This usually solves most system startup problems. I highly recommend that you connect your computer using a portable storage that stores Linux files. After that, enter the BIOS. Enter the live mode of the Linux system. Enter the following command in the terminal to install and use the Boot-Repair tool (for example, the ubuntu system):

$ sudo add-apt-repository ppa:yannubuntu/boot-repair
$ sudo apt-get update
$ sudo apt-get install boot-repair
$ boot-repair


Then just follow the prompts.

Finished!

Discussion:
   Although many people on the Internet suggested reinstalling the system, there is no option to keep the original files and reinstall the system on my Ubuntu18.04LTS.
Everyone is welcome to propose amendments.





Traditional Chinese language version(I am currently practicing translation techniques):
                           如何在Linux系統發生啟動故障時,對其進行修復

      以下內容我只在Ubuntu系統上進行了測試,應該也適用於其他Linux系統。眾所周知,Linux系統與widows系統相比有很大不同。有時,Linux系統也會出現一些錯誤。接下來,我將為大家說明如何在Linux系統發生無法啟動的狀況時,如何對系統進行修復。
      前一段時間,我的Ubuntu系統發生了故障,這是由於Timeshift這一軟件的BUG所導致的。 Timeshift由於備份系統,佔用了Linux的整個硬盤,導致系統無法正常啟動。我最終使用了自己的方法成功挽救了我的電腦。下面是總結:

方法1:
       一般來說,如果你自己知道問題的所在,並且知道如何去修正,那是最好的情況。但是大部分情況下,這常常是一個複雜的問題,有可能消耗我們的很多時間。

方法2:
       Linux系統一般會有恢復模式,我們可以按照系統的提示進行操作。來挽救我們的電腦。

方法3:
  安裝Boot-Repair tool
       這通常能解決大多數係統啟動問題。我強烈建議你使用存儲有Linux啟動文件的移動存儲介質連接你的電腦。之後,進入BIOS。進入Linux系統的live模式。在終端中輸入以下指令,用來安裝並且使用Boot-Repair tool(以ubuntu系統為例):
$ sudo add-apt-repository ppa:yannubuntu/boot-repair
$ sudo apt-get update
$ sudo apt-get install boot-repair
$ boot-repair

之後只要按照提示操作即可。

完成!

討論:
  儘管網上有不少人建議重裝系統,但在我的Ubuntu18.04LTS上並沒有保留原有文件並重裝系統的選項。

歡迎大家提出修改意見。

Comments