TWI316681B - Method for switching operation system by hotkey - Google Patents

Method for switching operation system by hotkey Download PDF

Info

Publication number
TWI316681B
TWI316681B TW94111162A TW94111162A TWI316681B TW I316681 B TWI316681 B TW I316681B TW 94111162 A TW94111162 A TW 94111162A TW 94111162 A TW94111162 A TW 94111162A TW I316681 B TWI316681 B TW I316681B
Authority
TW
Taiwan
Prior art keywords
operating system
hotkey
self
test
record
Prior art date
Application number
TW94111162A
Other languages
Chinese (zh)
Other versions
TW200636578A (en
Inventor
Chang-Wen Fu
Dai-Hua Sun
Zhi-Jun Xiang
Original Assignee
Hon Hai Prec Ind Co 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW94111162A priority Critical patent/TWI316681B/en
Publication of TW200636578A publication Critical patent/TW200636578A/en
Application granted granted Critical
Publication of TWI316681B publication Critical patent/TWI316681B/en

Links

Description

1316681 九、發明說明: 【發明所屬之技術領域】 μ ί n飾綠,尤躲及-麵崎_^輸 ^统^OS ’ Β挪h_tputSystem)之修改,實現以熱 中進行快速切換作業系統之方法。 夕爾系糸.、死 【先前技術】 射某一作業系統被損壞,或者,用戶需要從—作業系統切換至另一個 =糸摘喃’通常需要運行一安裝於電腦内的應用程式,藉由該程式去修改 «糸統之_織,或者切換至另_作餘統;也可藉由外娜 壞之作業系統進行恢復,或者載入另一作業系統。如細年丄月2開 國^第腦㈣’名稱爲“可切換作業系統喊腦系統”的發明專利,= 置腦以及一擴充裝置:搞帶型電腦包含有一顯示裝 裝置,當攜帶型電腦未與擴充裝置相連接時,攜帶 It ===瓣型電腦連接於擴充裝置時,處 的第二作業系統載入細亍第二作業系統,以及停 然而,藉由應用程式修改或由外部擴充裝置進行作業系統切換,多有不便。 所以需要提供一可利用熱鍵切換作業系統之方法,可藉由在臟中寫入命令, 用戶只需按下-自設之熱鍵,便可使BI0S自動修改主啟動記錄(MBR, m^rbootrecord) ^ 糸統。 【發明内容】 以上内容’有必要提供—種在·s進行開機自檢的過程中,可利用熱 鍵切換作業系統之方法,實現對作業系統之快速切換,此外,還可用於 系統之製作及啓動被破壞系統之備份系統。 、又里7丨可 本發明之較佳實施例提供-種利職鍵切換作業系統之方法,盆可辞史 之熱鍵快速切換—作㈣統。該総包括町步驟:MM進行開日機自檢 1316681 (P〇ST) ’顯示各種用戶所設置或系統内定熱鍵之提示資訊;BIOS利用Intl9 (一中斷命令)判斷用戶是否按下預設之熱鍵;若確認已按下一預設之熱鍵,系 統將檢測是否連接至硬碟驅動器;若未連接至硬碟驅動器,則結束本流程;若確 認已連接至硬碟驅動器,則藉由已寫入BI〇s中之命令,使BI〇s自動修改主啟 動記錄中之硬碟分區表’即修改該熱鍵對應之作業系統所在之分區參數;修改完 畢後,返回BIOS自檢;BI0S在執行完自己固有之程式以後將載入主啟動記錄; 後之參數’硬碟主啟動引導程式檢索到用戶按下之熱鍵所對應之作業系 統’並啓動該作業系統。若用戶所按下^篇非預設之熱鍵,則進行BIOS自檢, 並啓動内疋之作業系統。此實施方法還可用於啓動被破壞的作業系統之備份系 統。 相車父習知技術,所述之利用熱鍵切換作業系統之方法,係在BI0S進行開機 自檢的過程中,可藉由預設之熱鍵,實現對作業系統之快速切換,並且本方法還 可用於多重引導系統之製作及啓動被破壞系統之備份系統。 【實施方式】 參閱第一圖所示,係本發明較佳實施例中電腦之硬碟結構示意圖。電腦中一 般包括一基本輸入輸出系統(BIOS ’ BasicInput/Output System)、硬碟1〇及記憶 體等。其中,硬碟1〇由很多碟片(platter)組成,每個碟片的每個面都有一個讀寫 磁頭(Heads),磁頭從〇、χ、2開始依序編號;每個碟片的半徑均爲固定值r 的同心圓在邏輯上形成了一個以電機主軸爲軸的柱面(Cylinders),從外至裏以〇、 1、2開始編號;每個碟片上的每個磁軌又被劃分爲幾十個磁區(Sect〇r),通常的 容量為512位元組,按照一定規則從開始編號。如此即形成柱面(Cylinders) X磁頭(Heads) X磁區(Sector)個磁區。這三個參數即為硬碟之物理參數。 其中,主啟動記錄11 (MBR,Master Boot Record)位於整個硬碟1〇中之第 零個柱面、第零個磁頭上之第一個磁區的位置,其主要存放硬碟主啟動引導程式 111和硬碟分區表(DPT,DiskPartition Table) 110。當電腦開機後,BIOS在執 行完自己固有之程式以後會將系統之控制權交由主啟動記錄η來執行,存在於 主啟動記錄11中之硬碟主啟動引導程式lu就會檢索硬碟分區中之開機分割 區’從而進行開機。硬碟分區表110用於記錄硬碟之分區資訊。 第一磁盤分割區12及第二磁盤分割區13爲電腦系統内之開機分割區,其分 1316681 ' 別具有第一作業系統120及第二作業系統130。第一作業系統120及第二作業系 統130爲用戶根據個人喜好所安裝的各類型作業系統,如Microsoft公司之各類 windows作業系統等,或者爲其中之一作業系統之備份。除第一磁盤分割區12 及第二^盤分割區13以外’在電腦系統内之開機分割區中還可設置若干的磁盤 分割區及存儲相應之若干作業系統,並且,可藉由修改主啟動記錄U令其中之 一分割區爲隱藏分區,便於保護該分區内儲存之作業系統。其中,每一作業系統 所在之分區都可用柱面(Cylinders) X磁頭(Heads) X磁區(Sector)這三個參數 - 進行表示,而這些資料則存儲於硬碟分區表U〇中。1316681 IX. Description of invention: [Technical field of invention] μ ί n green, especially hiding - face _ ^ ^ ^ ^ ^ ^ ^ Β h h h h OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS OS .夕尔糸糸,死 [previous technique] Shooting an operating system is damaged, or the user needs to switch from the operating system to another = 糸 喃 ' ' usually need to run an application installed in the computer, by The program can be modified to change the system, or switch to another system; it can also be restored by the foreign system or loaded into another operating system. Such as the fine year of the next month 2 Kaiguo ^ the brain (four) 'name of the "switchable operating system shouting brain system" invention patent, = brain and an expansion device: the ribbon type computer contains a display device, when the portable computer is not When connected to the expansion device, when the It === flap type computer is connected to the expansion device, the second operating system is loaded into the second operating system, and is stopped, by the application modification or by the external expansion device. It is inconvenient to switch the operating system. Therefore, it is necessary to provide a method for switching the operating system by using a hot key. By writing a command in the dirty, the user can press the self-set hot key to enable the BI0S to automatically modify the main boot record (MBR, m^ Rbootrecord) ^ 糸 system. [Summary of the Invention] The above content is necessary to provide a method for switching the operating system by using a hot key during the power-on self-test of the s, to achieve fast switching of the operating system, and also for the production of the system and Start the backup system of the compromised system. The preferred embodiment of the present invention provides a method for switching the operating system of the job key, and the hot key of the history can be quickly switched. The 総 includes the steps of the town: MM performs the daily self-test 1316681 (P〇ST) 'displays the prompt information of various user settings or system default hot keys; the BIOS uses Intl9 (an interrupt command) to determine whether the user presses the preset Hotkey; if it is confirmed that a preset hotkey has been pressed, the system will detect whether it is connected to the hard disk drive; if it is not connected to the hard disk drive, the process ends; if it is confirmed that it is connected to the hard disk drive, The command in BI〇s has been written, so that BI〇s automatically modifies the hard disk partition table in the main boot record', that is, the partition parameter of the operating system corresponding to the hotkey is modified; after the modification, the BIOS self-test is returned; BI0S The master boot record will be loaded after executing its own program; the parameter 'hard disk master boot bootloader retrieves the operating system corresponding to the hotkey pressed by the user' and starts the operating system. If the user presses the non-preset hotkey, the BIOS performs a self-test and starts the internal operation system. This implementation method can also be used to initiate a backup system for a compromised operating system. According to the conventional technology of the parent vehicle, the method for switching the operating system by using the hot key is to realize fast switching of the operating system by using a preset hot key during the power-on self-test of the BI0S, and the method It can also be used in the production of multi-boot systems and to boot backup systems for damaged systems. [Embodiment] Referring to the first figure, a schematic diagram of a hard disk structure of a computer in a preferred embodiment of the present invention is shown. The computer generally includes a basic input/output system (BIOS ' BasicInput/Output System), hard disk 1 and memory. The hard disk 1 is composed of a plurality of platters, each of which has a read/write head (Heads), and the heads are sequentially numbered from 〇, χ, 2; each disc Concentric circles with a fixed radius r form a cylinder (Cylinders) with the motor spindle as the axis, starting from the outside to the inside with 〇, 1, 2; each track on each disc It is divided into dozens of magnetic regions (Sect〇r), and the usual capacity is 512 bytes, which are numbered starting from according to certain rules. Thus, the cylinders X heads are formed. These three parameters are the physical parameters of the hard disk. The main boot record (MBR, Master Boot Record) is located at the zeroth cylinder of the entire hard disk and the first magnetic region of the zeroth magnetic head, and mainly stores the hard disk master booting program. 111 and Disk Partition Table (DPT) 110. When the computer is powered on, the BIOS will control the system to the master boot record η after executing its own program. The hard disk master boot program lu stored in the master boot record 11 will retrieve the hard disk partition. In the boot partition 'in order to boot. The hard disk partition table 110 is used to record the partition information of the hard disk. The first disk partition 12 and the second disk partition 13 are boot partitions in the computer system, and have a first operating system 120 and a second operating system 130. The first operating system 120 and the second operating system 130 are various types of operating systems installed by the user according to personal preferences, such as various types of Windows operating systems of Microsoft Corporation, or a backup of one of the operating systems. In addition to the first disk partition 12 and the second disk partition 13, a plurality of disk partitions may be set in the boot partition in the computer system and a corresponding operating system may be stored, and the master boot may be modified. Recording U makes one of the partitions a hidden partition, which is convenient for protecting the operating system stored in the partition. The partition in which each operating system is located can be represented by three parameters: Cylinders X Heads X Sector - and these data are stored in the hard disk partition table U〇.

參卿三®解,係本個較佳實_之熱繳置流賴。首先,開啓電腦 _ (步驟S1〇),進入BI0S功能設置表(步驟S11)。用戶可根據個人習慣,在BI0S 功此设置表中設置可啓動各作業系統之相應熱鍵,若不另行設置,將以系統^ 預設值爲準(步驟S12)。儲存對熱鍵之設置(步驟S13)。退出BI〇s功能設置 表(步驟sw)。重新啓動電腦,以實現之前所設置之功能(步驟si5)。 '參閱第三圖所示,係本發明較佳實施例利用熱鍵切換作業系統之方法具體的 實施流糊。首先,開機後,臟進行開機自檢(p〇ST)(步驟s2())。顯示各 種用戶所設置或系統内定熱鍵之提示資訊,如F1熱鍵啓動胸_邓系統等 j步驟S21)。BIOS利用Intl9 (-中斷命令)判斷用戶是否按下預設之熱鍵(步Shen Qing San® solution is the best of the best. First, the computer _ is turned on (step S1〇), and the BI0S function setting table is entered (step S11). According to personal habits, the user can set the corresponding hotkeys of each operating system in the BI0S function setting table. If not set, the system default value will be used (step S12). The setting of the hot key is stored (step S13). Exit the BI〇s function settings table (step sw). Restart the computer to implement the previously set function (step si5). Referring to the third embodiment, a preferred embodiment of the present invention utilizes a hotkey switching operation system to specifically implement a flow paste. First, after booting up, the dirty boot self-test (p〇ST) (step s2()). Display prompt information of various user settings or system default hotkeys, such as F1 hotkey start chest_Deng system, etc. j step S21). The BIOS uses Intl9 (-interrupt command) to determine whether the user presses the preset hotkey (step

^'0、利峨tf果尔沉v少鄉527)。 若步驟S22中確湖戶所按^'0, Lie Tf Guoer Shen v Shaoxiang 527). If it is confirmed in step S22, the lake households press

8 1316681 統。 本發明雖以較佳實施例揭露如上,然其並非用以限定本發明。任何熟悉此項 技藝者,在不脫離本發明之精神和範圍内,當可做更動與潤飾,因此本發明之保 護範圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 第一圖係本發明較佳實施例中電腦之硬碟結構示意圖。 第二圖係本發明較佳實施例之熱鍵設置流程圖。 第三圖係本發明較佳實施例利用熱鍵切換作業系統之方法具體的實施流程 圖。 【主要元件符號說明】 10 11 110 111 12 120 13 130 石更碟 主啟動記錄 硬碟分區表 硬碟主啟動5丨導程式 第一磁盤分割區 第一作業系統 第二磁盤分割區 第二作業系統8 1316681. The present invention has been described above in terms of preferred embodiments, and is not intended to limit the invention. Anyone skilled in the art will be able to make changes and refinements without departing from the spirit and scope of the invention, and the scope of the invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS The first figure is a schematic diagram of a hard disk structure of a computer in a preferred embodiment of the present invention. The second drawing is a flow chart of the hot key setting of the preferred embodiment of the present invention. The third figure is a detailed implementation flow diagram of a method for switching an operating system using a hot key in accordance with a preferred embodiment of the present invention. [Main component symbol description] 10 11 110 111 12 120 13 130 Stone discs Main boot record Hard disk partition table Hard disk main boot 5 boot program First disk partition First operating system Second disk partition Second operating system

Claims (1)

1316681 十、申請專利範圍: 1. 一種利用熱鍵切換作業系統之方法,該方法包括如下步驟: 開機後,入輸出系統(BI0S,Basic邮⑽ 顯示各_戶所設置赫統岐無之提示資訊; )進仃開機自檢; 判斷用戶是否按下預設之熱鍵; ^確認已按下-預設之熱鍵,系統將檢測是否連接至硬碟驅動器; 接至硬碟驅動器,使刪自動修改主啟動記錄中切碟分_ . 修改元畢後’返回BIOS自檢; L表, 載入主啟動記錄’將系統之控制權交由級動記錄來執行;及 之參數’硬駐啟動引導程式檢索糊戶按下之齡 系統,並啓動該作業系統。 之作業 2 ^申=利範圍第1項所述之利賴鍵切換鍋統之方法,其中該判斷用 戶疋否按下預設之熱鍵的步驟還包括: 斷用 右用戶按下的並非預設之熱鍵,則BIOS進行自檢;及 載入内定之作業系統並啓動該作業系統。 101316681 X. Patent application scope: 1. A method for switching the operating system by using a hot key, the method includes the following steps: After the power is turned on, the input and output system (BI0S, Basic mail (10) displays the prompt information of each of the households. ;) enter the power-on self-test; determine whether the user presses the preset hotkey; ^ confirm that the preset hotkey is pressed, the system will detect whether it is connected to the hard drive; connect to the hard drive, make the automatic Modify the main boot record in the cut disk _. After the modification, the 'return to the BIOS self-test; L table, load the main start record' to transfer the control of the system to the level record to execute; and the parameter 'hard station start boot The program retrieves the system of the age of the paste and starts the operating system. The operation 2 2 applies the method according to the item 1 of the benefit classification switch, wherein the step of determining whether the user presses the preset hot key further comprises: With the hotkey set, the BIOS performs a self-test; and loads the default operating system and starts the operating system. 10
TW94111162A 2005-04-08 2005-04-08 Method for switching operation system by hotkey TWI316681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW94111162A TWI316681B (en) 2005-04-08 2005-04-08 Method for switching operation system by hotkey

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW94111162A TWI316681B (en) 2005-04-08 2005-04-08 Method for switching operation system by hotkey

Publications (2)

Publication Number Publication Date
TW200636578A TW200636578A (en) 2006-10-16
TWI316681B true TWI316681B (en) 2009-11-01

Family

ID=45073275

Family Applications (1)

Application Number Title Priority Date Filing Date
TW94111162A TWI316681B (en) 2005-04-08 2005-04-08 Method for switching operation system by hotkey

Country Status (1)

Country Link
TW (1) TWI316681B (en)

Also Published As

Publication number Publication date
TW200636578A (en) 2006-10-16

Similar Documents

Publication Publication Date Title
US6963951B2 (en) Partition recovery method
US7814306B2 (en) Information device, storage medium and initial state restoration method
KR101602360B1 (en) System fast booting apparatus and method
JP2006236193A (en) Starting program execution method, device, storage medium and program
JP2009533770A (en) Direct boot configuration using NAND flash memory
JPH10154101A (en) Data storage system and cache controlling method applying to the system
JP2006331378A (en) Flash memory storing system
US20030182546A1 (en) Information device, storage medium, and system activation method
US20080091935A1 (en) Hard disk drive with disk embedded dos boot image and firmware download method
US20090087168A1 (en) Method and apparatus for reproducing media contents using non-volatile storage medium
WO2005064454A1 (en) Storage device and information processing system
WO2006122474A1 (en) A circuit and method of enhancing the storage lifetime
US20040044886A1 (en) Partition recovery method
JP2002099502A (en) Computer system and control method for data transfer
TWI475485B (en) Firmware flashing method and related computer system
US8291206B2 (en) Method for booting computer system
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
CN101788913B (en) Computer system with double operating devices and monitoring method thereof
TWI559227B (en) Computer system having two built-in operating devices that can be dynamically powered on or powered off
TWI316681B (en) Method for switching operation system by hotkey
JP2004213365A (en) Hard disk drive unit, data recording device, backup device, restore device, backup method, and computer program executable in computer for making computer function as back up device
EP2530602A2 (en) Method, system and computer-readable medium for switching access mode of hard drive
KR100692958B1 (en) Portable solid state drive with emulator
US20130311718A1 (en) System and method of making golden master
CN101176075A (en) Circuit and method for improving service lifetime of memory device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees