CN1512337A - Method for computer starting and multiple operation system switching - Google Patents

Method for computer starting and multiple operation system switching Download PDF

Info

Publication number
CN1512337A
CN1512337A CNA021599092A CN02159909A CN1512337A CN 1512337 A CN1512337 A CN 1512337A CN A021599092 A CNA021599092 A CN A021599092A CN 02159909 A CN02159909 A CN 02159909A CN 1512337 A CN1512337 A CN 1512337A
Authority
CN
China
Prior art keywords
operating system
bios
computer
data form
hardware device
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.)
Granted
Application number
CNA021599092A
Other languages
Chinese (zh)
Other versions
CN1262921C (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 02159909 priority Critical patent/CN1262921C/en
Publication of CN1512337A publication Critical patent/CN1512337A/en
Application granted granted Critical
Publication of CN1262921C publication Critical patent/CN1262921C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The method of starting up computer includes establishing one data form for saving hardware equipment data information in RAM of computer; initializing CPU and detecting the hardware equipment with BIOS, judging the position of operation system in the hard disc and saving the hardware equipment testing result in the data form of RAM; copying the BIOS to the RAM with the BIOS; and reading out the hardware equipment data information from the data form by the operation system for direct start-up. The multiple operation system switching method includes establishing one data form for saving hardware equipment data information and switching information; judging whether the operation system is off based on the information and CMOS flags; and starting up the operation system by the BIOS via calling the information from the form if off, or finishing the process if on. The present invention can shorten the computer starting up time and converting time of multiple operation system.

Description

The method that a kind of computer starting and multiple operating system switch
Technical field
The present invention relates to realize the multiple operation systems of computer technology, particularly realize the method that computer starting and multiple operating system switch.
Background technology
Along with development of computer, can realize the multifunctional application of computing machine by the method that adds multiple operating system on computers, the for example common on computers application that realizes tame power mode operating system and computer mode operation system, when realizing multiple operation systems of computer, time requirement to computer starting time or multioperation switching is also more and more higher, but the time that present computer starting time or multioperation are switched does not but reach user's requirement.
On the one hand, the user wishes that the computer starting time is few more good more, yet the existing computer starting time is long, and computer operating system starts flow process as shown in Figure 1, and implementation step is:
Step 100,101, the computing machine electrifying startup;
Step 102, Basic Input or Output System (BIOS) (BIOS) is carried out the initialization of central processing unit (CPU) and the detection of hardware device, judges the position of this computer operating system in hard disk;
Step 103, BIOS copies to operating system in the random access memory (RAM);
Step 104, operating system detects hardware device;
Step 105, the booting operating system program start;
Step 106, os starting finishes.
In the computer starting process, the bootup process of BIOS and operating system all is serial, does not have data interaction between the two, and same hardware equipment not only will be detected by BIOS, but also the system that will be operated detects again, caused the prolongation of computer operating system start-up time.
On the other hand, when the multiple operating system of computing machine switches, the user wishes that also switching time is short more good more, however the handoff procedure of multiple operation systems of computer actual be that an operating system is closed, then BIOS restarts, enter into another one operating system again, its implementation procedure supposes that two operating systems are respectively operating system OS-1, OS-2 as shown in Figure 2, Fig. 2 is the process flow diagram of multiple operation systems of computer handoff procedure, and its concrete steps are:
Step 200,201, computing machine powers on, and BIOS carries out initialization, detects hard disk CPU, the position of the OS-1 of decision operation system (or 2), the OS-1 of replicate run system (or 2) is to RAM;
Step 202 starts behind operating system OS-1 (or 2) the detection hard disk and finishes;
Step 203, operating system OS-1 (or 2) closes;
Step 204, computing machine powers on, and BIOS detects the position of hard disk and the OS-2 of decision operation system (or 1) once more, and the OS-2 of replicate run system (or 1) is to RAM;
Step 205 starts behind operating system OS-2 (or 1) the detection hard disk and finishes;
Step 206, the handoff procedure of multiple operating system is finished.
The handoff procedure of multiple operation systems of computer is equivalent to restarting of computing machine, and switching in of multiple operation systems of computer equals the time sum that restarts the computer twice on the time, caused the switching time of multiple operation systems of computer long.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide the method for a kind of computer starting and multiple operating system switching, this method not only solves computer operating system long problem start-up time, and has solved multiple operation systems of computer long problem switching time.
In order to achieve the above object, the present invention also provides a kind of method of computer starting, and this method comprises:
A. in the random access memory of computing machine, set up the data form of a storage hardware device data information;
B. Basic Input or Output System (BIOS) is carried out the detection of initialization and hardware device to central processing unit, and the position of decision operation system on hard disk stored the result that hardware device is detected in the data form of random access memory into;
C. Basic Input or Output System (BIOS) copies to operating system in the random access memory;
D. operating system reads the hardware device data message in this data form, directly starts the operating system.
The present invention also provides a kind of changing method of multiple operation systems of computer, and this method comprises:
A. operating operating system receives the zone bit that set after the order of switching operating system sets in advance the shutoff operation system;
B. judge that this is masked as whether set, if operating operating system is then closed in this zone bit set, change step c over to, otherwise finish;
C. Basic Input or Output System (BIOS) reads the hardware device data message in the described data form of claim 1, judge the position of operating system in hard disk that to switch, the operating system that will switch is copied in the random access memory, and the hardware device data message in the operating system reading of data list that switch starts.
The described zone bit of multiple operation systems of computer changing method step a is provided with in complementary metal oxide semiconductor (CMOS).
The described zone bit of changing method step a of multiple operation systems of computer is provided with in data form.
By such scheme as can be seen, because when computing machine starts or multiple operating system when switching, data message required between BIOS and the operating system repeats mutually, therefore key of the present invention is to set up data form in RAM, when operation system of computer starts, the data information memory that BIOS is detected hard disk is in this data form, computer operating system hard disk in the data query list in start-up course detects data message, avoid repeating that hardware device detects, thereby accelerated start-up time; When operation system of computer is switched, BIOS is detected the data message of hard disk and switch data information stores in this data form, the operating system that computing machine will switch is switched according to the switch data information in the list, the hard disk that calls data form detects data message and starts, thereby has saved the switching time of multiple operating system.
Description of drawings
Fig. 1 is the process flow diagram of computer starting process.
Fig. 2 is the process flow diagram of multiple operation systems of computer handoff procedure.
Fig. 3 is the synoptic diagram of exchange channels between BIOS and the operating system.
Fig. 4 is a computer starting process flow diagram flow chart of the present invention.
Fig. 5 is a multiple operation systems of computer handoff procedure process flow diagram of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage are clearer, and by the following examples and with reference to accompanying drawing, the present invention is described in more detail.
Because the implementation of BIOS or operating system all is serial, the data message between BIOS and the operating system is not shared, and will repeat the detection of identical hard disk, has wasted the time that computer starting or multiple operating system switch.Therefore, in RAM, build a data list, realize the data information sharing between BIOS and the operating system, below illustrate the data form among the RAM, as shown in table 1, the part that table 1 is begun by the F000 section for data form:
Data form (F000 section)
Location address Length Parameter
0H ' BIOS table ' Banner string.
0AH ?1 ...
0BH ?1 ...
0CH ?1 ...
0DH ?2 ...
... ...
Table 1
Data form is by location address, and length and parameter are formed, and when the reference position address is F000H, begins to store the BIOS table, and promptly BIOS table indicates various character string types.Various data messages in the BIOS table are stored in the data form successively by location address.
When computing machine when starting, the data message that detects hard disk deposits in respectively on the diverse location address in this data form; When computing machine carries out multioperation and switches, not only deposit the data message that detects hard disk in this data form in, and deposit switch data information in, i.e. the sign of Qie Huaning, these data messages also deposit in respectively on the diverse location address in the data form.
By the data form among the RAM, it is mutual just can to carry out data message between BIOS and the operating system, as shown in Figure 3, Fig. 3 is the synoptic diagram of exchange channels between BIOS and the operating system, data message between BIOS400 and the operating system 402 is undertaken alternately by the data form among the RAM 401, realize the data information sharing of BIOS and operating system, reaching a certain operation to computing machine does not need the purpose that repeats.
As shown in Figure 4, Fig. 4 is a computer starting process flow diagram flow chart of the present invention.When computer starting, the step of its start-up course is:
Step 400,401, the computing machine electrifying startup;
Step 402, BIOS carries out the initialization of CPU and the detection of hardware device, judges the position of this computer operating system in hard disk, simultaneously the data information memory that hardware device is detected in the data form of RAM;
Step 403, BIOS copies to operating system among the RAM;
Step 404, operating system directly read hardware device and detect data message from the data form of RAM;
Step 405,406, the booting operating system program start, os starting finishes.
BIOS carries out initialization to CPU and when hardware device detected, the data message of detection hardware equipment is filled in the data form, operating system does not then need hardware device is directly detected in start-up course, only needs the data message in the inquiry form just can start the operating system.
For BIOS being described after having detected some fixing hardware devices, operating system does not need identical hardware device to be detected again again, for two example two.Example one: if computing machine is equipped with the ROM (read-only memory) (DVD-ROM) of Digital video disc, the process that BIOS detects DVD-ROM and detects its integrated device electronics (IDE) interface on mainboard is: BIOS detects first passage Primary Hard Drive (IDE Primary Master) interface in order successively, second channel Primary Hard Drive (IDESecondary Master) interface, first passage from hard disk (IDE Primary Slave) interface and second channel from hard disk (IDE Secondary Slave) interface, which interface the storer of judging which kind of type is present on, if being DVD-ROM, testing result is present on the IDE Primary Master Interface, then testing result is stored in the data form of RAM, when operating system during at detection hardware equipment, the data message that operating system is only called in the RAM data form is learnt the position of DVD-ROM, and need not detect actual hardware device.Example two: when the interface to mouse detects, if the result that BIOS detects is USB (universal serial bus) (USB) interface, then with this data information memory in the data form of RAM, operating system is skipped the detection to mouse interface, directly from the data form of RAM, extract data message, the interface type of mouse is set.
When the multiple operating system of computing machine switches, use the data form among the RAM to realize that the data message between BIOS and the operating system is mutual equally, at this moment in data form, not only deposit in and detect hard disc data information, and deposit switch data information in.As shown in Figure 5, Fig. 5 is a multiple operation systems of computer handoff procedure process flow diagram of the present invention, supposes that two operating systems are respectively OS-1 operating system, OS-2 operating system, and implementation step is:
Step 500,501 according to computer starting flow process of the present invention, makes the OS-1 os starting;
Step 502,503, send the computer operating system switching command, OS-1 operating system is with switch data information, be that the switching mark position is stored in the data form that contains the hardware device data message and this switching mark position of set, the perhaps zone bit that set has set in advance in complementary metal oxide semiconductor (CMOS) (CMOS);
Step 504,505, BIOS by CMOS zone bit or the zone bit in the data form whether set judges whether OS-1 operating system closes fully, if zone bit set, then operating system is closed, and changes step 507 over to; Otherwise, change step 506 over to;
Step 506, whole flow process finishes;
Step 507,508,509,510, the hard disk that BIOS directly calls in the data form detects data message, judges that OS-2 operating system copies on the RAM in the position on the hard disk and OS-2 operating system, the hardware device that OS-2 operating system is directly called in the data form once more detects data message, finish the startup of OS-2 operating system, make OS-2 operating system operate as normal, finish the handoff procedure of computer operating system.
The changing method of computer starting provided by the invention and multiple operating system has shortened the start-up time of computing machine and the switching time of multiple operating system.
Unit: second
Pattern ??A ?B
?BIOS ?12 ?12
?LINUX ?30 ?10
The overall time ?42 ?22
Table 2
When computing machine started, as shown in table 2, table 2 was the former start-up time of computing machine and the comparison sheet of start-up time of the present invention.It is LINUX operating system original computer os starting process that Mode A is set, the start-up course of Mode B for computing machine of the present invention is set, just between BIOS and operating system, carry out the start-up course of the mutual computing machine of data message by the data form of RAM, all be 12 seconds BIOS working time of Mode A and Mode B, but LINUX operating system is 10 seconds in the working time of Mode B, and it is 30 seconds in the working time of Mode A, therefore, adopt method of the present invention to make the overall time of startup of computer operating system drop to present 22 seconds, shortened the start-up time of computer operating system greatly by original 42 seconds.
When computer operating system is switched,, also shortened the time that computer operating system is switched greatly owing to having skipped BIOS and operating system to the hard disk duplicate detection time.
The above only is preferred embodiment of the present invention, in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is not equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1, a kind of method of computer starting is characterized in that this method comprises:
A. in the random access memory of computing machine, set up the data form of a storage hardware device data information;
B. Basic Input or Output System (BIOS) is carried out the detection of initialization and hardware device to central processing unit, and the position of decision operation system on hard disk stored the result that hardware device is detected in the data form of random access memory into;
C. Basic Input or Output System (BIOS) copies to operating system in the random access memory;
D. operating system reads the hardware device data message in this data form, directly starts the operating system.
2, a kind of changing method of multiple operation systems of computer is characterized in that this method comprises:
A. operating operating system receives the zone bit that set after the order of switching operating system sets in advance the shutoff operation system;
B. judge that this is masked as whether set, if operating operating system is then closed in this zone bit set, change step c over to, otherwise finish;
C. Basic Input or Output System (BIOS) reads the hardware device data message in the described data form of claim 1, judge the position of operating system in hard disk that to switch, the operating system that will switch is copied in the random access memory, and the hardware device data message in the operating system reading of data list that switch starts.
3, method as claimed in claim 2 is characterized in that: the described zone bit of step a is provided with in complementary metal oxide semiconductor (CMOS).
4, method as claimed in claim 2 is characterized in that: the described zone bit of step a is provided with in data form.
CN 02159909 2002-12-27 2002-12-27 Method for computer starting and multiple operation system switching Expired - Fee Related CN1262921C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02159909 CN1262921C (en) 2002-12-27 2002-12-27 Method for computer starting and multiple operation system switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02159909 CN1262921C (en) 2002-12-27 2002-12-27 Method for computer starting and multiple operation system switching

Publications (2)

Publication Number Publication Date
CN1512337A true CN1512337A (en) 2004-07-14
CN1262921C CN1262921C (en) 2006-07-05

Family

ID=34237684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02159909 Expired - Fee Related CN1262921C (en) 2002-12-27 2002-12-27 Method for computer starting and multiple operation system switching

Country Status (1)

Country Link
CN (1) CN1262921C (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006066473A1 (en) * 2004-12-24 2006-06-29 Lenovo (Beijing) Limited A computer multiple operation system switching method
CN100416502C (en) * 2005-07-11 2008-09-03 威盛电子股份有限公司 Method for starting computer
CN101308459B (en) * 2007-05-16 2011-06-15 英业达股份有限公司 Prompt system and prompt method
CN103229156A (en) * 2010-10-01 2013-07-31 Flex Electronics ID Co.,Ltd. Auto-configuration of a docked system in a multi-OS environment
CN103676937A (en) * 2013-12-10 2014-03-26 中联重科股份有限公司 Method and device for processing control parameters in controller
CN101788913B (en) * 2009-01-23 2014-12-03 幸福居福尔摩沙股份有限公司 Computer system with double operating devices and monitoring method thereof
CN105224402A (en) * 2015-09-11 2016-01-06 上海斐讯数据通信技术有限公司 A kind of multisystem fast switch over method and system
CN105955780A (en) * 2009-07-23 2016-09-21 威盛电子股份有限公司 Computer system and starting method
TWI559227B (en) * 2009-01-12 2016-11-21 幸福居福爾摩沙股份有限公司 Computer system having two built-in operating devices that can be dynamically powered on or powered off
CN114840259A (en) * 2021-02-02 2022-08-02 台湾积体电路制造股份有限公司 Method and system for operating user device with multiple operating systems

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006066473A1 (en) * 2004-12-24 2006-06-29 Lenovo (Beijing) Limited A computer multiple operation system switching method
US8146093B2 (en) 2004-12-24 2012-03-27 Lenovo (Beijing) Limited Computer multiple operation system switching method
CN100416502C (en) * 2005-07-11 2008-09-03 威盛电子股份有限公司 Method for starting computer
CN101308459B (en) * 2007-05-16 2011-06-15 英业达股份有限公司 Prompt system and prompt method
TWI559227B (en) * 2009-01-12 2016-11-21 幸福居福爾摩沙股份有限公司 Computer system having two built-in operating devices that can be dynamically powered on or powered off
CN101788913B (en) * 2009-01-23 2014-12-03 幸福居福尔摩沙股份有限公司 Computer system with double operating devices and monitoring method thereof
CN105955780A (en) * 2009-07-23 2016-09-21 威盛电子股份有限公司 Computer system and starting method
CN103229156A (en) * 2010-10-01 2013-07-31 Flex Electronics ID Co.,Ltd. Auto-configuration of a docked system in a multi-OS environment
CN103229156B (en) * 2010-10-01 2016-08-10 Flex Electronics ID Co.,Ltd. Automatically configuring of docking system in multiple operating system environment
CN103676937A (en) * 2013-12-10 2014-03-26 中联重科股份有限公司 Method and device for processing control parameters in controller
CN105224402A (en) * 2015-09-11 2016-01-06 上海斐讯数据通信技术有限公司 A kind of multisystem fast switch over method and system
CN114840259A (en) * 2021-02-02 2022-08-02 台湾积体电路制造股份有限公司 Method and system for operating user device with multiple operating systems

Also Published As

Publication number Publication date
CN1262921C (en) 2006-07-05

Similar Documents

Publication Publication Date Title
EP2784670B1 (en) Memory management method, memory management device and numa system
CN1286012C (en) Method for recovering and backing up information in hard disc of computer
CN101038551A (en) Method for implementing the start of Linux operation system in mobile hard disk
CN1261868C (en) Method of rapid computer start-up
CN1993676A (en) Method and apparatus for discovering hardware in a data processing system
CN1269033C (en) Method and apparatus to power off and/or reboot logical partitions in data processing system
CN1716204A (en) Systems and methods for development of emulated devices in a virtual machine environment
CN1825283A (en) Method for implementing hardware image starting optimizing of embedded operating system
CN1262921C (en) Method for computer starting and multiple operation system switching
CN1797351A (en) Method for switching multiple operation systems of computer
CN1848087A (en) Using usb memory device to recover operating system
CN1900914A (en) System and method for creating an application-consistent remote copy of data using remote mirroring
CN1841331A (en) Method and system for allocating entitled processor cycles for preempted virtual processors
CN101046772A (en) Method and device for reclaiming memory space
CN1916861A (en) Method for modifying configuration information of computer
CN1920787A (en) Information processing apparatus, information processing apparatus control program, and information processing apparatus control method
CN101364178A (en) Executing method and management method of BIOS while starting up for computer
CN1734430A (en) The method and apparatus of the effective data management of file
CN100352199C (en) Remote power-on functionality in a partitioned environment
CN1512381A (en) Network accession method of automatic matching net card
CN1391170A (en) Information processing devices
CN1801831A (en) Method for increasing handset starting response speed
CN1838075A (en) Operating system selection method and computer system thereof
US8209443B2 (en) System and method for identifying lost/stale hardware in a computing system
CN1238211C (en) Flush operating system startup method for vehicle apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060705

Termination date: 20201227

CF01 Termination of patent right due to non-payment of annual fee