CN112835596B - Method, system, device and storage medium for installing general operating system - Google Patents

Method, system, device and storage medium for installing general operating system Download PDF

Info

Publication number
CN112835596B
CN112835596B CN202110149612.7A CN202110149612A CN112835596B CN 112835596 B CN112835596 B CN 112835596B CN 202110149612 A CN202110149612 A CN 202110149612A CN 112835596 B CN112835596 B CN 112835596B
Authority
CN
China
Prior art keywords
platform architecture
acquiring
installation
installation mode
table information
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
CN202110149612.7A
Other languages
Chinese (zh)
Other versions
CN112835596A (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.)
Guangdong Zhongxing Newstart Technology Co ltd
Original Assignee
Guangdong Zhongxing Newstart 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 Guangdong Zhongxing Newstart Technology Co ltd filed Critical Guangdong Zhongxing Newstart Technology Co ltd
Priority to CN202110149612.7A priority Critical patent/CN112835596B/en
Publication of CN112835596A publication Critical patent/CN112835596A/en
Application granted granted Critical
Publication of CN112835596B publication Critical patent/CN112835596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method, a system, a device and a storage medium for installing a general operating system, wherein the method comprises the following steps: acquiring basic information of computer equipment and partition table information of storage equipment; the storage equipment is pre-stored with a plurality of file sets of platform architecture and a plurality of software sets of installation modes; determining a platform architecture of the computer equipment according to the basic information, and acquiring a file set of the platform architecture from the storage equipment according to the platform architecture and partition table information; starting system installation according to the file set of the platform architecture; and acquiring an installation mode instruction, and acquiring a software set of the installation mode from the storage device according to the installation mode instruction and partition table information. The embodiment of the application can automatically install the platform architecture of different computer equipment and meet the installation mode of multiple terminals, has good portability, simple operation and high efficiency, and can be widely applied to the technical field of computers.

Description

Method, system, device and storage medium for installing general operating system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, an apparatus, and a storage medium for installing a general operating system.
Background
The installation of the linux system with an open source requires loading a kernel file and a virtual root file system, loading an actual file system after initialization, starting an installation program and a graphic interface, configuring basic information such as language, time zone, network, selecting a software set to be installed, creating a new user and the like according to the guiding configuration of the interface, and then installing, restarting and entering the system.
In the existing linux desktop graphic system, only a single-mode or multi-mode installation scheme with a single architecture is provided, if a user wants to install systems with other architectures or other modes, the user needs to search and download the installation image files with the designated architectures and versions again and then install the installation image files, and the operation process is complex and low in efficiency.
Disclosure of Invention
In view of the above, an object of the embodiments of the present application is to provide a method, a system, a device and a storage medium for installing a general operating system, where the method can automatically install platform architectures of different computer devices and satisfy an installation mode of multiple terminals, and has good portability, simple operation and high efficiency.
In a first aspect, an embodiment of the present application provides a method for installing a general operating system, including the following steps:
acquiring basic information of computer equipment and partition table information of storage equipment; the storage equipment is pre-stored with a plurality of file sets of platform architecture and a plurality of software sets of installation modes;
determining a platform architecture of the computer equipment according to the basic information, and acquiring a file set of the platform architecture from the storage equipment according to the platform architecture and the partition table information;
starting system installation according to the file set of the platform architecture;
and acquiring an installation mode instruction, and acquiring a software set of the installation mode from the storage device according to the installation mode instruction and the partition table information.
Optionally, the acquiring basic information of the computer device includes:
and running a Bios system, and detecting and recording basic information of the computer equipment.
Optionally, the obtaining the file set of the platform architecture from the storage device according to the platform architecture and the partition table information includes:
determining a file set identifier of the platform architecture;
determining the storage position of the file set according to the file set identifier and the partition table information;
and acquiring the file set of the platform architecture according to the storage position of the file set.
Optionally, the acquiring the software set of the installation mode from the storage device according to the installation mode instruction and the partition table information includes:
determining a software set identifier of the installation mode instruction;
determining a storage position of the software set according to the software set identifier and the partition table information;
and acquiring the software set of the installation mode instruction according to the storage position of the software set.
Optionally, the mounting method further comprises:
starting a system installation interface;
and acquiring an installation mode instruction from the system installation interface.
Optionally, the mounting method further comprises:
obtaining a disk partition instruction;
and setting a system partition and a data partition according to the disk partition instruction.
In a second aspect, an embodiment of the present application provides a system for installing a general operating system, including:
the first acquisition module is used for acquiring basic information of the computer equipment and partition table information of the storage equipment; the storage equipment is pre-stored with a plurality of file sets of platform architecture and a plurality of software sets of installation modes;
the second acquisition module is used for determining a platform architecture of the computer equipment according to the basic information and acquiring a file set of the platform architecture from the storage equipment according to the platform architecture and the partition table information;
the starting installation module is used for starting system installation according to the file set of the platform architecture;
and the third acquisition module is used for acquiring an installation mode instruction and acquiring a software set of the installation mode from the storage device according to the installation mode instruction and the partition table information.
In a third aspect, an embodiment of the present application provides an installation apparatus for a general operating system, including:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the method for installing a general-purpose operating system described above.
In a fourth aspect, an embodiment of the present application provides a storage medium in which a processor-executable program is stored, which when executed by a processor is configured to perform the method of installing a general-purpose operating system as described above.
The embodiment of the application has the following beneficial effects: according to the embodiment of the application, the platform architecture of the computer equipment is determined according to the basic information of the computer equipment, and the file set of the platform architecture is obtained from the storage equipment according to the platform architecture and the partition table information, so that the platform architecture corresponding to the computer equipment can be automatically distinguished and installed; acquiring a software set of an installation mode from the storage device according to the acquired installation mode instruction and partition table information, thereby meeting the requirement of a multi-terminal installation mode; the installation method has good portability, simple operation and high efficiency.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for installing a general operating system according to an embodiment of the present application;
FIG. 2 is a block diagram of a general operating system installation system according to an embodiment of the present application;
fig. 3 is a block diagram of a general operating system installation device according to an embodiment of the present application.
Detailed Description
The application will now be described in further detail with reference to the drawings and to specific examples. The step numbers in the following embodiments are set for convenience of illustration only, and the order between the steps is not limited in any way, and the execution order of the steps in the embodiments may be adaptively adjusted according to the understanding of those skilled in the art.
As shown in fig. 1, an embodiment of the present application provides a method for installing a general operating system, which includes the following steps.
S100, acquiring basic information of computer equipment and partition table information of storage equipment; the storage equipment is pre-stored with a plurality of file sets of platform architecture and a plurality of software sets of installation modes;
s200, determining a platform architecture of the computer equipment according to the basic information, and acquiring a file set of the platform architecture from the storage equipment according to the platform architecture and the partition table information;
s300, starting system installation according to the file set of the platform architecture;
s400, acquiring an installation mode instruction, and acquiring a software set of the installation mode from the storage device according to the installation mode instruction and the partition table information.
It should be noted that, the computer device includes a notebook, a desktop, an all-in-one machine, a tablet device, a server, and the like, and the computer device generally refers to an electronic device of a system to be installed. The basic information of the computer equipment comprises information of devices such as a CPU, a system main board, a basic memory, an extended memory, interface information, a system ROM (read only memory) Bios and the like.
Those skilled in the art will appreciate that storage devices include storable devices such as compact discs, U discs, and removable hard discs. The storage device stores control program software, various plug-ins, file sets of a plurality of platform architectures, software sets of a plurality of installation modes, partition table information of storage positions and the like, wherein the plug-ins comprise Bios, xorg, bootloder and grub bootstrap programs and the like.
It should be noted that the current platform architecture includes X86, arm, loongson, and the like.
Those skilled in the art will appreciate that the installation modes include desktop mode, tablet mode, and server mode; the desktop mode mainly faces to daily office computers, such as notebooks, desktops, all-in-one machines and the like; tablet mode is primarily flat-panel device oriented; the server mode is mainly machine room server equipment oriented. Different software sets corresponding to different installation modes are different, and different software set templates are identified according to a pre-configured configuration file.
Optionally, the acquiring basic information of the computer device includes:
and S111, running a Bios system, and detecting and recording basic information of the computer equipment.
Specifically, the Bios (Basic Input/Output System) is stored on a ROM chip of the motherboard, and when the computer device is started, the System is first read, then a power-on self-test process is performed, the CPU and the memory are checked in this process, and the most Basic constituent units of the computer, such as a controller, an arithmetic unit, and a memory, are checked, and other hardware is checked, and if there is no abnormality, loading of the Bios program into the memory is started.
Optionally, the obtaining the file set of the platform architecture from the storage device according to the platform architecture and partition table information includes:
s211, determining a file set identifier of the platform architecture;
s212, determining the storage position of the file set according to the file set identification and the partition table information;
s213, acquiring the file set of the platform architecture according to the storage position of the file set.
Optionally, the acquiring the software set of the installation mode from the storage device according to the installation mode instruction and partition table information includes:
s411, determining a software set identifier of the installation mode instruction;
s412, determining the storage position of the software set according to the software set identification and the partition table information;
s413, acquiring the software set of the installation mode instruction according to the storage position of the software set.
Optionally, the mounting method further comprises:
s401, starting a system installation interface;
s402, acquiring an installation mode instruction from a system installation interface.
Specifically, the installation interface can be started and displayed through the open source of the Xorg window system.
The implementation process of the installation method is as follows: firstly, connecting a storage device pre-stored with a file set of a plurality of platform architectures and a software set of a plurality of installation modes to computer equipment of a system to be installed, detecting whether the computer equipment has problems or not through basic information by operating a Bios system after the computer equipment is started, and reading partition table information; if no problem exists, the system is installed; starting a bootloader bootstrap program, determining the platform architecture of the current computer equipment according to the acquired basic information, such as interface information, of the computer equipment, and simultaneously accessing a partition table and positioning the position of a bootstrap file of an operating system of the platform architecture; then, a grub bootstrap program corresponding to the current platform architecture is started through a bootloader program to boot an operating system, and the grub bootstrap program can specially treat the coexistence problem of Linux and other operating systems and start an installation interface; displaying a selection item of an installation mode to a user through an installation interface, and acquiring the installation mode selected by the user; and acquiring the software set of the installation mode from the storage device according to the acquired installation mode and partition table information. Then, a disk partition of the installation system and a disk partition for storing user data are created according to the disk partition instruction, a new user is created, installation is started, and the system is restarted after the installation is completed.
It should be noted that the boot file mainly includes initrd. Img, vmlinuz, ioslinux. Bin, isolinux. Cfg, efiboost. Img, efidsk. Img, grub. Conf, packages, and repodate; wherein, initrd.img: virtual root, when the temporary root installs the system, the file is unfolded and put in the memory as the root, and vmlinuz is loaded under the root to finish the system creation; vmlinuz: the kernel is necessary to realize automatic system loading, the kernel in the system is stored under the boot, and kernel files are also needed when the system is started and installed, and the kernel used at the moment is vmlinuz; ioslinux.bin: starting a program for installing an operating system; isolinux.cfg: configuration file of isolinux. efiboost. Img: for supporting EFI (Extensible Firmware Interface) boot files for use by the boot system; efigisk. Img: disk files for supporting the EFI boot system; grub.conf: the configuration file is different from the configuration file in the system; packages: installing a software package required by a system; repodate: and (5) automatically analyzing the dependency relationship by the local warehouse source data.
The embodiment of the application has the following beneficial effects: according to the embodiment of the application, the platform architecture of the computer equipment is determined according to the basic information of the computer equipment, and the file set of the platform architecture is obtained from the storage equipment according to the platform architecture and the partition table information, so that the platform architecture corresponding to the computer equipment can be automatically distinguished and installed; acquiring a software set of an installation mode from the storage device according to the acquired installation mode instruction and partition table information, thereby meeting the requirement of a multi-terminal installation mode; the installation method has good portability, simple operation and high efficiency.
Optionally, the mounting method further comprises:
obtaining a disk partition instruction;
and setting a system partition and a data partition according to the disk partition instruction.
Specifically, the system partition disk is an installation position of the system, the data partition disk is mainly used for storing data of users, and the system partition and the data partition enable the data to be easy to find, not to be confused and not to be lost, so that safety and integrity of the user data are protected.
As shown in fig. 2, an embodiment of the present application provides a system for installing a general operating system, including:
the first acquisition module is used for acquiring basic information of the computer equipment and partition table information of the storage equipment; the storage equipment is pre-stored with a plurality of file sets of platform architecture and a plurality of software sets of installation modes;
the second acquisition module is used for determining a platform architecture of the computer equipment according to the basic information and acquiring a file set of the platform architecture from the storage equipment according to the platform architecture and partition table information;
the starting installation module is used for starting system installation according to the file set of the platform architecture;
and the third acquisition module is used for acquiring an installation mode instruction and acquiring a software set of the installation mode from the storage device according to the installation mode instruction and the partition table information.
It can be seen that the content in the above method embodiment is applicable to the system embodiment, and the functions specifically implemented by the system embodiment are the same as those of the method embodiment, and the beneficial effects achieved by the method embodiment are the same as those achieved by the method embodiment.
As shown in fig. 3, an embodiment of the present application provides an installation apparatus of a general operating system, including:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the method for installing a general-purpose operating system described above.
It can be seen that the content in the above method embodiment is applicable to the embodiment of the present device, and the functions specifically implemented by the embodiment of the present device are the same as those of the embodiment of the above method, and the beneficial effects achieved by the embodiment of the above method are the same as those achieved by the embodiment of the above method.
Furthermore, the embodiment of the application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer readable storage medium. The processor of the computer device may read the computer program from the computer-readable storage medium, and execute the computer program, so that the computer device performs the above-described installation method of the general-purpose operating system. Similarly, the content in the above method embodiment is applicable to the present storage medium embodiment, and the specific functions of the present storage medium embodiment are the same as those of the above method embodiment, and the achieved beneficial effects are the same as those of the above method embodiment.
While the preferred embodiment of the present application has been described in detail, the application is not limited to the embodiment, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the application, and these equivalent modifications and substitutions are intended to be included in the scope of the present application as defined in the appended claims.

Claims (9)

1. A method for installing a general operating system, comprising the steps of:
acquiring basic information of computer equipment and partition table information of storage equipment; the storage device is pre-stored with a file set of a platform architecture and a software set of an installation mode, wherein the platform architecture is provided with a plurality of the installation modes;
determining a platform architecture of the computer equipment according to the basic information, and acquiring a file set of the platform architecture from the storage equipment according to the platform architecture and the partition table information;
starting system installation according to the file set of the platform architecture;
and acquiring an installation mode instruction, and acquiring a software set of the installation mode from the storage device according to the installation mode instruction and the partition table information.
2. The method for installing a general-purpose operating system according to claim 1, wherein the acquiring basic information of the computer device comprises:
and running a Bios system, and detecting and recording basic information of the computer equipment.
3. The method for installing a general-purpose operating system according to claim 1, wherein the obtaining the file set of the platform architecture from the storage device according to the platform architecture and the partition table information includes:
determining a file set identifier of the platform architecture;
determining the storage position of the file set according to the file set identifier and the partition table information;
and acquiring the file set of the platform architecture according to the storage position of the file set.
4. The method for installing a general-purpose operating system according to claim 1, wherein the acquiring the software set of the installation mode from the storage device according to the installation mode instruction and the partition table information includes:
determining a software set identifier of the installation mode instruction;
determining a storage position of the software set according to the software set identifier and the partition table information;
and acquiring the software set of the installation mode instruction according to the storage position of the software set.
5. The method of installing a common operating system according to any one of claims 1 to 4, further comprising:
starting a system installation interface;
and acquiring an installation mode instruction from the system installation interface.
6. The method of installing a common operating system according to any one of claims 1 to 4, further comprising:
obtaining a disk partition instruction;
and setting a system partition and a data partition according to the disk partition instruction.
7. A system for installing a general purpose operating system, comprising:
the first acquisition module is used for acquiring basic information of the computer equipment and partition table information of the storage equipment; the storage device is pre-stored with a file set of a platform architecture and a software set of an installation mode, wherein the platform architecture is provided with a plurality of the installation modes;
the second acquisition module is used for determining a platform architecture of the computer equipment according to the basic information and acquiring a file set of the platform architecture from the storage equipment according to the platform architecture and the partition table information;
the starting installation module is used for starting system installation according to the file set of the platform architecture;
and the third acquisition module is used for acquiring an installation mode instruction and acquiring a software set of the installation mode from the storage device according to the installation mode instruction and the partition table information.
8. A mounting device for a general-purpose operating system, comprising:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the method of installing a general-purpose operating system as claimed in any one of claims 1 to 6.
9. A storage medium having stored therein a processor-executable program which, when executed by a processor, is for performing the method of installing a general purpose operating system as claimed in any one of claims 1 to 6.
CN202110149612.7A 2021-02-03 2021-02-03 Method, system, device and storage medium for installing general operating system Active CN112835596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110149612.7A CN112835596B (en) 2021-02-03 2021-02-03 Method, system, device and storage medium for installing general operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110149612.7A CN112835596B (en) 2021-02-03 2021-02-03 Method, system, device and storage medium for installing general operating system

Publications (2)

Publication Number Publication Date
CN112835596A CN112835596A (en) 2021-05-25
CN112835596B true CN112835596B (en) 2023-11-14

Family

ID=75931930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110149612.7A Active CN112835596B (en) 2021-02-03 2021-02-03 Method, system, device and storage medium for installing general operating system

Country Status (1)

Country Link
CN (1) CN112835596B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148841A (en) * 2010-02-05 2011-08-10 中国长城计算机深圳股份有限公司 Method for remotely monitoring multiple operating systems
CN102567051A (en) * 2011-12-14 2012-07-11 中标软件有限公司 Method and device for preparing graphical installation system of Loongson platform
CN105204876A (en) * 2014-06-12 2015-12-30 联想(北京)有限公司 System starting method and electronic equipment
CN110045966A (en) * 2019-04-01 2019-07-23 龙芯中科(合肥)技术有限公司 Processing method, device and the equipment of erector

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993642B2 (en) * 2001-07-24 2006-01-31 Microsoft Corporation Method and system for creating and employing an operating system having selected functionality
US6901534B2 (en) * 2002-01-15 2005-05-31 Intel Corporation Configuration proxy service for the extended firmware interface environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148841A (en) * 2010-02-05 2011-08-10 中国长城计算机深圳股份有限公司 Method for remotely monitoring multiple operating systems
CN102567051A (en) * 2011-12-14 2012-07-11 中标软件有限公司 Method and device for preparing graphical installation system of Loongson platform
CN105204876A (en) * 2014-06-12 2015-12-30 联想(北京)有限公司 System starting method and electronic equipment
CN110045966A (en) * 2019-04-01 2019-07-23 龙芯中科(合肥)技术有限公司 Processing method, device and the equipment of erector

Also Published As

Publication number Publication date
CN112835596A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US10613773B2 (en) Backing up firmware during initialization of device
US7103641B2 (en) Method and apparatus for distributing computer platform firmware across a network
US8533304B2 (en) Remotely deploying and automatically customizing workstation images
US9372754B2 (en) Restoring from a legacy OS environment to a UEFI pre-boot environment
US6725178B2 (en) Use of hidden partitions in a storage device for storing BIOS extension files
US5586327A (en) Extended initialization for personal data processing systems
US20040230963A1 (en) Method for updating firmware in an operating system agnostic manner
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
US6944867B2 (en) Method for providing a single preloaded software image with an ability to support multiple hardware configurations and multiple types of computer systems
US20030110369A1 (en) Firmware extensions
US7873960B2 (en) Generic packaging tool for packaging application and component therefor to be installed on computing device
JPH08249191A (en) Method and equipment for boot
CN113835644B (en) Complete machine migration method, device, equipment and storage medium
US6829705B2 (en) System information display method and apparatus
US6961848B2 (en) System and method for supporting legacy operating system booting in a legacy-free system
CN112527328A (en) System cloning method, device, electronic equipment and computer readable storage medium
KR100678974B1 (en) Apparatus and method for security and user comfortability in rebooting computer system
US20120144390A1 (en) Customized computer image preparation and deployment including virtual machine mode
US20070214345A1 (en) System and method for porting an operating system
US20040243385A1 (en) Emulation of hardware devices in a pre-boot environment
CN112835596B (en) Method, system, device and storage medium for installing general operating system
US6971003B1 (en) Method and apparatus for minimizing option ROM BIOS code
WO2008048581A1 (en) A processing device operation initialization system
US7103767B2 (en) Method and apparatus to support legacy master boot record (MBR) partitions
CN112395017A (en) UEFI starting method, UEFI and computer

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