CN102053848A - Automatic installation method for Linux operating system - Google Patents

Automatic installation method for Linux operating system Download PDF

Info

Publication number
CN102053848A
CN102053848A CN200910220815XA CN200910220815A CN102053848A CN 102053848 A CN102053848 A CN 102053848A CN 200910220815X A CN200910220815X A CN 200910220815XA CN 200910220815 A CN200910220815 A CN 200910220815A CN 102053848 A CN102053848 A CN 102053848A
Authority
CN
China
Prior art keywords
linux
suse
automatic installation
file
startup 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.)
Pending
Application number
CN200910220815XA
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200910220815XA priority Critical patent/CN102053848A/en
Publication of CN102053848A publication Critical patent/CN102053848A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

An automatic installation method for a Linux operating system is characterized in that a new operating system is created in a first Linux operating system in a memory. The automatic installation method comprises the steps as follows: uncompressing a first start-up file and mapping the file to be a file system in the memory; collecting peripheral information in the first Linux operating system and packing the information into an installation script; receiving installation requirements of the operating system, selecting a second Linux operating system from an installation source and extracting an inner core and a second start-up file from the second Linux operating system; adding the automatic installation script to the second start-up file after uncompressing the second start-up file so as to generate a third start-up file; invoking an inner core executive program of the first Linux operating system and operating a second inner core and the third start-up file; and installing the second Linux operating system in a target hard disk automatically through the automatic installation script of the third start-up file.

Description

The automatic installation method of (SuSE) Linux OS
Technical field
The present invention relates to a kind of installation method, particularly a kind of automatic installation method of (SuSE) Linux OS.
Background technology
Along with computing machine becomes faster and better, the time of restarting of operating system also needs to catch up with development.Along with processor speed, memory capacity and the resource performance of computing machine becomes advanced and complicated more, make the time of restarting but elongate.The influence of the long time of restarting for part manufacturer is vital, because the longer time of restarting means the minimizing of uptime, can cause the progress of producing line to fall behind thus.And the longer time of restarting is a main bottleneck to kernel and systemic software development person.Because they will repeatedly restart their machine every day.For instance, when computing machine connected many SCSI bus devices or ECC memory body, it was longer to make that time of restarting of computing machine draws.
Except long reboot time, the more important thing is since in starting up's the process Basic Input or Output System (BIOS) of computing machine (Basic Input/Output System BIOS) can start from default opening device.Owing to be to utilize non-hand disk devices such as CD or USB flash disk when last time installing as default opening device.
So when computing machine is restarted, do not start shooting if do not revise the default opening device of Basic Input or Output System (BIOS).So, computing machine can re-execute the installation procedure of single job system again.The system of installing before the result can cause being capped again.Therefore for avoiding the problems referred to above, so need to propose a kind of method that can conveniently install and not need to start shooting again.
Summary of the invention
In view of above problem, fundamental purpose of the present invention is to provide a kind of automatic installation method of (SuSE) Linux OS, in (SuSE) Linux OS originally, create another operating system, and the user need not restarted under the situation of original operating system, with new operating system.
The automatic installation method of the (SuSE) Linux OS that the present invention disclosed comprises the following steps:
In memory body, start first kernel (kernel) of first (SuSE) Linux OS;
First startup file (initr.gz) that decompresses makes it become file system in memory body;
Receive the operating system installation requirement, in order to from an installation source, to select second (SuSE) Linux OS;
Collect many peripheral informations, those peripheral informations, startup file are packaged as automatic installation script;
Second kernel and second startup file of second (SuSE) Linux OS are copied in the file system;
After the decompression of second startup file, automatic installation script is added in second startup file, produce the 3rd startup file;
Call a kernel executive routine (kexec), load the kernel and the 3rd startup file of second (SuSE) Linux OS, in order to operation second kernel and the 3rd startup file in memory body; And
Move the 3rd startup file by second kernel, in order to target hard disk is installed second (SuSE) Linux OS.
Effect of the present invention is, can move first (SuSE) Linux OS in memory body, and passes through the peripheral information of this systematic collection computing machine.Kernel, startup file and peripheral information by first (SuSE) Linux OS is packaged as automatic installation script again.The one Liunx operating system can be called the kernel executive routine, automatic installation script is added in the kernel of second (SuSE) Linux OS, and makes the kernel of second (SuSE) Linux OS be moved.
Thus, computing machine does not need to start shooting again again, therefore can avoid basic input/output to select for use in the process of restarting and not have second (SuSE) Linux OS storage facilities in addition.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is a configuration diagram of the present invention;
Fig. 2 is operation workflow figure of the present invention;
Fig. 3 A is the step configuration diagram of Fig. 2 of the present invention;
Fig. 3 B is the step configuration diagram of Fig. 2 of the present invention;
Fig. 3 C is the step configuration diagram of Fig. 2 of the present invention;
Fig. 3 D is the step configuration diagram of Fig. 2 of the present invention;
Fig. 3 E is the step configuration diagram of Fig. 2 of the present invention;
Fig. 3 F is the step configuration diagram of Fig. 2 of the present invention.
Wherein, Reference numeral
100 local sides
110 first (SuSE) Linux OS
111 first kernels
112 kernel executive routines
113 first startup files
210 second (SuSE) Linux OS
211 second kernels
213 second startup files
310 virtual disks
313 the 3rd startup files
320 automatic installation scripts
Embodiment
Below in conjunction with accompanying drawing structural principle of the present invention and principle of work are done concrete description:
Please refer to shown in Figure 1ly, it is a configuration diagram of the present invention.In this enforcement aspect of the present invention is the computer installation (hereinafter to be referred as local side 100) that comprises local side 100.When local side 100 starts, can be by opening beginning execution environment module (Pre-boot execution environment is called for short PXE) in advance or having the CD loading Linux operating system that Linux starts shooting.For instance, if by the network startup computing machine, local side 100 can obtain (SuSE) Linux OS to remote server by PXE.
At this original (SuSE) Linux OS is defined as first (SuSE) Linux OS 110, and new (SuSE) Linux OS is defined as second (SuSE) Linux OS (label is not in Fig. 1).In local side 100, have first kernel 111 (Kernel), kernel executive routine 112 and first startup file 113 in operation first (SuSE) Linux OS 110, the first (SuSE) Linux OS 110.Local side 100 is a step of carrying out following another operating system of establishment under first (SuSE) Linux OS, 110 environment of operation.Please refer to shown in Figure 2ly, it is operation workflow figure of the present invention.The present invention includes following step:
Step S210: first kernel (kernel) that in memory body, starts first (SuSE) Linux OS;
Step S220: first startup file (initr.gz) that decompresses makes it become file system in memory body;
Step S230: receive the operating system installation requirement, in order to from an installation source, to select second (SuSE) Linux OS;
Step S240: collect many peripheral informations, those peripheral informations, second startup file are packaged as automatic installation script;
Step S250: second kernel and second startup file of second (SuSE) Linux OS are copied in the file system;
Step S260: after the decompression of second startup file, automatic installation script is added in second startup file, produce the 3rd startup file;
Step S270: call a kernel executive routine, load the kernel and the 3rd startup file of second (SuSE) Linux OS, in order to operation second kernel and the 3rd startup file in memory body; And
Step S280: move the 3rd startup file by second kernel, in order to target hard disk is installed second (SuSE) Linux OS.
Please cooperate with reference to figure 3A~Fig. 3 F, it is for cooperating the step configuration diagram of Fig. 2.In memory body, create a virtual disk 310 (ramdisk).The capacity of virtual disk 310 is that capacity and its driver of foundation first (SuSE) Linux OS 110 determines.First (SuSE) Linux OS 110 is started in virtual disk 310, and load first startup file 113 of first (SuSE) Linux OS 110.Then, 111 pairs first startup files 113 of first kernel by first (SuSE) Linux OS 110 decompress, and are mapped to file system in memory body.From file system, capture the initial processes (init process) of first (SuSE) Linux OS 110 again.Original document can be loaded in the memory body by starting guide (boot loader), and this file is decompressed in the middle of the memory body.
The menu of a plurality of operating systems then, is provided in X Window under first (SuSE) Linux OS 110 (X Window) or the instruction picture (command mode).The user can select the (SuSE) Linux OS of other version of desire installation from menu.These operating systems can be unified leaves (for example, CD, hard disk or remote server) in the same installation source in.Be that selected operating system was defined as second (SuSE) Linux OS during operating system installation was required in this manual.For instance, when first (SuSE) Linux OS 110 was Red Hat Linux 5.4 editions, the user can choose Red Hat Linux 5.3 editions in addition and be used as second (SuSE) Linux OS 210.
After obtaining the operating system installation requirement, except second (SuSE) Linux OS 210 was selected in meeting from the installation source, local side 100 also can obtain the peripheral information of the peripheral device of local side 100 one by one.And those peripheral informations, second startup file 213 be packaged as automatic installation script 320.Wherein, these peripheral devices can be universal serial bus (Universal Serial Bus, USB), redundant array of inexpensive disk (Redundant Array of Independent Disks, RAID), minicomputer interface (Small Computer Small Interface, SCSI), serial hi-tech configuration information (Serial Advanced Technology Attachment) information or integrating apparatus environment (Integrated Device Electronics, IDE).Subsequently, meeting of the present invention writes setup parameters such as destination that second (SuSE) Linux OS 210 is installed and installation environment in second startup file 213.
Second kernel 211 of second (SuSE) Linux OS 210 and second startup file 213 are copied in the file system in the memory body.And decompress by 111 pairs second startup files 213 of first kernel.After second startup file 213 decompresses, automatic installation script 320 is added in second startup file 213 with peripheral information, and be packaged as the 3rd startup file 313 again.
Call a kernel executive routine by first kernel 111, the kernel and the 3rd startup file 313 of second (SuSE) Linux OS 210 is loaded in the file system.Kernel executive routine 112 is functional parts that can be used for Linux first kernel 111 on the x86 platform.Kernel executive routine 112 can directly call another operating system nucleus in the operating system of current operation.
At last, operation second kernel 211 and the 3rd startup file 313 in file system.In other words, second kernel 211 can be loaded in the memory body and move.Second kernel, 211 meeting decompressions this moment the 3rd startup file 313, the file system that the (SuSE) Linux OS 110 of winning is produced can be replaced by the file system that second (SuSE) Linux OS 210 is produced.Therefore, new file system can be moved the 3rd startup file 313, and according to automatic installation script 320 second (SuSE) Linux OS 210 is mounted in the target hard disk.The present invention can set up another operating system under the environment of first (SuSE) Linux OS 110, and the relevant peripheral information (meaning is automatic installation script 320 and the 3rd startup file 313) of first (SuSE) Linux OS 110 is loaded in the kernel of operating system of new establishment and operates.Thus, must be by the firmware and the Boot loader stage of current operation system, therefore can skip part the longest in the initiating sequence, and then reduce the time of restarting of operating system and avoid basic input/output in the process of restarting, to select for use the storage facilities that does not have beyond second (SuSE) Linux OS 210.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (4)

1. the automatic installation method of a (SuSE) Linux OS starts one first (SuSE) Linux OS in memory body, and creates one second (SuSE) Linux OS again by this first (SuSE) Linux OS, it is characterized in that this automatic installation method comprises the following steps:
In a memory body, start one first kernel of this first (SuSE) Linux OS;
One first startup file that decompresses makes it become a file system in this memory body;
Receive an operating system installation requirement, in order to from an installation source, to select this second (SuSE) Linux OS;
Collect many peripheral informations, those peripheral informations, startup file are packaged as an automatic installation script;
One second kernel and one second startup file of this second (SuSE) Linux OS are copied in this document system;
After this second startup file decompression, this automatic installation script is added in this second startup file, produce one the 3rd startup file;
Call a kernel executive routine and load this second kernel and the 3rd startup file, in order to this second kernel of operation and the 3rd startup file in this memory body; And
Move the 3rd startup file by this second kernel, in order to this second (SuSE) Linux OS to be installed in a target hard disk.
2. the automatic installation method of (SuSE) Linux OS according to claim 1 is characterized in that, comprises before being packaged as the step of this automatic installation script:
In this memory body, set a virtual disk; And
This first (SuSE) Linux OS of operation in this virtual disk.
3. the automatic installation method of (SuSE) Linux OS according to claim 1 is characterized in that, is packaged as in the step of this automatic installation script also to comprise:
Those peripheral informations and this automatic installation script are write in this first startup file; And
This first startup file after writing is packaged as this automatic installation script.
4. the automatic installation method of (SuSE) Linux OS according to claim 1 is characterized in that, this peripheral information is serial hi-tech configuration information, integrating apparatus environmental information or universal serial bus information.
CN200910220815XA 2009-11-06 2009-11-06 Automatic installation method for Linux operating system Pending CN102053848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910220815XA CN102053848A (en) 2009-11-06 2009-11-06 Automatic installation method for Linux operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910220815XA CN102053848A (en) 2009-11-06 2009-11-06 Automatic installation method for Linux operating system

Publications (1)

Publication Number Publication Date
CN102053848A true CN102053848A (en) 2011-05-11

Family

ID=43958204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910220815XA Pending CN102053848A (en) 2009-11-06 2009-11-06 Automatic installation method for Linux operating system

Country Status (1)

Country Link
CN (1) CN102053848A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297504A (en) * 2013-05-09 2013-09-11 浙江大学 Method for quickly deploying operating systems in physical bare computers in cloud data center
CN104391715A (en) * 2014-11-11 2015-03-04 北京锐安科技有限公司 Linux-system-based application program installation method and device
CN104461645A (en) * 2014-12-17 2015-03-25 北京极科极客科技有限公司 Kexec based firmware updating method and kexec based firmware updating device
CN107391197A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The installation method and device of a kind of (SuSE) Linux OS
CN107544780A (en) * 2016-06-23 2018-01-05 北京忆恒创源科技有限公司 The installation method and erecting device of a kind of operating system
CN107608681A (en) * 2017-09-14 2018-01-19 紫光华山信息技术有限公司 Installation method of operating system, device and server
US10110624B2 (en) 2016-04-19 2018-10-23 Red Hat Israel, Ltd. Discovering and provisioning computing devices in a security enhanced environment
CN112000342A (en) * 2020-08-14 2020-11-27 北京浪潮数据技术有限公司 Operating system installation method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504880A (en) * 2002-11-29 2004-06-16 联想(北京)有限公司 Operating system automatically installing method applying Linux
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504880A (en) * 2002-11-29 2004-06-16 联想(北京)有限公司 Operating system automatically installing method applying Linux
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANDY PFIFFER: "Reducing System Reboot Time With kexec", 《HTTP://WWW.OSDL.ORG》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297504A (en) * 2013-05-09 2013-09-11 浙江大学 Method for quickly deploying operating systems in physical bare computers in cloud data center
CN103297504B (en) * 2013-05-09 2016-05-11 浙江大学 The method of physics bare machine rapid deployment operating system in a kind of cloud data center
CN104391715A (en) * 2014-11-11 2015-03-04 北京锐安科技有限公司 Linux-system-based application program installation method and device
CN104391715B (en) * 2014-11-11 2017-11-10 北京锐安科技有限公司 A kind of application program installation method and device based on Linux system
CN104461645A (en) * 2014-12-17 2015-03-25 北京极科极客科技有限公司 Kexec based firmware updating method and kexec based firmware updating device
US10110624B2 (en) 2016-04-19 2018-10-23 Red Hat Israel, Ltd. Discovering and provisioning computing devices in a security enhanced environment
US11233813B2 (en) 2016-04-19 2022-01-25 Red Hat Israel, Ltd Discovering and provisioning computing devices in a security enhanced environment
CN107544780A (en) * 2016-06-23 2018-01-05 北京忆恒创源科技有限公司 The installation method and erecting device of a kind of operating system
CN107391197A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The installation method and device of a kind of (SuSE) Linux OS
CN107608681A (en) * 2017-09-14 2018-01-19 紫光华山信息技术有限公司 Installation method of operating system, device and server
CN107608681B (en) * 2017-09-14 2021-12-07 新华三信息技术有限公司 Operating system installation method and device and server
CN112000342A (en) * 2020-08-14 2020-11-27 北京浪潮数据技术有限公司 Operating system installation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102053848A (en) Automatic installation method for Linux operating system
CN103365696B (en) BIOS image file acquisition methods and device
CN105739961B (en) Starting method and device of embedded system
CN110007974B (en) Method and device applied to starting of operating system and electronic equipment
KR101673299B1 (en) Operating system recovery method and apparatus, and terminal device
CN105760191A (en) Embedded system equipment programming mass production method
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
US11030047B2 (en) Information handling system and method to restore system firmware to a selected restore point
CN113032032A (en) System management method and device, computing equipment and readable storage medium
US10185573B2 (en) Caching based operating system installation
US10664598B1 (en) Firmware security patch deployment
KR20130068630A (en) Method for initializing embedded device and apparatus thereof
US9852028B2 (en) Managing a computing system crash
US20130097412A1 (en) Performing A Boot Sequence In A Multi-Processor System
CN103064767A (en) Driver backup method, driver backup device, driver restoring method and driver restoring device
CN102298531B (en) Method for upgrading flash memory file system in embedded system
US11256519B2 (en) Using a single process to install a UEFI-supported OS or a non-UEFI supported OS on a hardware platform
CN111913753A (en) Method and system for changing starting mode in cloud migration of windows system
CN111930575A (en) Firmware acquisition method and device and electronic equipment
US12073229B2 (en) Single node deployment of container platform
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
US8762699B1 (en) System, apparatus, and method for initiating a reboot of a personal computer system by pressing a button on an attached storage device and causing the operating system on the attached storage device to be booted
US8850399B2 (en) Software development using code retraction and background warm up
US8918630B1 (en) System, apparatus, and method for initiating a reboot of a personal computer system by pressing a button on an attached storage device and causing the operating system on the attached storage device to be booted
CN116302150B (en) Hypervisor self-starting program generation method and operating system starting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110511