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

Power-down prevention Linux system startup method

A file system and root file system technology, applied in program loading/starting, electronic digital data processing, special data processing applications, etc., can solve problems such as operating system instability, inability to run, and file corruption, to ensure normal startup and run, maintain integrity, reduce time-consuming effects

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-down prevention Linux system startup method
  • Power-down prevention Linux system startup method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the above-mentioned and other objects, features and advantages of the present invention more obvious and easy to understand, the preferred embodiments of the present invention are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings:

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

[0037] (1) After the Linux system starts, directly enter the Grub boot program (step 10), and Grub boots the operating system of the specified partition in the configuration file by loading the G...

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 discloses a power-down prevention Linux system startup method. The method is a union file system method and comprises an initialization step and a folder recovery step. In the initialization step, four key folders such as / etc, / root, / var and / tmp of a root file system are remounted into four empty read-write folders of a memory file system in a way of remounting of a file system; in the folder recovery step, the first three empty read-write folders of a memory file system is combined with corresponding read-only system folders on a disk by calling related commands of union folders, so that the first three empty read-write folders comprise the contents of the corresponding read-only system folders on the disk. By the method, in the process of system startup and operation, system folders are written in the memory instead of the disk, so the file system is protected and a perfect power-down prevention scheme is realized.

Description

technical field [0001] The invention relates to a booting method of a Linux system, in particular to a booting method against power failure. Background technique [0002] In Linux customized systems such as information distribution systems and set-top box systems, there is such a requirement in practical applications, that is, after the user directly powers off the power, the operating system in the box can still be started normally, and it is not allowed to occur due to sudden power failure. The file system is damaged and the operating system cannot be started normally. [0003] For this kind of situation, the common practice is to use a journaled file system, that is, to check and repair the disk based on the log, which greatly reduces the consistency of the file system when the file system encounters unpredictable events such as power failure. The time required can be said that this method can basically solve the problem of corrupted file system in the case of sudden pow...

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): G06F11/00G06F9/445G06F17/30
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