CN1262921C - 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
CN1262921C
CN1262921C CN 02159909 CN02159909A CN1262921C CN 1262921 C CN1262921 C CN 1262921C CN 02159909 CN02159909 CN 02159909 CN 02159909 A CN02159909 A CN 02159909A CN 1262921 C CN1262921 C CN 1262921C
Authority
CN
China
Prior art keywords
operating system
data form
data
computer
bios
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.)
Expired - Fee Related
Application number
CN 02159909
Other languages
Chinese (zh)
Other versions
CN1512337A (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 present invention provides a computer starting method which is characterized in that the method includes the following steps: A. a data form for storing the data information of hardware devices is established in a random access memory of a computer; B. a basic input-output system initializes a central processing unit, detects the hardware devices, judges the position of an operating system on a hard disk and stores the detecting results of the hardware devices into the data form of the random access memory; C. the basic input-output system copies the operating system into the random access memory; D. the operating system reads the data information of the hardware devices in the data form and is started directly. The present invention also provides a switching method of a multioperation system, which includes the following steps: a. establishing a data form for storing the data information and the switching information of the hardware devices; b. judging whether the operating system is stopped according to the switching information and the data information of the data form and a zone bit in an installed complementary metal oxide semiconductor, if true, switching to step c, else, finishing the process; c. starting the operating system by invoking the data information of a detecting hard disk in the data form by the basic input-output system. The starting time of the computer is shortened, and the conversion time of the multioperation system of the computer is saved.

Description

A kind of startup method of computer operating system
Technical field
The present invention relates to realize the multiple operation systems of computer technology, particularly realize the startup method of computer operating system.
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 a kind of startup method of computer operating system, and 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 startup method of computer operating system, 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 method of the invention further comprises after step D:
E. the operating system that has started receives the zone bit that set after the order of switching operating system sets in advance the shutoff operation system;
F. judge that this is masked as whether set, if the operating system that has started is then closed in this zone bit set, change step c over to, otherwise finish;
G. 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 step e is provided with in complementary metal oxide semiconductor (CMOS).
The described zone bit of step e is provided with in data form.
By such scheme as can be seen, because when computer operating system 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 operating system start-up course.
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.
2, the method for claim 1 is characterized in that this method further comprises after step D:
E. the operating system that has started receives the zone bit that set after the order of switching operating system sets in advance the shutoff operation system;
F. judge that this is masked as whether set, if the operating system that has started is then closed in this zone bit set, change step c over to, otherwise finish;
G. Basic Input or Output System (BIOS) reads the hardware device data message in the described data form, 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 e 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 e 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 CN1512337A (en) 2004-07-14
CN1262921C true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100383744C (en) * 2004-12-24 2008-04-23 联想(北京)有限公司 Method for switching multiple operation systems of computer
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
WO2012044546A2 (en) * 2010-10-01 2012-04-05 Imerj, Llc Auto-waking of a suspended os in a dockable system
CN103676937B (en) * 2013-12-10 2017-05-10 中联重科股份有限公司 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
CN1512337A (en) 2004-07-14

Similar Documents

Publication Publication Date Title
EP2784670B1 (en) Memory management method, memory management device and numa system
CN1269033C (en) Method and apparatus to power off and/or reboot logical partitions in data processing system
CN1286012C (en) Method for recovering and backing up information in hard disc of computer
CN1993676A (en) Method and apparatus for discovering hardware in a data processing system
US10783131B1 (en) Deduplicating patterned data in a storage system
CN1262921C (en) Method for computer starting and multiple operation system switching
CN101038551A (en) Method for implementing the start of Linux operation system in mobile hard disk
CN1716204A (en) Systems and methods for development of emulated devices in a virtual machine environment
CN101901149B (en) Apparatus, method and program for processing information
WO2014171618A1 (en) Storage system and method for processing writing data of storage system
CN1797351A (en) Method for switching multiple operation systems of computer
CN1825283A (en) Method for implementing hardware image starting optimizing of embedded operating system
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
JP2010086050A5 (en)
CN1818882A (en) Fault tolerant system and controller, access control method, and control program used in the fault tolerant system
JP2004528646A5 (en)
CN1920787A (en) Information processing apparatus, information processing apparatus control program, and information processing apparatus control method
CN1734430A (en) The method and apparatus of the effective data management of file
CN101075210A (en) Apparatus and method for partitioning hard disk without reboot
CN100352199C (en) Remote power-on functionality in a partitioned environment
CN101403966A (en) Method for implementing portable software
CN1317846C (en) Method of realizing internal external network physical partition and its device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060705

Termination date: 20201227