Method for preventing restart failure of Linux system

A system restart and root file system technology, applied in the operating system field, can solve problems such as file system inconsistency, increased probability of disk write damage, and system failure to operate normally, so as to reduce the chance of system write, reduce the probability of disk write damage, and expand Effects of logging capabilities

Active Publication Date: 2018-04-17
CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the prior art, the ssd hard disk is directly used to install the distribution version of the linux system. After the Linux system is installed in this way, the system log generated when the system is running can only be recorded locally.
However, the local machine needs to record the log on the disk through the file system. When the write operation of the file system has not synchronized the log to the disk in time, the file system will be inconsistent.
If the power is cut off at this time, the file system check may fail during the system startup phase, resulting in the failure of the Linux system to start normally and affecting business operations
At the same time, due to the existence of a large number of log write operations, the probability of disk write failure will increase, and the system will not operate normally.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for preventing restart failure of Linux system
  • Method for preventing restart failure of Linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In one embodiment, a method for preventing restart failure of a Linux system is provided. During the system startup phase, the method copies the root file system on the CFast card, and uses the copied root file system to start the system.

[0023] Preferably, a virtual disk (ramdisk) is built in the internal memory, and in the system startup stage, the root file system located in the cfast card is copied to the ramdisk disk in the internal memory, then the ramdisk disk is switched to be the root file system, and the linux system is started . Because the root file system ramdisk itself is located in memory, and the file system in the cfast card does not need to be mounted at all, so no write operation will be generated for cfast.

[0024] In this embodiment, the chance of system writing is reduced through virtual hard disk technology, and the probability of disk writing failure is reduced. Therefore, this solution can fundamentally solve the problem of system startup fa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

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.

Description

technical field [0001] The present disclosure relates to an operating system, and in particular, relates to a method for preventing restart failure of a Linux system. Background technique [0002] In the prior art, the ssd hard disk is directly used to install the distribution version of the linux system. After the Linux system is installed in this way, the system log generated when the system is running can only be recorded locally. However, the local machine needs to record the log on the disk through the file system. When the write operation of the file system has not synchronized the log to the disk in time, the file system will be inconsistent. If the power is cut off at this time, the file system check may fail during the system startup phase, resulting in the failure of the Linux system to start normally and affecting business operations. At the same time, due to the existence of a large number of log write operations, the probability of disk write failure will incre...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/14
CPCG06F11/1438
Inventor 李强于庆
Owner CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products