CN115964223A - One-key restoration method, system, terminal and storage medium based on Feiteng platform OS - Google Patents

One-key restoration method, system, terminal and storage medium based on Feiteng platform OS Download PDF

Info

Publication number
CN115964223A
CN115964223A CN202211629005.1A CN202211629005A CN115964223A CN 115964223 A CN115964223 A CN 115964223A CN 202211629005 A CN202211629005 A CN 202211629005A CN 115964223 A CN115964223 A CN 115964223A
Authority
CN
China
Prior art keywords
module
grub
computer
path
feiteng
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.)
Pending
Application number
CN202211629005.1A
Other languages
Chinese (zh)
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.)
Shenzhen JWIPC Technology Co Ltd
Original Assignee
Shenzhen JWIPC 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 Shenzhen JWIPC Technology Co Ltd filed Critical Shenzhen JWIPC Technology Co Ltd
Priority to CN202211629005.1A priority Critical patent/CN115964223A/en
Publication of CN115964223A publication Critical patent/CN115964223A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a one-key restoration method, a one-key restoration system, a one-key restoration terminal and a storage medium based on an OS (operating system) of a Feiteng platform, wherein a scheme of one-key restoration is carried out by adding a restoration button on a mainboard, and the restoration button on the mainboard is connected with an interrupt signal Pin of a Feiteng CPU (central processing unit), so that when a user presses the restoration button at the startup stage of an OPS computer, a BIOS (basic input output System) can modify grub. The method greatly improves the robustness of the OPS computer, reduces the phenomenon that the computer cannot be started due to the misoperation of restoring the OS by a user, and saves the labor cost after the manufacturer sells. The scheme can be transplanted to other domestic CPU platforms, and has low hardware cost and good stability.

Description

One-key restoration method, system, terminal and storage medium based on Feiteng platform OS
Technical Field
The invention relates to the technical field of computers, in particular to a one-key restoration method, a one-key restoration system, a one-key restoration terminal and a storage medium based on an OS (operating system) of a Feiteng platform.
Background
At present, OS reduction operation is carried out on a domestic OPS computer, and a common method is that a command line is used for reduction in an OS system or third-party software is used for reduction; however, some users do not know about the restoration command line, the OS boot configuration is easily damaged, and the operation of the users is not friendly enough; the third party restoring software has poor compatibility support to the domestic OS; some users restore the system, and the restoration failure is abnormal, so that the OPS computer cannot be started, and only a contact host manufacturer can be selected for repairing, which undoubtedly increases the operation cost of the host manufacturer, and the user experience is poor.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a one-key restore method based on the soar platform OS, aiming at the above-mentioned defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows:
constructing a one-key restoration method based on a Feiteng platform OS, wherein the method comprises the following steps:
s1: receiving an interrupt signal from a Feiteng CPU (central processing unit) in the startup phase of an OPS (optical fiber system) computer, wherein the interrupt signal is generated by triggering an interrupt signal Pin in the Feiteng CPU by an electrically connected key;
s2: after receiving an interrupt signal from a Feiteng CPU, controlling an OPS computer to enter a BIOS interface;
s3: according to the selection of a user, after entering a 'reduction' process, reading an OS system grub.
S4: cfg files are modified according to preset information, and reduction operation is achieved;
s5: and after the restoration operation is finished, sending a restart instruction to the OPS computer, and leading the OPS computer to restore and start the OS system according to the modified grub.
Preferably, the step S1 further includes presetting a grub file storage location of the OS system as a designated path, and adding the storage location to a white list boot path of the BIOS firmware.
Preferably, the method further comprises the steps of:
s31: and backing up the OS system grub.cfg files, and storing the backed-up files to the specified path.
Preferably, the step S4 further includes generating a corresponding operation log and storing the operation log to the specified path, where the operation log is used to record and restore the operation.
The invention also comprises a restoring system which comprises a signal receiving module, a control module, a reading module, a system restoring module, a path presetting module and a backup module;
the signal receiving module is used for receiving an interrupt signal from the Feiteng CPU at the startup stage of the OPS computer, wherein the interrupt signal is generated by triggering an interrupt signal Pin in the Feiteng CPU by an electrically connected key;
the control module is used for controlling the OPS computer to enter a BIOS interface after receiving an interrupt signal from the Feiteng CPU;
the reading module is used for reading the OS system grub.cfg file of the specified path after entering the 'restoration' process according to the selection of the user;
preferably, the restoring system further comprises a path presetting module, wherein the path presetting module is used for presetting a storage location of a grub file of the OS system as a specified path and adding the storage location to a white list boot path of the BIOS firmware;
preferably, the restore system further includes a backup module, and the backup module is configured to perform backup processing on the OS system grub.
Preferably, the restoration system further includes a log recording module, the log recording module is configured to generate a corresponding operation log and store the operation log to the specified path, and the operation log is configured to record and restore the operation.
The present invention also includes a terminal comprising a processor and a memory area, wherein the processor is configured to implement the steps of the one-key restore method based on the platform OS according to the embodiment when executing the computer program stored in the memory.
The invention further comprises a computer readable storage medium storing a computer program, which when executed by computer instructions, performs the steps of the above-mentioned one-key-restore method based on the soaring platform OS.
The invention has the beneficial effects that:
the invention provides a one-key restoration method, a one-key restoration system, a one-key restoration terminal and a storage medium based on an OS (operating system) of a Feiteng platform, wherein a scheme of one-key restoration is carried out by adding a restoration button on a mainboard, and the restoration button on the mainboard is connected with an interrupt signal Pin of a Feiteng CPU (central processing unit), so that when a user presses the restoration button at the startup stage of an OPS computer, a BIOS (basic input output System) can modify grub. The method greatly improves the robustness of the OPS computer, reduces the phenomenon that the computer cannot be started due to the misoperation of restoring the OS by a user, and saves the labor cost after the manufacturer sells. The scheme can be transplanted to other domestic CPU platforms, and has low hardware cost and good stability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described with reference to the accompanying drawings and embodiments, wherein the drawings in the following description are only part of the embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts based on the drawings:
fig. 1 is a flowchart of an implementation of a computer system restoration method according to an embodiment of the present invention.
Fig. 2 is a flowchart of an implementation of a computer system restoration method according to a second embodiment of the present invention.
Fig. 3 is a structure of a terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following description will be made clearly and completely in conjunction with the technical solutions in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without inventive step, are within the scope of the present invention.
The first embodiment is as follows:
as shown in fig. 1, in the one-key restore method based on the platform OS according to the first embodiment of the present invention, for convenience of description, only the parts related to the embodiment of the present invention are shown, and the method includes the following steps:
s1: receiving an interrupt signal from a Feiteng CPU (central processing unit) in the startup phase of an OPS (optical fiber switched) computer, wherein the interrupt signal is generated by triggering an interrupt signal Pin in the Feiteng CPU by an electrically connected key;
s2: after receiving an interrupt signal from a Feiteng CPU, controlling an OPS computer to enter a BIOS interface;
s3: according to the selection of a user, after entering a 'reduction' process, reading an OS system grub.cfg file of a specified path;
s4: the method includes the steps that cfg files are modified according to preset information, and reduction operation is achieved;
s5: and after the restoring operation is finished, sending a restarting instruction to the OPS computer, and guiding the OPS computer to restore and start the OS system according to the modified grub.
And in the process of booting the OS system by the BIOS firmware, booting the OS system by the BIOS firmware through a boot file grub. Wherein OS is the abbreviation of operating system, BIOS is the abbreviation of BasiciInput/OutputSystemA, meaning "basic input/output System".
The second embodiment:
as shown in fig. 2, in the one-key recovery method based on the platform OS according to the second embodiment of the present invention, for convenience of description, only the parts related to the second embodiment of the present invention are shown, and the method includes the following steps:
s1: presetting a grub file storage position of an OS system as a designated path, adding the storage position into a white list guide path of BIOS firmware, and receiving an interrupt signal from a Feiteng CPU at the startup stage of the OPS computer, wherein the interrupt signal is generated by triggering an interrupt signal Pin in the Feiteng CPU by an electrically connected key;
s2: after receiving an interrupt signal from a Feiteng CPU, controlling an OPS computer to enter a BIOS interface;
s3: according to the selection of a user, after entering a 'reduction' process, reading an OS system grub.
S31: and (4) carrying out backup processing on the grub.cfg file of the OS system, and storing the backup file to the specified path.
S4: cfg files are modified according to preset information, corresponding operation logs are generated and stored in the specified path, and the operation logs are used for recording and restoring the operation, so that restoring operation is achieved;
s5: and after the restoration operation is finished, sending a restart instruction to the OPS computer, and leading the OPS computer to restore and start the OS system according to the modified grub.
Example three:
as shown in fig. 3, a terminal 1 according to the third embodiment of the present invention includes a processor 2, a memory 3, and a computer program 31 stored in the memory 3 and capable of running on the processor 2. The processor 2 executes the computer program 31 to implement the steps in the above-mentioned embodiments of the one-key recovery method based on the soar platform OS, such as steps S1 to S5 shown in fig. 1 and steps S0 to S5 shown in fig. 2.
Example four:
in an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program 31, and the computer program is executed to execute the steps in each embodiment of the above-mentioned push-to-talk (push-to-talk) platform OS-based one-key restore method, for example, steps S1 to S5 shown in fig. 1 and steps S0 to S5 shown in fig. 2. Alternatively, the computer program realizes the functions in the terminal embodiments described above when executed by a processor.
The computer readable storage medium of the embodiments of the present invention may include any entity or device capable of carrying computer program code, a recording medium, such as a ROM/RAM, a magnetic disk, an optical disk, a flash memory, or the like.
Example five:
the restoration system provided by the fifth embodiment of the invention comprises a signal receiving module, a control module, a reading module, a system restoration module, a path presetting module and a backup module;
the signal receiving module is used for receiving an interrupt signal from the Feiteng CPU at the startup stage of the OPS computer, wherein the interrupt signal is generated by triggering an interrupt signal Pin in the Feiteng CPU by a key electrically connected with the Feiteng CPU;
the control module is used for controlling the OPS computer to enter a BIOS interface after receiving an interrupt signal from the Feiteng CPU;
the reading module is used for reading an OS system grub.cfg file of a specified path after entering a recovery flow according to the selection of a user;
the system restoration module is used for modifying the grub.cfg file according to preset information to realize restoration operation;
the restoration system further comprises a path presetting module, wherein the path presetting module is used for presetting a grub file storage position of the OS system as an appointed path and adding the storage position to a white list guide path of the BIOS firmware;
the restoring system also comprises a backup module, wherein the backup module is used for carrying out backup processing on the grub.cfg files of the OS system and storing the backup files to the specified path.
The restoration system further comprises a log recording module, wherein the log recording module is used for generating a corresponding operation log and storing the operation log to the specified path, and the operation log is used for recording and restoring the operation.
The restoring button is set on the computer mainboard with general purpose input/output terminal. The designated path points to a protected partition of the hard disk of the OPS computer. Grub is the most popular of the existing operating system boot technologies. Cfg is a program for booting an operating system, and is configured to boot a kernel according to a configuration file of the kernel, and after the kernel is loaded into a memory, the kernel finds a drive corresponding to a file system used by a root partition according to a configuration in the grub configuration file, and mounts the root partition through the drive corresponding to the file system of the root partition, thereby achieving the purpose of starting the operating system. The start-up profile grub.cfg of grub2 may make system startable for grub 2.
The invention provides a one-key restoration method, a one-key restoration system, a one-key restoration terminal and a storage medium based on an OS (operating system) of a Feiteng platform, wherein a scheme of one-key restoration is carried out by adding a restoration button on a mainboard, and the restoration button on the mainboard is connected with an interrupt signal Pin of a Feiteng CPU (central processing unit), so that when a user presses the restoration button at the startup stage of an OPS computer, a BIOS (basic input output System) can modify grub. The method greatly improves the robustness of the OPS computer, reduces the phenomenon that the computer cannot be started due to the misoperation of restoring the OS by a user, and saves the labor cost after the manufacturer sells. The scheme can be transplanted to other domestic CPU platforms, and has low hardware cost and good stability.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (10)

1. A one-key restoration method based on a Feiteng platform OS is characterized by comprising the following steps:
s1: receiving an interrupt signal from a Feiteng CPU (central processing unit) in the startup phase of an OPS (optical fiber system) computer, wherein the interrupt signal is generated by triggering an interrupt signal Pin in the Feiteng CPU by an electrically connected key;
s2: after receiving an interrupt signal from a Feiteng CPU, controlling an OPS computer to enter a BIOS interface;
s3: according to the selection of a user, after entering a 'reduction' process, reading an OS system grub.cfg file of a specified path;
s4: the method includes the steps that cfg files are modified according to preset information, and reduction operation is achieved;
s5: and after the restoration operation is finished, sending a restart instruction to the OPS computer, and leading the OPS computer to restore and start the OS system according to the modified grub.
2. The Feiteng platform OS based one-touch reduction method according to claim 1, wherein the step S1 further comprises presetting a grub file storage location of the OS system as a designated path and adding the storage location to a white list boot path of BIOS firmware.
3. The Feiteng platform OS based one-key restore method according to claim 1, further comprising the steps of:
s31: and (4) carrying out backup processing on the grub.cfg file of the OS system, and storing the backup file to the specified path.
4. The one-key recovery method based on the FT OS according to claim 1, wherein the step S4 further comprises generating a corresponding operation log and storing the operation log to a designated path, wherein the operation log is used for recording and recovering the operation.
5. A recovery system is characterized by comprising a signal receiving module, a control module, a reading module, a system recovery module, a path presetting module and a backup module;
the signal receiving module is used for receiving an interrupt signal from the Feiteng CPU at the startup stage of the OPS computer, wherein the interrupt signal is generated by triggering an interrupt signal Pin in the Feiteng CPU by an electrically connected key;
the control module is used for controlling the OPS computer to enter a BIOS interface after receiving an interrupt signal from the Feiteng CPU;
the reading module is used for reading the OS system grub.cfg file of the specified path after entering the 'restoration' process according to the selection of the user;
and the system restoring module is used for modifying the grub.cfg file according to preset information to realize restoring operation.
6. The recovery system of claim 5, further comprising a path presetting module, wherein the path presetting module is configured to preset a storage location of a grub file of the OS system as a designated path, and add the storage location to a white-list boot path of the BIOS firmware.
7. The restoring system according to claim 5, further comprising a backup module for performing backup processing on OS system grub.cfg files and storing the backup files to the specified path.
8. The recovery system according to claim 5, further comprising a log recording module, wherein the log recording module is configured to generate a corresponding operation log and store the operation log to the specified path, and the operation log is configured to record and recover the operation.
9. A terminal comprising a processor and a memory area, the processor being configured to implement the steps of the one-key-restore-to-soaring-platform-OS-based method according to any one of claims 1 to 3 when executing a computer program stored in the memory.
10. A computer-readable storage medium storing a computer program, characterized in that: the computer instructions are operable to perform the steps of the FT OS based push-to-talk reduction method according to any one of claims 1 to 3.
CN202211629005.1A 2022-12-19 2022-12-19 One-key restoration method, system, terminal and storage medium based on Feiteng platform OS Pending CN115964223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211629005.1A CN115964223A (en) 2022-12-19 2022-12-19 One-key restoration method, system, terminal and storage medium based on Feiteng platform OS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211629005.1A CN115964223A (en) 2022-12-19 2022-12-19 One-key restoration method, system, terminal and storage medium based on Feiteng platform OS

Publications (1)

Publication Number Publication Date
CN115964223A true CN115964223A (en) 2023-04-14

Family

ID=87361358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211629005.1A Pending CN115964223A (en) 2022-12-19 2022-12-19 One-key restoration method, system, terminal and storage medium based on Feiteng platform OS

Country Status (1)

Country Link
CN (1) CN115964223A (en)

Similar Documents

Publication Publication Date Title
RU2461053C2 (en) Self-controlled processing device
CN109542744B (en) Method, device, storage medium and terminal for detecting abnormal starting problem of terminal
TWI576764B (en) A computer system
CN108304282B (en) Control method of double BIOS and related device
US20080109676A1 (en) Processing device and storage medium
JPWO2002095556A1 (en) Apparatus having standby mode, program, and method of controlling apparatus having standby mode
CN108241550B (en) Backup and restoration method for operating system
JP4940599B2 (en) Information processing apparatus, information processing apparatus control program, and information processing apparatus control method
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN111488589A (en) Safe and trusted boot and firmware upgrade system and method based on hardware write protection
CN112579361B (en) Backup data reconstruction method, device, equipment and storage medium
CN113867807A (en) Method, device, equipment and storage medium for shortening power-on time of server
CN111522690B (en) Data storage device and method for maintaining normal start-up operation of data storage device
CN115964223A (en) One-key restoration method, system, terminal and storage medium based on Feiteng platform OS
CN117130672A (en) Server start flow control method, system, terminal and storage medium
CN102256275A (en) Method and mobile communication terminal for power failure protection in factory resetting process
WO2013097095A1 (en) Method for backing up startup information about storage device
CN106569912B (en) Method and system for restoring factory settings of mobile terminal
CN111078303B (en) Method and device for optimizing UEFI (unified extensible firmware interface) boot startup
CN113849235A (en) Control method and device and electronic equipment
US20160004607A1 (en) Information processing apparatus and information processing method
CN104516791A (en) Data processing method and device and electronic device
CN116028128B (en) Disk partition storage method, operating system automatic recovery method and storage medium
CN111400076B (en) Downtime restoration method, device, equipment and storage medium
CN115562803A (en) Automatic recovery method, device, equipment and storage medium for mirror image file

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