Anti-power-down linux system startup method

A file system, root file system technology, applied in the direction of program loading/starting, digital data processing, special data processing applications, etc., can solve problems such as operating system instability, file damage, inability to run, etc., to ensure normal startup and operation, time-consuming reduction, the effect of maintaining integrity

Active Publication Date: 2011-11-30
CHINA STANDARD SOFTWARE
View PDF0 Cites 17 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
  • Anti-power-down linux system startup method
  • Anti-power-down linux system startup method
  • Anti-power-down linux system startup method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] 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:

[0036] 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:

[0037] (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 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 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 Applications(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products