CN109408124A - Store equipment and preparation method thereof, operating system double mode bootstrap technique and device - Google Patents
Store equipment and preparation method thereof, operating system double mode bootstrap technique and device Download PDFInfo
- Publication number
- CN109408124A CN109408124A CN201811260251.8A CN201811260251A CN109408124A CN 109408124 A CN109408124 A CN 109408124A CN 201811260251 A CN201811260251 A CN 201811260251A CN 109408124 A CN109408124 A CN 109408124A
- Authority
- CN
- China
- Prior art keywords
- operating system
- partition
- bootloader
- guidance mode
- guidance
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
- G06F9/441—Multiboot arrangements, i.e. selecting an operating system to be loaded
Abstract
The disclosure provides storage equipment and preparation method thereof, operating system double mode bootstrap technique and device, computer equipment and readable storage medium storing program for executing, by storing kernel on a storage device, the Bootloader of first starting system and two kinds of different modes, computer equipment (such as, server) connect the storage equipment (such as, the computer equipment is connected to by interface) after, computer equipment can realize the booting operating system of two kinds of different modes by storage equipment, it is single to solve booting operating system mode in the prior art, the technical issues of can not being used by other computer equipments in operating system storage to the hard disk of computer equipment, keep the guidance mode of operating system more flexible, operating system has mobility, promote user experience.
Description
Technical field
This disclosure relates to which field of computer technology, is in particular to a kind of storage equipment and preparation method thereof, operation
System double mode bootstrap technique and device, computer equipment and readable storage medium storing program for executing.
Background technique
The operating system of computer equipment (such as server, PC machine) is (for example, Windows sequence of maneuvers system, Unix class are grasped
Make system and Linux type operating system etc.) all only support the booting operating system mode of single mode mostly, i.e., only support installation
The start-up mode when operating system, booting operating system mode is single, lacks flexibility, influences user experience.
Summary of the invention
The embodiment of the present disclosure describes a kind of storage equipment and preparation method thereof, operating system double mode bootstrap technique and dress
It sets, computer equipment and readable storage medium storing program for executing, for solving the single technical problem of existing booting operating system mode, it is ensured that behaviour
Operating system can be guided using two different guidance modes by making system.
In a first aspect, the disclosure provides a kind of storage equipment, the storage equipment includes boot partition, boot partition, behaviour
Make the visible visible partition of user under system partitioning and operating system;
The boot partition is stored with the first Bootloader;
The boot partition is stored with the second Bootloader, kernel and first starting system;
The operating system partition is stored with operating system;
The boot partition and the operating system partition are provided with for first Bootloader and the second starting
The label of bootstrap identification, so that first Bootloader or the second Bootloader are according to the label lookup
The boot partition and operating system partition, and the guidance to operating system is completed by kernel, first starting system and operating system,
Wherein, first Bootloader is EFI bootstrap or Legacy bootstrap, and second Bootloader is
Legacy bootstrap or EFI bootstrap.
Optionally, in the disclosure, the storage equipment is movable memory equipment, and the movable memory equipment includes
USB flash drive.
Second aspect, the disclosure, which provides, also provides a kind of method for making and storing equipment in first aspect, the method packet
It includes:
The storage equipment is divided into multiple subregions, the multiple subregion includes boot partition, boot partition, operating system
The visible visible partition of user under subregion and operating system;
The boot partition is written into first Bootloader;
The boot partition is written into second Bootloader, kernel and first starting system;
The operating system partition is written into operating system;
For the boot partition and the operating system partition configuration flag, so as to first Bootloader and institute
State the second Bootloader boot partition according to the label lookup and operating system partition, from the boot partition and
The operating system partition obtains the kernel, first starting system and operating system for carrying out booting operating system, wherein described
One Bootloader is EFI bootstrap or Legacy bootstrap, and second Bootloader is Legacy guidance
Program or EFI bootstrap.
The third aspect, disclosure offer also provides a kind of operating system double mode bootstrap technique, applied to being connected with first
The computer equipment of the aspect storage equipment, which comprises
When receive the instruction of the computer equipment is started by the storage equipment after, prompt user's selection operation system
Guidance mode, wherein the guidance mode include the first guidance mode and the second guidance mode;
The guidance mode that input is selected according to user transfers corresponding the from the boot partition or the boot partition
One Bootloader or the second Bootloader;
Kernel and first starting system are loaded from the boot partition according to the label, completion system just opens;
Operating system is obtained from the operating system partition according to the label, and the behaviour is switched to by first starting system
Make system, to complete the guidance of first guidance mode or the second guidance mode to the operating system.
Optionally, in the disclosure, the guidance mode that input is selected according to user, from the boot partition or the starting
Corresponding first Bootloader or the second Bootloader are transferred in subregion, comprising:
When user selects the guidance mode of input as the first guidance mode, the first starting is transferred from the boot partition and is drawn
Lead sequence;
When user selects the guidance mode of input as the second guidance mode, the second starting is transferred from the boot partition
Bootstrap.
Optionally, in the disclosure, first guidance mode is Extensible Firmware Interface EFI guidance mode or Legacy
Guidance mode;
Second guidance mode is Legacy guidance mode or EFI guidance mode.
Fourth aspect, the disclosure also provide a kind of operating system double mode guide device, applied to being connected with first aspect
The computer equipment of the storage equipment, described device include:
Cue module, for when receive the instruction of the computer equipment is started by the storage equipment after, prompt use
The guidance mode of family selection operation system, wherein the guidance mode includes the first guidance mode and the second guidance mode;
Module is transferred, for selecting the guidance mode of input according to user, from the boot partition or the boot partition
In transfer corresponding first Bootloader or the second Bootloader;
Module just is opened, for according at the beginning of the label from boot partition load kernel and first starting system, completion system
It opens;
Guiding module and is by just opening for obtaining operating system from the operating system partition according to the label
System is switched to the operating system, is drawn with completing first guidance mode or the second guidance mode to the operating system
It leads.
5th aspect, the disclosure also provide a kind of computer equipment, including processor and are stored with the non-of computer instruction
Volatile memory when computer instruction is executed by processor, realizes operating system double mode guidance side described in fourth aspect
Method.
6th aspect, the disclosure also provide a kind of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes computer program,
Computer equipment executes operation described in fourth aspect the computer program controls the readable storage medium storing program for executing when running where
System double mode bootstrap technique.
In terms of existing technologies, the disclosure has the advantages that
The disclosure provides storage equipment and preparation method thereof, operating system double mode bootstrap technique and device, computer and sets
Standby and readable storage medium storing program for executing, the starting by storing kernel, first starting system and two kinds of different modes on a storage device guide journey
Sequence connects the storage equipment (for example, being connected to the computer equipment by interface) in computer equipment (for example, server)
Afterwards, computer equipment can realize the booting operating system of two kinds of different modes by storage equipment, solve in the prior art
The single technical problem of booting operating system mode, keeps the guidance mode of operating system more flexible, promotes user experience.
Detailed description of the invention
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present disclosure
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the application scenarios schematic diagram that the embodiment of the present disclosure provides;
Fig. 2 is the schematic diagram for each subregion of storage equipment that the embodiment of the present disclosure provides;
Fig. 3 is the flow diagram for the production storage device, method that the embodiment of the present disclosure provides;
Fig. 4 is the flow diagram for the operating system double mode bootstrap technique that the embodiment of the present disclosure provides;
Fig. 5 is a kind of the functional block diagram for operating system double mode guide device that the embodiment of the present disclosure provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present disclosure clearer, below in conjunction with the embodiment of the present disclosure
In attached drawing, the technical solution in the embodiment of the present disclosure is clearly and completely described, it is clear that described embodiment is
Disclosure a part of the embodiment, instead of all the embodiments.The disclosure being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the disclosure provided in the accompanying drawings is not intended to limit below claimed
The scope of the present disclosure, but be merely representative of the selected embodiment of the disclosure.Based on the embodiment in the disclosure, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model of disclosure protection
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Most of operating systems are all run on hard disk, for example, the operating system of computer equipment (for example, server) is deposited
Storage is in disk array (Redundant Arrays of Independent Drives, referred to as: RAID), by RAID control card
The operating system is managed, can not plug and be used in another computer equipment.In the prior art, general using behaviour
Make system image and carry out system installation, in the computer equipment for completing operating system installation, which is in starting
A kind of bootmode can only be supported when system, for example, being Extensible Firmware Interface (extensible firmware when if installing
Interface, EFI) guidance mode, then computer equipment when carrying out os starting can only using EFI guidance mode into
Row booting operating system.
Based on this, inventor provides solution below for solving above-mentioned technical problem.
Fig. 1 is please referred to, Fig. 1 is a kind of application scenarios schematic diagram that the embodiment of the present disclosure provides.In the application scenarios, meter
It calculates machine equipment 1 and storage equipment 2 is electrically connected, specifically, computer equipment 1 can be connected with storage equipment 2 by data-interface
It connects, for example, storage equipment 1 can be connected by USB interface and the interface of calculator device.
In the embodiments of the present disclosure, computer equipment 1 includes basic input output system (Basic Input Output
System, BIOS), BIOS is the program on one group of rom chip being cured on the mainboard of computer equipment 1, based on saving
Self-check program and system self-triggered program etc. after the programs of the important basic input and output of calculation machine, booting, BIOS can be from CMOS
The specifying information of middle read-write system setting.BIOS mainly during booting operating system, carries out kernel running environment preparatory
Detection, it is ensured that interior nuclear energy operates normally.
Referring once again to Fig. 1, computer equipment 1 includes operating system double mode guide device 110, memory 11, processing
Device 12 and communication unit 13.
Each element of the memory 11, processor 12 and communication unit 13 directly or indirectly electrically connects between each other
It connects, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or signal between each other
Line, which is realized, to be electrically connected.
Wherein, the memory 11 may be, but not limited to, random access memory (English: Random Access
Memory, referred to as: RAM), read-only memory (English: Read Only Memory, referred to as: ROM), programmable read only memory
(English: Programmable Read-Only Memory, referred to as: PROM), erasable read-only memory (English: Erasable
Programmable Read-Only Memory, referred to as: EPROM), electricallyerasable ROM (EEROM) (English: Electric
Erasable Programmable Read-Only Memory, referred to as: EEPROM) etc..Wherein, memory 11 is for storing journey
Sequence, the processor 12 execute described program after receiving and executing instruction.The communication unit 13 is for passing through wired or nothing
The mode of line establishes the communication connection between computer equipment 1 and other equipment (such as storage equipment), and for carrying out data
Send and receive.
Operating system double mode guide device 110 includes that at least one can be deposited in the form of software or firmware (firmware)
It is stored in the memory 11 or is solidificated in the operating system (English: Operating System, letter of the computer equipment 1
Claim: OS) in software function module.The processor 12 is for executing the executable module stored in the memory 11, example
Software function module and computer program etc. as included by operating system double mode guide device 110.
The first embodiment of the present disclosure
The storage equipment 2 that the exhaustive presentation first embodiment of the present disclosure provides below, referring to figure 2., storage equipment 2 include more
A partition holding, multiple partition holding may include boot partition 21, boot partition 22 and operating system partition 23.
In the embodiments of the present disclosure, boot partition 21 is for storing the corresponding first starting guidance journey of the first guidance mode
Sequence;Boot partition 22 is for kernel needed for storing corresponding second Bootloader of the second guidance mode, start-up operation system
And first starting system (initramfs);Operating system partition 23 is for operating system needed for being stored with computer equipment.
First guidance mode and the second guidance mode are respectively guide management program (the GRand Unified
Bootloader, referred to as: Grub) Extensible Firmware Interface EFI guidance mode or both Legacy guidance modes wherein it
One.Kernel is operating system meat and potatoes, it is to provide to carry out safe visit to the hardware of computer equipment 1 for application program
The software asked, this access are limited, and kernel determine a program when to certain fractional hardware operation how long
Time.Initramfs and kernel are compiled into a file, i.e. initramfs passes through the data of the compressed cpio format of gzip
File, this document are linked on data segment .init.ramfs special in kernel, wherein global variable _ initramfs_
Start and _ initramfs_end is respectively directed to initial address and the end address of this data segment.Kernel can be right when starting
.init.ramfs the data in section are decompressed, and then use it as interim root file system.Initramfs is being operated
Kernel and operating system can be connected in system boot process, realize the transition of kernel to operating system.
In the embodiments of the present disclosure, the operating system for being stored in operating system partition 23 can be for by the behaviour for cutting processing
Make system, cutting treatment process can be, first by mounted operating system tool of compression (for example, tar) boil down to pressure
Contracting packet (for example, tar.gz);The compressed package is then unziped to the operation system after being cut under any one catalogue
System, the main actions of cutting are to delete a part of catalogue, such as/usr/share/help/vim catalogue.
In the embodiments of the present disclosure, boot partition 22 and operating system partition 23 are provided in guide management program
The label (label) of one Bootloader and the identification of the second Bootloader, marks for identifying file partition, and
For searching boot partition 22 and operating system partition 23 on startup.The first Bootloader in guide management program and
Second Bootloader can search boot partition 22 or operating system partition 23 from storage equipment 2 by the label, with
Just the first Bootloader and the second Bootloader are completed by kernel, first starting system and operating system to operating system
Guidance.Wherein, the first Bootloader is EFI bootstrap or Legacy bootstrap, and the second Bootloader is
Legacy bootstrap or EFI bootstrap.
Further, referring once again to Fig. 2, in the embodiments of the present disclosure, storage equipment 2, which is also used as data disks, to be made
With in storage equipment 2 as data disks in use, storage equipment 2 can also be visible visible including user under an operating system
Subregion 24, it is however generally that, it is seen that the memory space that subregion 24 occupies storage equipment 2 is maximum.
Further, in order to increase the mobility of operating system, make operating system in different computer equipments 1
With.In the embodiments of the present disclosure, storage equipment 2 can be movable memory equipment, for example, mobile hard disk, USB flash drive (U
Disk), CD dish etc..Preferably, in the present embodiment, storage equipment 2 is USB flash disk.
It is stored with the starting guidance for realizing two kinds of starting bootmodes in above-mentioned storage equipment 2 from program and completes operation
Kernel needed for System guides, initial system and operating system, Bootloader can be by boot partition 22 and operation
Unite subregion 23 on label, obtained from boot partition 22 and operating system partition 23 kernel, initial system and operating system with
The guidance to operating system is completed under different bootmodes.
The second embodiment of the present disclosure
The second embodiment of the present disclosure provides a kind of method for making and storing equipment 2 in first embodiment, referring to figure 3., this
Production method includes the following steps.
Storage equipment 2 is divided into multiple subregions by step S210, and plurality of subregion includes boot partition 21, starting point
Area 22 and operating system partition 23;
Boot partition 21 is written in first Bootloader by step S220;
Boot partition 22 is written in second Bootloader, kernel and first starting system by step S230;
Step S240, by operating system write operation system partitioning 23;
Step S250 is 23 configuration flag of boot partition 22 and operating system partition, so as to the first Bootloader and
Second Bootloader is according to the label lookup boot partition 22 and operating system partition 23, from boot partition 22 and operation system
System subregion 23 obtains kernel, first starting system and operating system for carrying out booting operating system.
Below by taking operating system CentOS6.8 as an example, the production method of above-mentioned storage equipment 2 is introduced.It will storage
Equipment 2 is divided at least three subregion, these subregions include boot partition 21, boot partition 22 and operating system partition 23.
The first Bootloader (such as EFI bootstrap) in guide management program grub2 is written to guidance point
In area 21;
Again by guide management program grub2 the second Bootloader (such as Legacy bootstrap), kernel and
First starting system (initramfs) is written to boot partition 22;
By operating system write operation system partitioning 23, in the embodiments of the present disclosure, operating system writing process be may is that
Firstly, by mounted operating system tool of compression (for example, tar) boil down to compressed package (for example, tar.gz);Then, will
The compressed package unzips to the operating system after being cut under any one catalogue, main to delete such as (/usr/
The catalogues such as share/man/doc/help/vim);Finally, by the operating system write operation system partitioning 23 after cutting.
It is boot partition 22 and the configuration of operating system partition 23 for the first Bootloader in guide management program grub2
With the label (label) of the second Bootloader identification, label is used to look on startup for identifying file partition
Look for boot partition 22 and operating system partition 23;And modify to the first Bootloader and the second Bootloader,
Set the first Bootloader and the second Bootloader in guide management program from storage by the label
Boot partition 22 or operating system partition 23 are searched in standby 2, so that the first Bootloader and the second Bootloader are logical
Cross the guidance of kernel, first starting system and operating system completion to operating system.Wherein, the first Bootloader is EFI guidance
Program or Legacy bootstrap, the second Bootloader are Legacy bootstrap or EFI bootstrap.
Further, have the function of data disks to make to store equipment 2, subregion further include under an operating system user it is visible
Visible partition 24, in the embodiments of the present disclosure, it is seen that the memory space that subregion 24 occupies storage equipment 2 is maximum.
The storage equipment making method that the embodiment of the present disclosure provides, is divided into multiple subregions by that will store equipment, not
With storage Bootloader, kernel, first starting system and operating system on subregion, and in storage kernel, first starting system and operation
The zone configuration of system marks, and calls above-mentioned resource according to label so as not to same Bootloader, realizes booting operating system.
The third embodiment of the present disclosure
The third embodiment of the present disclosure provides one kind and is grasped by storage equipment 2 in first embodiment to computer equipment 1
Make system double mode bootstrap technique, referring to figure 4., this approach includes the following steps.
Step S310, when receive by store equipment start the instruction of the computer equipment 1 after, prompt user select behaviour
Make the guidance mode of system, wherein guidance mode includes the first guidance mode and the second guidance mode;
Step S320 selects the guidance mode of input according to user, transfers from boot partition 21 or boot partition 22 pair
The first Bootloader or the second Bootloader answered;
Step S330 loads kernel and first starting system from boot partition 22 according to label, and completion system just opens;
Step S340 obtains operating system according to label from operating system partition 23, and is switched to behaviour by first starting system
Make system, to complete the guidance of the first guidance mode or the second guidance mode to operating system.
In the embodiments of the present disclosure, it before starting computer equipment using storage equipment 2, needs to store equipment 2 and connects
It is connected in computer equipment 1, specifically, storage equipment 2 can be connect with computer equipment 1 by data-interface, be completed
After the connection of storage equipment 2, computer equipment 1 can read the data stored in storage equipment 2.
After computer equipment 1 is restarted, into the os starting interface of computer equipment 1, select from storage equipment 2
Start-up operation system.Computer equipment 1 obtains the double mode that storage equipment 2 is supported and is booted up mode, and opens in operating system
Show that the double mode is booted up mode and user is prompted to select on arena face.
User select input guidance mode be the first guidance mode when, from boot partition 21 transfer the first starting guide
Program.First Bootloader positions kernel and first starting system from boot partition 22 according to label, and by kernel loads to counting
In the memory for calculating machine equipment 1, after kernel is transferred to memory, the first bootstrap hands over the control of the CPU of computer equipment 1
To kernel, kernel starts to execute, and kernel completes function of initializing first, including the initialization to hardware, circuit logic etc., and
Initialization to kernel data structure (such as page table), and first starting system is completed into system as interim root file system
Just open.
Similarly, when user selects the guidance mode of input as the second guidance mode, second is transferred from boot partition 22 and is opened
Dynamic bootstrap.Second Bootloader positions kernel and first starting system from boot partition 22 according to label, and kernel is added
It is downloaded in the memory of computer equipment 1, after kernel is transferred to memory, the second bootstrap is by the control of the CPU of computer equipment 1
System power gives kernel, and kernel starts to execute, and kernel completes function of initializing first, including to the initial of hardware, circuit logic etc.
Change, and the initialization to kernel data structure (such as page table), and by first starting system as interim root file system, it is complete
It is just opened at system.
Then, computer equipment 1 is based on label from operation by the first Bootloader or the second Bootloader
Operating system is obtained in system partitioning 23, computer equipment 1 is switched in the operating system by first starting system, to complete
First Bootloader or the second Bootloader guide the starting of the operating system of computer equipment 1.
Further, in the embodiments of the present disclosure, the first guidance mode be Extensible Firmware Interface EFI guidance mode or
Legacy guidance mode;Second guidance mode is Legacy guidance mode or EFI guidance mode.
In the embodiments of the present disclosure, computer equipment 1 passes through the kernel being stored in storage equipment 2, first starting system and two
The Bootloader of kind different mode connects the storage equipment (for example, by connecing in computer equipment (for example, server)
Mouth is connected to the computer equipment) after, computer equipment can pass through the operating system that storage equipment realizes two kinds of different modes
Guidance.
The fourth embodiment of the present disclosure
The fourth embodiment of the present disclosure provides one kind and is grasped by storage equipment 2 in first embodiment to computer equipment 1
Make system double mode guide device 110, referring to figure 5., which includes: cue module 1101, transfers module 1102, Chu Qimo
Block 1103 and guiding module 1104.
Cue module 1101, for when receive by storage equipment 2 start the computer equipment 1 instruction after, prompt
The guidance mode of user's selection operation system, wherein guidance mode includes the first guidance mode and the second guidance mode.
Module 1102 is transferred, for selecting the guidance mode of input according to user, from boot partition 21 or boot partition 22
In transfer corresponding first Bootloader or the second Bootloader.
Further, in the embodiments of the present disclosure, module 112 is transferred to be specifically used for:
When the guidance mode of input is the first guidance mode, the first Bootloader is transferred from boot partition 21;
When the guidance mode of input is the second guidance mode, the second Bootloader is transferred from boot partition 22.
Module 1103 just is opened, for loading kernel and first starting system from boot partition 22 according to label, completion system is just opened;
Guiding module 1104, for obtaining operating system from operating system partition 23 according to label, and by first starting system
It is switched to operating system, to complete the guidance of the first guidance mode or the second guidance mode to operating system.
In the embodiments of the present disclosure, the first guidance mode is that Extensible Firmware Interface EFI guidance mode or Legacy are guided
Mode;Second guidance mode is Legacy guidance mode or EFI guidance mode.
It, can be with if above-mentioned function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that corresponding equipment executes each reality of the disclosure
Apply all or part of the steps of the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (English
Text: Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as:
RAM), the various media that can store program code such as magnetic or disk.
In conclusion the embodiment of the present disclosure provides storage equipment and preparation method thereof, operating system double mode bootstrap technique
And device, computer equipment and readable storage medium storing program for executing, by storing kernel, first starting system and two kinds of different moulds on a storage device
The Bootloader of formula connects the storage equipment (for example, being connected to by interface in computer equipment (for example, server)
The computer equipment) after, computer equipment can realize the booting operating system of two kinds of different modes by storage equipment, solve
Booting operating system mode is single in the prior art, can not be counted by other in operating system storage to the hard disk of computer equipment
The technical issues of machine equipment uses is calculated, keeps the guidance mode of operating system more flexible, operating system has mobility, is promoted
User experience.
The above, the only specific embodiment of the disclosure, but the protection scope of the disclosure is not limited thereto, it is any
Those familiar with the art can easily think of the change or the replacement in the technical scope that the disclosure discloses, and should all contain
It covers within the protection scope of the disclosure.Therefore, the protection scope of the disclosure shall be subject to the protection scope of the claim.
Claims (10)
1. a kind of storage equipment, which is characterized in that the storage equipment includes boot partition, boot partition, operating system partition
And the visible visible partition of user under operating system;
The boot partition is stored with the first Bootloader;
The boot partition is stored with the second Bootloader, kernel and first starting system;
The operating system partition is stored with operating system;
The boot partition and the operating system partition are provided with for first Bootloader and the second starting guidance
The label of procedure identification, so that first Bootloader or the second Bootloader are according to the label lookup
Boot partition and operating system partition, and the guidance to operating system is completed by kernel, first starting system and operating system,
In, first Bootloader is EFI bootstrap or Legacy bootstrap, and second Bootloader is
Legacy bootstrap or EFI bootstrap.
2. storage equipment as described in claim 1, which is characterized in that the storage equipment includes USB flash drive.
3. a kind of method for making storage equipment as claimed in claim 1 or 2, which is characterized in that the described method includes:
The storage equipment is divided into multiple subregions, the multiple subregion includes boot partition, boot partition, operating system partition
And the visible visible partition of user under operating system;
The boot partition is written into first Bootloader;
The boot partition is written into second Bootloader, kernel and first starting system;
The operating system partition is written into operating system;
For the boot partition and the operating system partition configuration flag, so as to first Bootloader and described
Two Bootloaders boot partition according to the label lookup and operating system partition, from the boot partition and described
Operating system partition obtains the kernel, first starting system and operating system for carrying out booting operating system, wherein described first opens
Dynamic bootstrap is EFI bootstrap or Legacy bootstrap, and second Bootloader is Legacy bootstrap
Or EFI bootstrap.
4. a kind of operating system double mode bootstrap technique, which is characterized in that applied to being connected with storage as claimed in claim 1 or 2
The computer equipment of equipment, which comprises
When receive the instruction of the computer equipment started by the storage equipment after, prompt user's selection operation system to draw
Mode is led, wherein the guidance mode includes the first guidance mode and the second guidance mode;
The guidance mode that input is selected according to user, corresponding first is transferred from the boot partition or the boot partition and is opened
Dynamic bootstrap or the second Bootloader;
Kernel and first starting system are loaded from the boot partition according to the label, completion system just opens;
Operating system is obtained from the operating system partition according to the label, and the operation is switched to by first starting system and is
System, to complete the guidance of first guidance mode or the second guidance mode to the operating system.
5. method as claimed in claim 4, which is characterized in that the guidance mode that input is selected according to user, from the guidance
Corresponding first Bootloader or the second Bootloader are transferred in subregion or the boot partition, comprising:
User select input guidance mode be the first guidance mode when, from the boot partition transfer the first starting guide journey
Sequence;
User select input guidance mode be the second guidance mode when, transferred from the boot partition the second starting guide
Program.
6. method as described in claim 4 or 5, which is characterized in that first guidance mode is Extensible Firmware Interface EFI
Guidance mode or Legacy guidance mode;
Second guidance mode is Legacy guidance mode or EFI guidance mode.
7. a kind of operating system double mode guide device, which is characterized in that applied to being connected with storage as claimed in claim 1 or 2
The computer equipment of equipment, described device include:
Cue module, for when receive the instruction of the computer equipment is started by the storage equipment after, prompt user choosing
The guidance mode of operating system is selected, wherein the guidance mode includes the first guidance mode and the second guidance mode;
Module is transferred, for selecting the guidance mode of input according to user, is adjusted from the boot partition or the boot partition
Take corresponding first Bootloader or the second Bootloader;
Module just is opened, for loading kernel and first starting system from the boot partition according to the label, completion system is just opened;
Guiding module for obtaining operating system from the operating system partition according to the label, and is cut by first starting system
The operating system is changed to, to complete the guidance of first guidance mode or the second guidance mode to the operating system.
8. device as claimed in claim 7, which is characterized in that the module of transferring is used for:
When the guidance mode of input is the first guidance mode, the first Bootloader is transferred from the boot partition;
When the guidance mode of input is the second guidance mode, the second Bootloader is transferred from the boot partition.
9. a kind of computer equipment, which is characterized in that including processor and it is stored with the nonvolatile memory of computer instruction,
When computer instruction is executed by processor, operating system double mode guidance side described in any one of claim 4-6 is realized
Method.
10. a kind of readable storage medium storing program for executing, which is characterized in that the readable storage medium storing program for executing includes computer program, the computer
Computer equipment perform claim program controls the readable storage medium storing program for executing when running where requires behaviour described in any one of 4-6
Make system double mode bootstrap technique.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811260251.8A CN109408124A (en) | 2018-10-26 | 2018-10-26 | Store equipment and preparation method thereof, operating system double mode bootstrap technique and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811260251.8A CN109408124A (en) | 2018-10-26 | 2018-10-26 | Store equipment and preparation method thereof, operating system double mode bootstrap technique and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109408124A true CN109408124A (en) | 2019-03-01 |
Family
ID=65469360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811260251.8A Pending CN109408124A (en) | 2018-10-26 | 2018-10-26 | Store equipment and preparation method thereof, operating system double mode bootstrap technique and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109408124A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737479A (en) * | 2019-09-04 | 2020-01-31 | 平安科技(深圳)有限公司 | method for starting operating system without disk, server and readable storage medium |
CN111913753A (en) * | 2020-07-10 | 2020-11-10 | 江苏安超云软件有限公司 | Method and system for changing starting mode in cloud migration of windows system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970557A (en) * | 2013-02-04 | 2014-08-06 | 中兴通讯股份有限公司 | Storage device and system starting method thereof |
CN108614718A (en) * | 2018-04-25 | 2018-10-02 | 紫光华山信息技术有限公司 | The method, apparatus and realization device of start-up operation system |
-
2018
- 2018-10-26 CN CN201811260251.8A patent/CN109408124A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970557A (en) * | 2013-02-04 | 2014-08-06 | 中兴通讯股份有限公司 | Storage device and system starting method thereof |
CN108614718A (en) * | 2018-04-25 | 2018-10-02 | 紫光华山信息技术有限公司 | The method, apparatus and realization device of start-up operation system |
Non-Patent Citations (8)
Title |
---|
丁俊,陈世保主编: "《计算机操作系统安装与维护》", 31 October 2016, 西南交通大学出版社 * |
冯培禄,杨宝勇主编: "《微机组装与系统维护技术教程》", 31 August 2014, 中国铁道出版社 * |
叶晟主编: "《Linux服务器配置与管理项目化教程》", 31 March 2015, 中国铁道出版社 * |
启典文化编著: "《笔记本电脑使用与维护超简单》", 31 July 2013, 中国铁道出版社 * |
孙弋主编: "《ARM-Linux嵌入式系统开发基础》", 31 August 2008, 西安电子科技大学出版社 * |
李庆诚 等: "《嵌入式系统原理》", 31 March 2007, 北京航空航天大学出版社 * |
苏少姣等编著: "《网络维护和常见故障分析》", 29 February 2004, 中国铁道出版社 * |
赏月斋: "UEFI与Legacy BIOS两种启动模式详解", 《HTTPS://WWW.CNBLOGS.COM/SDDAI/P/7739567.HTML》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737479A (en) * | 2019-09-04 | 2020-01-31 | 平安科技(深圳)有限公司 | method for starting operating system without disk, server and readable storage medium |
CN111913753A (en) * | 2020-07-10 | 2020-11-10 | 江苏安超云软件有限公司 | Method and system for changing starting mode in cloud migration of windows system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10055218B2 (en) | System and method for adding and storing groups of firmware default settings | |
CN105404525B (en) | Manage the method and device of the basic input output system configuration in computer system | |
US9430250B2 (en) | Bootability with multiple logical unit numbers | |
CN101650660B (en) | Booting a computer system from central storage | |
US8751783B2 (en) | Booting computing devices with EFI aware operating systems | |
US10990415B2 (en) | Disk management method and apparatus in ARM device and ARM device | |
US9239725B2 (en) | System and method for installing an OS via a network card supporting PXE | |
US10810017B2 (en) | Systems and methods for handling firmware driver dependencies in host operating systems while applying updates from bootable image file | |
CN103514015A (en) | Method and device for booting operation system from storage medium | |
EP3163441A1 (en) | Computer device and memory starting method for computer device | |
CN105824678A (en) | Method and device for installing operating system | |
CN104866324A (en) | Method for constructing portable operating system and portable memorizer | |
US9672047B1 (en) | Systems and methods for accessing a bootable partition on a serial peripheral interface device | |
US10204011B1 (en) | Techniques for partially restarting a computing device in response to a configuration change | |
CN109408124A (en) | Store equipment and preparation method thereof, operating system double mode bootstrap technique and device | |
CN104428751A (en) | Program data updating method and equipment | |
US9189351B2 (en) | Method of obtaining instruction for triggering function | |
US20150324209A1 (en) | Operating System Switching Method and Dual-Operating System Electronic Device Using the Same | |
US11340882B2 (en) | Systems and methods for enforcing update policies while applying updates from bootable image file | |
CN108052337A (en) | A kind of firmware upgrade method and device of eMMC production tools | |
CN105204896A (en) | BootLoader design method of digital storage oscilloscope | |
US20180032351A1 (en) | Information processing method and storage device | |
US7103767B2 (en) | Method and apparatus to support legacy master boot record (MBR) partitions | |
CN110333901A (en) | The title update method of storage device | |
US11023217B2 (en) | Systems and methods for support of selective processor microcode updates |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310000 11/F, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: H3C INFORMATION TECHNOLOGY Co.,Ltd. Address before: 310000 11/F, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant before: UNIS HUASHAN INFORMATION TECHNOLOGIES Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190301 |