CN100426228C - 切换计算机启动顺序的系统及方法 - Google Patents
切换计算机启动顺序的系统及方法 Download PDFInfo
- Publication number
- CN100426228C CN100426228C CNB2005100347484A CN200510034748A CN100426228C CN 100426228 C CN100426228 C CN 100426228C CN B2005100347484 A CNB2005100347484 A CN B2005100347484A CN 200510034748 A CN200510034748 A CN 200510034748A CN 100426228 C CN100426228 C CN 100426228C
- Authority
- CN
- China
- Prior art keywords
- start device
- boot
- sequence
- target
- switching
- 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
Links
Images
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/4408—Boot device selection
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明提供一种切换计算机启动顺序的系统,包括一初始启动装置,及连接该初始启动装置的一目标启动装置。其中,该初始启动装置包括一启动顺序切换模块,该启动顺序切换模块包括:一引导程序读取子模块、一判断子模块及一跳转子模块。本发明还提供一种切换计算机启动顺序的方法。利用本发明所提供的切换计算机启动顺序的系统及方法,可以不需要修改CMOS的设置,方便快速的切换计算机的启动顺序,且适合所有的机种,提高量产计算机时测试的效率。
Description
【技术领域】
本发明涉及一种计算机启动的系统及方法,特别涉及一种计算机启动顺序切换的系统及方法。
【背景技术】
计算机启动的方式可以有很多种,一般是直接从硬盘启动,当需要时,可以通过制作启动软盘来启动计算机,也可以使用光盘启动计算机。在计算机的量产过程中,往往需要进行不同的测试,当某个或者某类测试完成后,需要更改计算机的启动顺序以便做其它测试。传统的更改计算机启动顺序的方法是通过更改CMOS的设置,而更改CMOS设置的方法一般有两种:一种是手动更改CMOS设置;另外一种是利用程序备份手动已经设置好的启动顺序的CMOS资料,在需要时将此资料写入CMOS资料区。
手动更改CMOS设置需要手工操作,不利于自动化生产;而备份CMOS资料需要针对不同的机器分别备份CMOS资料,且不同厂家的计算机记录CMOS的方法可能不同,恢复时也需要采用不同的方法。
因此,有必要提供一种切换计算机启动顺序的方法,可以在量产计算机进行测试时方便的切换计算机的启动顺序。
【发明内容】
本发明的较佳实施例提供一种切换计算机启动顺序的系统,该系统包括一初始启动装置,及连接该初始启动装置的一目标启动装置,所述初始启动装置及目标启动装置为不同的装置。其中,该初始启动装置包括一启动顺序切换模块,用于将计算机从初始启动装置启动后,切换到目标启动装置启动。所述启动顺序切换模块包括:一引导程序读取子模块,用于读取上述目标启动装置的引导程序到计算机内存一固定地址;一判断子模块,用于判断是否有上述引导程序的标志;及一跳转子模块,用于跳转到上述计算机内存固定地址执行目标启动装置的引导程序。
本发明的较佳实施例还提供一种切换计算机启动顺序的方法,该方法包括以下步骤:a.从初始启动装置启动计算机;b.读取目标启动装置的引导程序到计算机内存一固定地址;c.判断是否有上述引导程序的标志;d.若判断有上述引导程序的标志,则跳转到上述计算机内存固定地址执行上述目标启动装置的引导程序,并从上述目标启动装置启动计算机;e.若判断没有上述引导程序的标志,则显示启动失败。
利用本发明所提供的切换计算机启动顺序的系统及方法,可以不需要修改CMOS的设置,方便快速的切换计算机的启动顺序,且适合所有的机种,提高量产计算机时测试的效率。
【附图说明】
图1是本发明切换计算机启动顺序的系统架构图。
图2是本发明切换计算机启动顺序的方法流程图。
【具体实施方式】
如图1所示,是本发明较佳实施例切换计算机启动顺序的系统架构图。该系统包括一初始启动装置10,及连接该初始启动装置10的一目标启动装置20。其中,该初始启动装置10是计算机CMOS设置的第一启动装置,其可以是软盘、光盘及硬盘等装置的一种,计算机开机运行后,从该第一启动装置启动。上述初始启动装置10包括一启动顺序切换模块101,用于将计算机从初始启动装置10启动后,切换到目标启动装置20启动,该目标启动装置20可以是软盘、光盘及硬盘等装置的一种。上述初始启动装置10及目标启动装置20为不同的装置,既当上述初始启动装置10为软盘时,目标启动装置20就只能是硬盘或者光盘,依此类推。
上述启动顺序切换模块101包括:一引导程序读取子模块1011、一判断子模块1012及一跳转子模块1013。其中引导程序读取子模块1011用于读取上述目标启动装置20的引导程序到计算机内存一固定地址,针对不同的目标启动装置20采用不同的读取方法,如针对软盘或者硬盘可采用基本输入输出系统中断调用方法读取,即通过基本输入输出系统中断调用方法读取软盘或者硬盘第零扇区的引导程序到计算机内存一固定地址,上述计算机内存固定地址的段地址和偏移位置一般是:0000和7C00。判断子模块1012用于判断是否有上述引导程序的标志,即判断子模块1012通过判断读取标志第零扇区的最后两位元组是否是“AA55”。由于软盘、硬盘或者光盘可能已经损坏,那么第零扇区所包含的引导程序也可能已经损坏,导致读取的目标启动装置20的引导程序无效或者无法读取。如果判断读取标志第零扇区的最后两位元组是“AA55”,则读取的扇区为包含引导程序的第零扇区,如果判断不是,则读取的扇区不是包含引导程序的第零扇区。跳转子模块1013用于跳转到上述计算机内存固定地址执行上述目标启动装置20的引导程序,可采用一跳转指令,比如JMP0000:7C00。
如图2所示,是本发明较佳实施例切换计算机启动顺序的方法流程图。该方法包括以下步骤:从初始启动装置10启动计算机(步骤S21);读取目标启动装置20的引导程序到计算机内存一固定地址(步骤S22);判断是否有上述所读取的引导程序的标志(步骤S23);若判断有,则跳转到上述计算机内存固定地址执行上述目标启动装置20的引导程序(步骤S24);从上述目标启动装置20启动计算机(步骤S25);若判断上述引导程序的标志为没有,则显示启动失败(步骤S26)。
Claims (6)
1. 一种切换计算机启动顺序的系统,包括一初始启动装置,及连接该初始启动装置的一目标启动装置,所述初始启动装置及目标启动装置为不同的装置,其特征在于,该初始启动装置包括一启动顺序切换模块,用于将计算机从初始启动装置启动后,切换到目标启动装置启动;该启动顺序切换模块包括:
一引导程序读取子模块,用于读取上述目标启动装置的引导程序到计算机内存一固定地址;
一判断子模块,用于判断是否有上述引导程序的标志;及
一跳转子模块,用于跳转到上述计算机内存固定地址执行上述目标启动装置的引导程序。
2. 如权利要求1所述的切换计算机启动顺序的系统,其特征在于,所述初始启动装置包括软盘、光盘或硬盘。
3. 如权利要求1所述的切换计算机启动顺序的系统,其特征在于,所述目标启动装置包括软盘、光盘或硬盘。
4. 如权利要求1所述的切换计算机启动顺序的系统,其特征在于,所述初始启动装置及目标启动装置为不同的装置。
5. 一种切换计算机启动顺序的方法,其特征在于,该方法包括以下步骤:
从初始启动装置启动计算机;
读取目标启动装置的引导程序到计算机内存一固定地址;
判断是否有上述引导程序的标志;
若判断有,则跳转到上述计算机内存固定地址执行目标启动装置的引导程序;及
从上述目标启动装置启动计算机。
6. 如权利要求5所述的切换计算机启动顺序的方法,其特征在于,该方法还包括步骤:
若没有上述引导程序的标志,则显示启动失败。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100347484A CN100426228C (zh) | 2005-05-20 | 2005-05-20 | 切换计算机启动顺序的系统及方法 |
US11/308,455 US20060265581A1 (en) | 2005-05-20 | 2006-03-28 | Method for switching booting devices of a computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100347484A CN100426228C (zh) | 2005-05-20 | 2005-05-20 | 切换计算机启动顺序的系统及方法 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1866208A CN1866208A (zh) | 2006-11-22 |
CN100426228C true CN100426228C (zh) | 2008-10-15 |
Family
ID=37425236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100347484A Expired - Fee Related CN100426228C (zh) | 2005-05-20 | 2005-05-20 | 切换计算机启动顺序的系统及方法 |
Country Status (2)
Country | Link |
---|---|
US (1) | US20060265581A1 (zh) |
CN (1) | CN100426228C (zh) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FI114416B (fi) * | 2001-06-15 | 2004-10-15 | Nokia Corp | Menetelmä elektroniikkalaitteen varmistamiseksi, varmistusjärjestelmä ja elektroniikkalaite |
TW200945192A (en) * | 2008-04-28 | 2009-11-01 | Asustek Comp Inc | Motherboard and method for recovering BIOS thereof and for booting computer |
CN101714092B (zh) * | 2008-10-08 | 2013-03-13 | 英业达集团(天津)电子技术有限公司 | 一种服务器启动顺序的控制方法 |
CN101826020B (zh) * | 2009-03-06 | 2013-05-29 | 英业达股份有限公司 | 电脑启动设备的启动顺序的读取方法 |
CN102455922A (zh) * | 2010-10-28 | 2012-05-16 | 鸿富锦精密工业(深圳)有限公司 | 计算机启动顺序设置系统及方法 |
CN102479095A (zh) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | 服务器的测试方法 |
CN102684777A (zh) * | 2012-06-14 | 2012-09-19 | 青岛海信宽带多媒体技术有限公司 | 光模块及其初始化方法和装置 |
JP2014089497A (ja) * | 2012-10-29 | 2014-05-15 | Mitsubishi Electric Corp | 情報処理装置 |
CN104866329B (zh) * | 2014-02-20 | 2018-07-06 | 联想(北京)有限公司 | 一种启动方法及电子设备 |
CN104932922A (zh) * | 2015-06-18 | 2015-09-23 | 浪潮电子信息产业股份有限公司 | 一种调整sas卡硬盘启动顺序的方法及装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1264085A (zh) * | 1999-01-25 | 2000-08-23 | 戴尔美国公司 | 用于计算机系统启动操作的系统及方法 |
US20010047472A1 (en) * | 2000-02-04 | 2001-11-29 | Huntington Keith J. | System and method for altering an operating system start-up sequence prior to operating system loading |
US20030065915A1 (en) * | 2001-10-02 | 2003-04-03 | Chia-Hsing Yu | Method for initializing computer system |
CN1508715A (zh) * | 2002-12-19 | 2004-06-30 | 联想(北京)有限公司 | 自动改变计算机启动顺序的方法 |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5418918A (en) * | 1993-09-10 | 1995-05-23 | Compaq Computer Corp. | Scanning initial CD-ROM sectors for a boot record and executing said boot record to load and execute floppy disk image corresponding to the existing floppy drive |
US5694600A (en) * | 1996-02-09 | 1997-12-02 | Iomega Corporation | Methods and apparatus for booting a computer having a removable media disk drive |
US5987605A (en) * | 1998-02-28 | 1999-11-16 | Hewlett-Packard Co. | Methods and apparatus for dual-boot memory selection, update, and recovery in a programmable device |
US6308264B1 (en) * | 1998-09-30 | 2001-10-23 | Phoenix Technologies Ltd. | Dual use master boot record |
US6421777B1 (en) * | 1999-04-26 | 2002-07-16 | International Business Machines Corporation | Method and apparatus for managing boot images in a distributed data processing system |
JP3330569B2 (ja) * | 1999-09-28 | 2002-09-30 | インターナショナル・ビジネス・マシーンズ・コーポレーション | コンピュータの制御方法、コンピュータ及び記録媒体 |
US7930531B2 (en) * | 2000-01-06 | 2011-04-19 | Super Talent Electronics, Inc. | Multi-partition USB device that re-boots a PC to an alternate operating system for virus recovery |
US6721883B1 (en) * | 2000-01-25 | 2004-04-13 | Dell Usa, L.P. | System and method for managing the boot order of a computer system |
US6920553B1 (en) * | 2000-04-28 | 2005-07-19 | Intel Corporation | Method and apparatus for reading initial boot instructions from a bootable device connected to the USB port of a computer system |
US6842856B2 (en) * | 2001-05-11 | 2005-01-11 | Wind River Systems, Inc. | System and method for dynamic management of a startup sequence |
US7127602B1 (en) * | 2003-02-21 | 2006-10-24 | Cisco Technology, Inc. | iSCSI computer boot system and method |
US7089414B2 (en) * | 2003-04-10 | 2006-08-08 | International Business Machines Corporation | Method and apparatus for updating a microcode image in a memory |
US7073013B2 (en) * | 2003-07-03 | 2006-07-04 | H-Systems Flash Disk Pioneers Ltd. | Mass storage device with boot code |
US7293166B2 (en) * | 2004-03-05 | 2007-11-06 | Hewlett-Packard Development Company, L.P. | Method of indicating a format of accessing an operating system contained on a USB memory device |
US20050262334A1 (en) * | 2004-05-20 | 2005-11-24 | James Scudder | Computer restoration apparatus |
US7631173B2 (en) * | 2005-03-09 | 2009-12-08 | Wyse Technology Inc. | Method and system for performing pre-boot operations from an external memory including memory address and geometry |
JP4802527B2 (ja) * | 2005-03-18 | 2011-10-26 | 株式会社日立製作所 | 計算機システム |
-
2005
- 2005-05-20 CN CNB2005100347484A patent/CN100426228C/zh not_active Expired - Fee Related
-
2006
- 2006-03-28 US US11/308,455 patent/US20060265581A1/en not_active Abandoned
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1264085A (zh) * | 1999-01-25 | 2000-08-23 | 戴尔美国公司 | 用于计算机系统启动操作的系统及方法 |
US20010047472A1 (en) * | 2000-02-04 | 2001-11-29 | Huntington Keith J. | System and method for altering an operating system start-up sequence prior to operating system loading |
CN1398371A (zh) * | 2000-02-04 | 2003-02-19 | 印西德软件公司 | 在操作系统装载之前更改操作系统启动顺序的系统和方法 |
US20030065915A1 (en) * | 2001-10-02 | 2003-04-03 | Chia-Hsing Yu | Method for initializing computer system |
CN1508715A (zh) * | 2002-12-19 | 2004-06-30 | 联想(北京)有限公司 | 自动改变计算机启动顺序的方法 |
Also Published As
Publication number | Publication date |
---|---|
US20060265581A1 (en) | 2006-11-23 |
CN1866208A (zh) | 2006-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100426228C (zh) | 切换计算机启动顺序的系统及方法 | |
TWI382346B (zh) | 保護雙基本輸出入系統程式之電腦系統及其控制方法 | |
CN100359434C (zh) | 信息处理设备及其启动方法 | |
CN108304282B (zh) | 一种双bios的控制方法及相关装置 | |
CN101634960A (zh) | 一种修改bios参数及重新生成校验和的方法 | |
TWI710952B (zh) | 韌體更新方法及電腦系統 | |
CN101373451B (zh) | 保护双基本输出入系统程序的计算机系统及其控制方法 | |
US20110055540A1 (en) | Pre-Boot Loader for Reducing System Boot Time | |
US7996667B2 (en) | System with at least two BIOS memories for starting the system | |
US20100106956A1 (en) | Bios switching system and a method thereof | |
JP2007035010A (ja) | 高速データアクセスメモリよりオペレーションシステムコアプログラムをロードしてコンピュータプログラムをインスタント起動実行する方法 | |
TWI783590B (zh) | 晶片驗證系統及其驗證方法 | |
CN101593120A (zh) | 带外升级方法和系统 | |
TW584800B (en) | Method, computer and peripheral/expansion bus bridge for booting up with debug system | |
US9348603B2 (en) | Electronic apparatus and booting method | |
CN102043638A (zh) | 计算机系统以及计算机启动设定方法 | |
CN101944072A (zh) | 一种终端设备的启动方式配置方法及设备 | |
CN101281485B (zh) | 无需硬盘的计算机测试方法 | |
CN100410893C (zh) | 自行修复嵌入式设备的主控应用程序的方法及设备 | |
WO2022199622A1 (zh) | 一种电子设备的启动程序的运行方法和电子设备 | |
CN100570557C (zh) | 提供多种开机程序的计算机系统与开机方法 | |
TW201734800A (zh) | 設定磁碟陣列的方法 | |
US20140122024A1 (en) | Booting verification method of computer and electronic device | |
US20060218338A1 (en) | Method for preventing software from being wrongly burned | |
CN101620540A (zh) | 安装电脑系统的方法 |
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: 20081015 Termination date: 20150520 |
|
EXPY | Termination of patent right or utility model |