CN113032032B - System management method and device, computing equipment and readable storage medium - Google Patents

System management method and device, computing equipment and readable storage medium Download PDF

Info

Publication number
CN113032032B
CN113032032B CN202110555484.6A CN202110555484A CN113032032B CN 113032032 B CN113032032 B CN 113032032B CN 202110555484 A CN202110555484 A CN 202110555484A CN 113032032 B CN113032032 B CN 113032032B
Authority
CN
China
Prior art keywords
partition
backup
root
starting
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110555484.6A
Other languages
Chinese (zh)
Other versions
CN113032032A (en
Inventor
程波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Deepin Technology Co ltd
Original Assignee
Wuhan Deepin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Deepin Technology Co ltd filed Critical Wuhan Deepin Technology Co ltd
Priority to CN202110555484.6A priority Critical patent/CN113032032B/en
Publication of CN113032032A publication Critical patent/CN113032032A/en
Application granted granted Critical
Publication of CN113032032B publication Critical patent/CN113032032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a system management method, which is suitable for being executed in computing equipment, wherein the computing equipment comprises an operating system launcher and a file storage system, the operating system launcher is suitable for being loaded when the equipment is started, the file storage system comprises a root partition and a backup partition, and the method comprises the following steps: receiving a system starting guide item selected by a user after an operating system starter is loaded, wherein the system starting guide item comprises restoration starting; when a user selects restoration starting, setting the current backup partition as a mounting partition of an operating system starter, and mounting the current backup partition under a root directory; starting an operating system on the computing equipment according to the file content in the mount partition, and exchanging roles of the root partition and the backup partition; and backing up the system file of the mount partition of the system initiator to the current backup partition, and deleting the restoration initiation in the system initiation guide item. The invention also discloses a corresponding device, a computing device and a readable storage medium.

Description

System management method and device, computing equipment and readable storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a system management method, an apparatus, a computing device, and a readable storage medium.
Background
As is well known, in the process of using a mobile phone or a computer, an operating system is often required to be upgraded to support the latest applications or obtain more functions, but the upgrading of the system itself may cause problems: for example, in the upgrading process, power failure occurs, which causes damage to important files or data due to incomplete storage, and may also cause a certain accident due to a special software and hardware environment in the upgrading process, which causes a certain damage to the system. In short, neither computer system software nor hardware can guarantee one hundred percent stability.
Therefore, before the system upgrade, it is desirable to save the operating system that can currently run normally, so that after the system upgrade fails, the operating system can smoothly return to the version of the operating system before the upgrade. At present, in a Linux system, two ways are widely applied, one way is that tar is used for compressing a system file to be backed up, a user enters root authority, and directory files related to root files are compressed by using a tar command to complete backup, but the premise is that the user needs to enter the root authority, if the user performs irreversible operation under the root authority, an unrecoverable error of the system file is easily caused, the safety of the system cannot be guaranteed, and certain Linux command operation foundation is also needed for realizing switching by using the tar, so that the Linux system is not friendly to users who do not use Linux, after the user has certain Linux foundation, the user also needs to pay attention to the processing of a series of switching actions such as root file directories and root file authorities, and meanwhile, the tar is very time-consuming to compress the file. Another system backup method is that a root file is backed up by using a dd command, the name of a source hard disk device mounted by the root file needs to be known, and a spare hard disk not smaller than the size of the source hard disk is reserved, which also requires that a user has root authority, requires that the user has a certain Linux file and device management basis, and also causes a time-consuming aggravation phenomenon when a hard disk with a large dd backup size is used, so that the experience of the user is not friendly without knowing the dd command.
Therefore, a system backup and restore mechanism with simple operation and user friendliness is needed to improve the user experience.
Disclosure of Invention
To this end, the present invention provides a system management method, apparatus, computing device and readable storage medium in an effort to solve, or at least mitigate, the above-identified problems.
According to one aspect of the present invention, there is provided a system management method, adapted to be executed in a computing device, the computing device comprising an operating system launcher and a file storage system, the operating system launcher being adapted to be loaded upon boot-up of the device, the file storage system comprising a root partition and a backup partition, the method comprising: receiving a system starting guide item selected by a user after an operating system starter is loaded, wherein the system starting guide item comprises restoration starting; when a user selects restoration starting, setting the current backup partition as a mounting partition of an operating system starter, and mounting the current backup partition under a root directory; starting an operating system on the computing equipment according to the file content in the mount partition, and exchanging roles of the root partition and the backup partition; and backing up the system file of the mount partition of the system initiator to the current backup partition, and deleting the restoration initiation in the system initiation guide item.
Optionally, in the system management method according to the present invention, the method further includes the step of installing an operating system in the computing device, specifically including: creating a root partition and a backup partition in a file storage system; installing an operating system in a root partition; and backing up the system files of the root partition to a backup partition, and backing up the currently used kernel files and initrd files to a backup subdirectory in the boot.
Optionally, in the system management method according to the present invention, starting an operating system on the computing device according to the file content in the mount partition includes: copying a kernel file and an initrd file in a backup subdirectory in the boot into the boot; and calling a GRUB configuration module to modify the configuration of the boot loader, and modifying the kernel boot parameters of the first boot item into UUIDs of the backup partitions so as to facilitate the system to boot from the backup partitions.
Optionally, in the system management method according to the present invention, the system boot entry further includes a normal boot, and the method further includes: when a user selects conventional starting, setting the current root partition as a mounting partition of an operating system starter, and mounting the root partition under a root directory; and starting the operating system on the computing device according to the file content of the mounting partition.
Optionally, in the system management method according to the present invention, the method further includes: when receiving a system upgrading notification, backing up the system files of the current root partition to the current backup partition; and updating the system file of the current root partition according to the update notification.
Optionally, in the system management method according to the present invention, the method further includes: when the user selects the restoration starting and the root partition and the backup partition exchange roles, the current backup partition is emptied, and the system file of the current root partition is backed up to the current backup partition.
Optionally, in the system management method according to the present invention, the method further includes: and in the system file backup process, the running of the shutdown process is prevented.
According to yet another aspect of the present invention, there is provided a system management apparatus adapted to reside in a computing device, the computing device comprising an operating system launcher adapted to be loaded upon device boot and a file storage system comprising a root partition and a backup partition, the apparatus comprising: the user interface unit is suitable for receiving a system starting guide item selected by a user after the operating system starter is loaded, and the system starting guide item comprises recovery starting; the parameter setting unit is suitable for setting the current backup partition as a mounting partition of the operating system starter when a user selects the recovery start, mounting the current backup partition under the root directory, and deleting the recovery start in the system start guide item; the system starting unit is suitable for starting an operating system on the computing equipment according to the file content in the mount partition, and the root partition and the backup partition exchange roles; and the system backup unit is suitable for backing up the system files of the mount partition of the system initiator to the current backup partition.
According to yet another aspect of the invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing any of the system management methods as above.
According to yet another aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform any of the system management methods described above.
According to the system management method of the present invention, by creating a root partition and a backup partition, and backing up a set of operating system files in the backup partition, the system can be started directly from the backup partition by the user selecting the recovery starting, and compared with the tar and dd commands in the background art, the user is not required to use root authority, thereby avoiding the problem that the system can not normally run due to the error operation of the user under the root authority, ensuring the reliability of the system information basic platform, maintaining the safety of the system, and does not require the user to be familiar with Linux commands, and does not require the user to select backup directories, when the system is loaded, the user does not need to select the root directory mount partition, but the selection of the mount partition is completed through the system starting guide item, a friendly interactive interface is provided for the user, even if the Linux basis of the user is 0, the backup restoration of the system can be realized by the foolproof operation.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a block diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a system management method 200 according to one embodiment of the invention;
FIG. 3 shows a flow diagram of a system management method 300 according to one embodiment of the invention;
FIG. 4 shows a flow diagram of a system management method 400 according to one embodiment of the invention;
fig. 5 shows a schematic diagram of a system management device 500 according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a schematic diagram of a computing device 100, according to one embodiment of the invention. It should be noted that the computing device 100 shown in fig. 1 is only an example, and in practice, the computing device for implementing the system management method of the present invention may be any type of device, and the hardware configuration thereof may be the same as that of the computing device 100 shown in fig. 1, or may be different from that of the computing device 100 shown in fig. 1. In practice, the computing device for implementing the system management method of the present invention may add or delete hardware components of the computing device 100 shown in fig. 1, and the present invention does not limit the specific hardware configuration of the computing device.
As shown in FIG. 1, in a basic configuration 102, a computing device 100 typically includes a system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The physical memory in the computing device is usually referred to as a volatile memory RAM, and data in the disk needs to be loaded into the physical memory to be read by the processor 104. System memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, the application 122 can be arranged to execute instructions on an operating system with program data 124 by one or more processors 104. Operating system 120 may be, for example, Linux, Unix, UOS, etc., which includes program instructions for handling basic system services and performing hardware-dependent tasks. The application 122 includes program instructions for implementing various user-desired functions, and the application 122 may be, for example, but not limited to, a browser, instant messenger, a software development tool (e.g., an integrated development environment IDE, a compiler, etc.), and the like. When the application 122 is installed into the computing device 100, a driver module may be added to the operating system 120.
When the computing device 100 is started, the processor 104 reads program instructions of the operating system 120 from the memory 106 and executes them. The application 122 runs on top of the operating system 120, utilizing the operating system 120 and interfaces provided by the underlying hardware to implement various user-desired functions. When the user starts the application 122, the application 122 is loaded into the memory 106, and the processor 104 reads the program instructions of the application 122 from the memory 106 and executes the program instructions.
The computing device 100 also includes a storage device 132, the storage device 132 including removable storage 136 and non-removable storage 138, the removable storage 136 and the non-removable storage 138 each connected to the storage interface bus 134.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In the computing device 100 according to the present invention, the operating system 120 includes instructions for performing the system management method 200/300/400 of the present invention.
FIG. 2 shows a flow diagram of a system management method 200 according to one embodiment of the invention. The method 200 is suitable for execution in a computing device, such as the computing device shown in fig. 1. Method 200 shows a schematic diagram of an operating system installation process. As shown in FIG. 2, the method 200 begins with creating a root partition and a backup partition at step S210. The root partition and the backup partition have the same file system type and hard disk space, and a configuration file is generated at the same time, wherein identifiers of the root partition and the backup partition are recorded in the configuration file, for example, an a partition and a B partition are created, wherein the a partition is marked as the root partition, and the B partition is marked as the backup partition.
Step S220 is then entered, and an operating system (e.g., Linux system) is installed in the created root partition, i.e., all system files generated during the system installation process are stored in the root partition (e.g., partition a in the above-described embodiment).
In step S230, copying the system files in the root partition to the backup partition, where kernel files are also needed to be backed up, the kernel files are in the/boot partition, a backup subdirectory is first created in the current/boot directory, and the backed-up kernel files and initrd files are stored in the backup subdirectory. In other words, the system files and kernel are backed up when the system is first successfully installed in the root partition.
While the operating system is in use, a user may upgrade and update the operating system according to an upgrade message pushed by the system, fig. 3 shows a flowchart of a system management method 300 according to an embodiment of the present invention, which is suitable for being executed in a computing device (e.g., the computing device shown in fig. 1), as shown in fig. 3, the method 300 starts with step S310, in which a system-pushed upgrade/update notification message is received when the operating system has a new version.
In this embodiment, before system upgrade, a user is asked whether to backup a current operating system, where the current operating system stores an application program and system configuration that the user needs to install and the system configuration is performed, when the user selects to backup the current operating system, step S320 is performed, in step S320, a system file in a current root partition is backed up, a current entire root partition file may be directly backed up to a current backup partition, the backup may also be completed according to a difference file between the root partition and the backup partition, a kernel file in a/boot partition is backed up at the same time, whether a backup subdirectory exists in the current/boot partition is detected, and if not, a backup subdirectory is created, the backed-up kernel file and initrd file are stored, initrd (initialization memory image) is a compressed small root directory, and the directory includes a driver module, a port, and a system configuration that are necessary in a system startup phase, The system file and the kernel can be backed up to form a backup node, and a user can back up a plurality of backup nodes corresponding to different states of the operating system.
And step S330, upgrading the system file of the current root partition, namely upgrading the system file in the current root partition according to the system upgrading notification to finish the upgrading of the operating system.
FIG. 4 illustrates a flow diagram of a method 400 of system management, the method 400 being suitable for execution in a computing device (such as the computing device shown in FIG. 1) having an operating system launcher, according to one embodiment of the present invention.
As shown in fig. 4, the method 400 starts in step S410, the operating system of the computing device is booted, and the operating system boot item is presented to the user after the operating system boot item is loaded, where the boot item includes "normal boot" and "recovery boot". When the user selects the conventional startup, step S430 is entered, and the configuration of the boot loader does not need to be modified, at this time, the kernel startup parameter of the first startup item is the UUID of the root partition, and the operating system is started directly from the current root partition.
When the user selects the restore boot entry, the process proceeds to step S440, and the backup partition is mounted to the root directory as the root partition according to the system boot entry selected by the user.
According to one embodiment of the invention, the Linux system manages data and hardware resources in a computer in the form of files, and various files are organized like a tree into a "directory tree", the root of the tree being the "root directory", and the symbol being "/". The hard disk partition is a part of the hard disk divided into a plurality of partitions, the hard disk partition is formatted with a file system and can be mounted to a directory tree, the file system is a method and a data structure used by an operating system for defining files on the partitions, namely a method for organizing the files on a storage device, the mounting is that a directory is used as an entry point (similarly, an existing directory is selected as a proxy), the partitioned file system is placed under the directory, the content of the file system can be read and written by entering the directory, and the directory of the entry point is called as a mounting point similarly that the whole file system forms a folder of the directory tree.
In this embodiment, a multi-operating system boot program (GRUB) is invoked to modify the configuration of the boot loader, the configuration file generation process of the GRUB is executed again, the kernel boot parameters of the operating system are associated with the backup partition, the previous backup partition is mounted to the root directory, and the root directory is used as a root partition boot operating system, for example: and B is a backup partition, the kernel starting parameter of the first starting item is modified into the UUID of the current backup partition B, and the system is started by taking the partition B as a root partition when being started. Meanwhile, the kernel file and initrd file in the backup directory under the/boot directory need to be copied into the/boot.
When the system is started, the boot loader reads the initrd file into the memory, and then transmits the initial address and the size of the file in the memory to the kernel. The kernel decompresses the initrd file in the process of starting initialization, mounts the decompressed initrd as a root directory, executes an initialization script in the root directory, and reads kernel startup parameters, wherein the script comprises a root parameter (namely UUID of a partition), the root parameter indicates which partition is a root partition, finds and mounts the root partition, and switches the root partition into a new root directory, and the root directory is the root directory which is finally seen after the system is started. In the above embodiment, the root parameter is the UUID of the partition B, and the partition B is used as the root partition to start.
And then, the step S450 is carried out, the system files of the current root partition are backed up to the current backup partition, and the restoration starting item in the system starting guide item is deleted. That is, files in the current root partition (the original backup partition, the partition B in the above embodiment) are backed up to the current backup partition (the original root partition, the partition a in the above embodiment), and meanwhile, currently used kernel files and initrd files are backed up to the backup subdirectory in the boot. The system files in the current root partition and the backup partition are completely the same, and so-called restore startup is not needed, so in this step, the restore startup item in the system startup boot item after the operating system launcher loads is also deleted.
According to one embodiment of the invention, a user can create a plurality of backup nodes in the whole operating system using process, and the backup nodes for system recovery are realized by adding different system starting guide items.
FIG. 5 illustrates a schematic diagram of a system management apparatus 500, the system management apparatus 500 adapted to reside in a computing device, the computing device including a root partition and a backup partition, according to one embodiment of the invention. As shown in fig. 5, the apparatus 500 includes a user interface unit 510, a parameter setting unit 520, a system start unit 530, a system installation unit 540, and a shutdown prevention unit 550.
The user interface unit 510 is adapted to receive a device boot instruction and obtain a system boot entry after the operating system launcher selected by the user is loaded, where the system boot entry includes a normal boot and a recovery boot.
The parameter setting unit 520 is adapted to obtain a mount partition of the os initiator according to a system boot entry selected by a user, set a current root partition as the mount partition of the root directory when the user selects a normal boot, set a current backup partition as the mount partition of the root directory when the user selects a restore boot, and modify the system boot entry, for example, delete the restore boot entry after completing the restore boot when the user selects the restore boot.
A system starting unit 530, adapted to start an operating system on the computing device according to the file content in the mount partition.
A system backup unit 540 adapted to create a root partition and a backup partition in the computing device, install the operating system in the root partition, and backup system files of the root partition to the backup partition; and when the user selects the restoration starting, emptying the current backup partition and backing up the system files of the current root partition to the current backup partition.
The shutdown prevention unit 550 is adapted to prevent the shutdown process from running during the system file backup process, so as to ensure the correctness of the file during the backup process.
According to the system management method of the present invention, by creating a root partition and a backup partition, and backing up a set of operating system files in the backup partition, the system can be started directly from the backup partition by the user selecting the recovery starting, and compared with the tar and dd commands in the background art, the user is not required to use root authority, thereby avoiding the problem that the system can not normally run due to the error operation of the user under the root authority, ensuring the reliability of the system information basic platform, maintaining the safety of the system, and does not require the user to be familiar with Linux commands, and does not require the user to select backup directories, when the system is loaded, the user does not need to select the root directory mount partition, but the selection of the mount partition is completed through the system starting guide item, a friendly interactive interface is provided for the user, even if the Linux basis of the user is 0, the backup restoration of the system can be realized by the foolproof operation.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the system management method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
It should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (8)

1. A system management method adapted to be executed in a computing device, the computing device including an operating system launcher adapted to be loaded upon device boot and a file storage system, the file storage system including a root partition and a backup partition, the method comprising:
receiving a system starting guide item selected by a user after the operating system starter is loaded, wherein the system starting guide item comprises restoration starting;
when a user selects restoration starting, setting the current backup partition as a mounting partition of an operating system starter, and mounting the current backup partition under a root directory;
starting an operating system on the computing device according to the file content in the mount partition, specifically including: copying a kernel file and an initrd file in a backup subdirectory in the boot to the boot, calling a GRUB configuration module to modify the configuration of a starting loader, and modifying a kernel starting parameter of a first starting item into a UUID of a backup partition so that the system is started by taking the backup partition as a root partition, wherein the root partition and the backup partition exchange roles;
backing up the system file of the mount partition of the system starter to the current backup partition, and deleting the restoration start in the system start guide item;
when a user selects restoration starting and the root partition and the backup partition exchange roles, clearing the current backup partition and backing up the system files of the current root partition to the current backup partition;
aiming at different states of an operating system, generating one or more backup nodes according to the backup of system files and kernel files;
wherein the root partition and the backup partition have the same file system type and hard disk space.
2. The method of claim 1, further comprising the step of installing an operating system in the computing device, specifically comprising:
creating a root partition and a backup partition in the file storage system;
installing an operating system in the root partition;
and backing up the system files of the root partition to the backup partition, and backing up the currently used kernel files and initrd files to a backup subdirectory in the boot.
3. The method of claim 1 or 2, wherein the system boot entry further comprises a regular boot, the method further comprising:
when a user selects conventional starting, setting the current root partition as a mounting partition of an operating system starter, and mounting the root partition under a root directory;
and starting an operating system on the computing equipment according to the file content of the mounting partition.
4. The method of claim 1 or 2, further comprising:
when receiving a system upgrading notification, backing up the system files of the current root partition to the current backup partition;
and updating the system file of the current root partition according to the upgrading notification.
5. The method of claim 1 or 2, further comprising:
and in the system file backup process, the running of the shutdown process is prevented.
6. A system management apparatus adapted to reside in a computing device, the computing device including an operating system launcher adapted to be loaded upon device boot and a file storage system including a root partition and a backup partition having a same file system type and hard disk space, comprising:
the user interface unit is suitable for receiving a system starting guide item selected by a user after the operating system starter is loaded, and the system starting guide item comprises restoration starting;
the parameter setting unit is suitable for setting the current backup partition as a mounting partition of the operating system starter when a user selects the recovery start, mounting the current backup partition under the root directory, and deleting the recovery start in the system start guide item;
the system starting unit is adapted to start an operating system on the computing device according to the file content in the mount partition, and specifically includes: copying a kernel file and an initrd file in a backup subdirectory in a boot to the boot, calling a GRUB configuration module to modify the configuration of a starting loader, modifying a kernel starting parameter of a first starting item to a UUID of a backup partition so as to facilitate the system to start from the backup partition, wherein the root partition and the backup partition exchange roles, when a user selects reduction starting and the root partition and the backup partition exchange roles, emptying the current backup partition, and backing up a system file of the current root partition to the current backup partition;
and the system backup unit is suitable for backing up the system files of the mount partition of the system initiator to the current backup partition, and generating one or more backup nodes according to the backup of the system files and the kernel files aiming at different states of the operating system.
7. A computing device, comprising:
at least one processor; and
a memory storing program instructions configured for execution by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-5.
8. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-5.
CN202110555484.6A 2021-05-21 2021-05-21 System management method and device, computing equipment and readable storage medium Active CN113032032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110555484.6A CN113032032B (en) 2021-05-21 2021-05-21 System management method and device, computing equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110555484.6A CN113032032B (en) 2021-05-21 2021-05-21 System management method and device, computing equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113032032A CN113032032A (en) 2021-06-25
CN113032032B true CN113032032B (en) 2022-03-29

Family

ID=76455740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110555484.6A Active CN113032032B (en) 2021-05-21 2021-05-21 System management method and device, computing equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113032032B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113449291B (en) * 2021-08-30 2022-01-18 统信软件技术有限公司 File import method and device, computing equipment and storage medium
CN114265628A (en) * 2021-12-22 2022-04-01 曙光信息产业股份有限公司 Deployment method, device, electronic equipment, storage medium and system of operating system
CN114089925A (en) * 2022-01-20 2022-02-25 博为科技有限公司 Double-image management method and related equipment
CN116737195A (en) * 2022-03-11 2023-09-12 荣耀终端有限公司 Upgrade method of operating system, electronic equipment and storage medium
CN117312056A (en) * 2023-11-29 2023-12-29 麒麟软件有限公司 Operating system upgrading backup method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461659A (en) * 2014-12-30 2015-03-25 浙江宇视科技有限公司 High-reliability computer starting method
CN110209525A (en) * 2018-04-24 2019-09-06 腾讯科技(深圳)有限公司 Operating system reduction method and device
CN111142911A (en) * 2019-12-27 2020-05-12 易思维(杭州)科技有限公司 Embedded system with abnormal recovery function and upgrading method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6591376B1 (en) * 2000-03-02 2003-07-08 Hewlett-Packard Development Company, L.P. Method and system for failsafe recovery and upgrade of an embedded operating system
US20090254898A1 (en) * 2008-04-08 2009-10-08 Microsoft Corporation Converting a device from one system to another
US10911065B2 (en) * 2015-10-20 2021-02-02 Sinan Karaca Computer system and method including selectively compressing data files and directories based on an operator indication and representing the amount of available free space
CN110968457A (en) * 2019-10-28 2020-04-07 湖南麒麟信安科技有限公司 Backup restoration method, system and medium for Linux operating system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461659A (en) * 2014-12-30 2015-03-25 浙江宇视科技有限公司 High-reliability computer starting method
CN110209525A (en) * 2018-04-24 2019-09-06 腾讯科技(深圳)有限公司 Operating system reduction method and device
CN111142911A (en) * 2019-12-27 2020-05-12 易思维(杭州)科技有限公司 Embedded system with abnormal recovery function and upgrading method thereof

Also Published As

Publication number Publication date
CN113032032A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113032032B (en) System management method and device, computing equipment and readable storage medium
US6363499B1 (en) Method and system for restoring a computer to its original state after an unsuccessful installation attempt
KR101143112B1 (en) Applying custom software image updates to non-volatile storage in a failsafe manner
US11169819B2 (en) Information handling system (IHS) and method to proactively restore firmware components to a computer readable storage device of an IHS
WO2013078951A1 (en) Method and system for upgrading software
KR20070034239A (en) Method and system for updating software and computer readable recording medium recording the method
WO2022111097A1 (en) File update method and apparatus, device and storage medium
CN113434205B (en) Operating system starting method and computing device
CN102184111B (en) The equipment of operating system online upgrading method and tape operation system
US7320087B2 (en) Information processing apparatus and method, program, and recording medium
CN104918114A (en) Method and device for upgrading operation system
CN104572354A (en) Backup and restoration method for operating system based on restoration service and equipment thereof
CN110780942A (en) System starting method and device, node equipment and computer readable storage medium
CN102053848A (en) Automatic installation method for Linux operating system
CN114003258A (en) Software upgrading method, computing equipment and readable storage medium
US11030047B2 (en) Information handling system and method to restore system firmware to a selected restore point
CN112416379B (en) Application program installation method and device, computing equipment and readable storage medium
CN114741096A (en) Upgrade processing method, device and storage medium
CN113032183A (en) System management method, device, computer equipment and storage medium
CN104331311A (en) Upgrade package generating method and device
CN106933604B (en) System upgrading method and device
CN116880877A (en) Virtual machine enhancement tool upgrading method and device, computer equipment and storage medium
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN115617488A (en) Operating system migration method and device, computing equipment and storage medium
WO2022222351A1 (en) Method for installing operating system, and computing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant