The invention relates to a method for preventing restart failure of a Linux system. According to the method, in a system startup stage, a root file system in a CFast card is copied, and the copied root file system is used for starting the system. Based on an existing storage medium of the system, a nonvolatile storage medium is additionally adopted for recording logs, so that the root file systemand log files of the system are recorded in different storage mediums. By adopting one or two methods, the writing chances of the system can be reduced through a virtual hard disk technology, the diskwriting damage probability is reduced, and the problem of influence on system startup and automatic recovery due to crash of the file system caused by power failure of the system is solved. By addingthe separate storage medium for recording the log files, the log recording capability of the system is improved, and any original program does not need to be modified. Even if an SSD is damaged, a business is not interrupted; and only the log nonvolatile storage performance is lost; and the logs are additionally stored in a memory.