Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Power-failure resistant method for starting Linux system

A system file, root file system technology, applied in the direction of program loading/starting, program control devices, etc., can solve problems such as operating system instability, file damage, inability to run, etc., to improve reading and writing speed, simple principle, easy to use handy effect

Active Publication Date: 2014-01-15
CHINA STANDARD SOFTWARE
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] As far as the file systems commonly used under Linux are concerned, whether it is EXT2, EXT3, XFS, or REISERFS, regardless of whether they support the log writing function to the disk, they cannot avoid writing to the disk.
And as long as there is physical writing to the disk, there is the possibility of file damage, and the operating system also has the hidden danger of instability or even complete inoperability due to file loss or damage.

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
  • Power-failure resistant method for starting Linux system
  • Power-failure resistant method for starting Linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the above-mentioned and other purposes, features and advantages of the present invention more comprehensible, the preferred embodiments of the present invention are specifically cited below, together with the accompanying drawings, as follows:

[0032] The startup of the Linux system is roughly divided into six steps: Grub boot, Kernel startup, initrd.img decompress and run, the init application program of the Linux system executes the rc.sysinit program, and the system script rc starts the system service and starts the graphical interface Xwindow according to the operation level . The Linux system startup flow chart including the anti-power-down function is attached figure 2 As shown, the specific steps of implementation include:

[0033] (1) After the Linux system is started, it directly enters the Grub boot program (step 10), and Grub loads the Grub.conf configuration file to guide the operating system of the partition specified in the configuratio...

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 power-failure resistant method for starting a Linux system. The method comprises the following steps of: establishing read-write copies of four system folders, namely / etc, / root, / var and / tmp, in an internal memory; and starting a system by operating the read-write copies of the four system folders to keep a root file system, on a disk, read-only in the process of starting and operating and meet the requirements that the four system file folders, namely / etc, / root, / var and / tmp, are in a read-write state during the starting and operating of Xwindow. Therefore, even if power failure frequently occurs, the system can be normally started, and the hidden danger of instability or even inoperability brought by loss or damage of the file system caused by write-in operation of the disk is avoided.

Description

technical field [0001] The invention relates to a starting method of a Linux system, in particular to a starting method against power failure. Background technique [0002] In information publishing systems and set-top box systems and other similar Linux customized systems, there will be such a requirement in practical applications, that is, after the user directly cuts off the power, the operating system in the box can still start normally, and it is not allowed to occur due to sudden power failure. As a result, the file system is damaged and the operating system cannot be started normally. [0003] For this type of situation, the common practice is to use a log-type file system, that is, to check and repair the disk based on the log, and greatly reduce the file system used to restore the consistency of the file system when it encounters unpredictable events such as power failures. It can be said that this method can basically solve the problem of file system damage caused...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
Inventor 兰雨晴李文昌董恩广王钧钟伟黄世林张木梁夏颖
Owner CHINA STANDARD SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products