CN1145102C - Hard disk active partition switching method - Google Patents
Hard disk active partition switching method Download PDFInfo
- Publication number
- CN1145102C CN1145102C CNB001009362A CN00100936A CN1145102C CN 1145102 C CN1145102 C CN 1145102C CN B001009362 A CNB001009362 A CN B001009362A CN 00100936 A CN00100936 A CN 00100936A CN 1145102 C CN1145102 C CN 1145102C
- Authority
- CN
- China
- Prior art keywords
- subregion
- hard disk
- boot record
- operating system
- initiatively
- 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
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000005192 partition Methods 0.000 title abstract description 11
- 238000012856 packing Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000009183 running Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
A switching method for hard disk active partition. First, a main boot record is loaded from a hard disk to a system memory, wherein the hard disk is divided into a plurality of partitions, and each partition is installed with an operating system. Then, one of the partitions is selected as an active partition. The master boot record in system memory is then updated according to the selected active partition. And then, after the updated master boot record is written back to the disk, loading the master boot record from the active partition into the operating system according to the updated master boot record.
Description
Technical field
The present invention is relevant for computer technology, particularly relevant for a kind of hard disk changing method of subregion (activepartition) initiatively.
Background technology
In the production of computer system process; needs according to test; is several subregions (partition) through regular meeting with hard disk partition, and installs respectively such as different operating systems (Operating System) such as Chinese edition Windows 95 or English edition Windows, OS2.If desire to switch to another kind of operating system when starting the operating system (booting OS) by a kind of operating system, previous methods must be used plug-in operating system to load program (OS loader) or utilize execute file FDISK.exe, after choosing the active subregion, start again again.But this previous methods is for the tester, and is very inconvenient.
Summary of the invention
Therefore, purpose of the present invention is to provide the initiatively changing method of subregion of a kind of hard disk, is to solve the problem that previous methods brings inconvenience to the tester with form of firmware.
For achieving the above object, the present invention by provide a kind of hard disk that is undertaken by the BIOS of form of firmware initiatively the changing method of subregion finish.According to the changing method of this hard disk active subregion, at first, pack a Main Boot Record (master boot record) into to a system storage from a hard disk, wherein, hard disk is divided into a plurality of subregions already, and each subregion all is equipped with an operating system.Then, one of select in the subregion as a subregion initiatively.Then, according to selected active subregion, the Main Boot Record in the update system storer.Then, the Main Boot Record after upgrading write back disk after, according to the Main Boot Record after upgrading from subregion loading of operating system initiatively.
Therefore, changing method according to hard disk active subregion of the present invention, be that BIOS with form of firmware (firmware-base) carries out, so when the tester desires to switch to another operating system by an operating system, do not need to save operational inconvenience with plug-in operating system load program (OS loader) or execute file FDISK.exe.
Description of drawings
For above-mentioned and other purposes of the present invention, characteristic and advantage can be become apparent, a preferred embodiment cited below particularly, and conjunction with figs. elaborate.
Fig. 1 is the process flow diagram that shows the loading of operating system according to the present invention; And
Fig. 2 is the schematic block diagram of a conventional computer system configuration.
Wherein:
20~central processing unit; 21~regional bus; 22~system storage; 23~core logic circuit; 24~system bus; 25~input/output interface; 26A~floppy drive; 26B~Winchester disk drive; 27~input media; 28~display; And, 29~nonvolatile memory.
Embodiment
Embodiment:
Please refer to Fig. 2, be depicted as the configuration schematic block diagram of a conventional computer system.Among Fig. 2, label 20 is represented a central processing unit (CPU), is responsible for the control operation of whole computer system.This central processing unit 20 carries out data transmission via a regional bus 21 and 23 of a system storage (being made up of dynamic RAM) 22 and one core logic circuits.This core logic circuit 23 is commonly referred to as north bridge (north bridge) wafer under socket-7 or slot-1 configuration.And core logic circuit 23 is via a system bus 24 and input/output interface card 25, and connects a floppy drive 26A, a Winchester disk drive 26B and input medias (such as Genius mouse, keyboard etc.) 27 with input/output interface card 25.Among Fig. 2, be that a pci bus, an isa bus and a PCI-ISA bridge are represented with system bus 24 simply.Moreover label 28 is represented a display, and this display 28 is coupled to core logic circuit 23 via system bus 24, shows according to the video data that stores up in the video RAM (not shown).
In computer system, can define the executable running of computer and how carry out these runnings with one group of built-in firmware (firmware) routine, this firmware routine is to be stored in the nonvolatile memory (for example ROM (read-only memory) or flash memory etc.) 29, is commonly referred to as basic input/output (hereinafter being called for short with BIOS).
When computer system boot-strap, BIOS can carry out start selftest (Power On Self Test is called for short with POST usually).At this moment, BIOS can do one relatively with result and the interior every data setting that stores up of CMOS memory (not shown) tested, represents that then system is normal if conform to, and square loading of operating system (OS) carries out operations for the user.If the storage data are not inconsistent in test result and the CMOS memory, then the user just must enter the setting program of BIOS, revises the content of related data, and write back store in the CMOS memory after, restart computer system again, can operate for the user by loading of operating system.
According to the present invention, be after BIOS carries out the start selftest, show that all partition informations give the user in the present hard disk, select one of them as the active subregion through the user, then, according to user's selection, by computer system change boot sector (boot sector), the required operating system of packing into of starting shooting.
Please refer to the 1st figure, be depicted as the process flow diagram of loading of operating system according to the present invention.At first, after step 1 is carried out the start selftest, carry out step 2, judge whether it is by floppy drive 26A loading of operating system, if then carry out step 3, from floppy drive 26A through input/output interface 25, system bus 24, core logic circuit 23, regional bus 21 etc., boot sector pack into to place, the 07C0:0 address of system storage 22, then, transmit control (CS:IP) in step 4 and locate to the 07C0:0 address.
If know in step 2 and non-ly then carry out step 5 by floppy drive 26A loading of operating system, judge whether it is by Winchester disk drive 26B loading of operating system, if not, then carry out step 6, send error message.
Need be if know by Winchester disk drive 26B loading of operating system in step 5, then carry out step 7, through input/output interface 25, system bus 24, core logic circuit 23, regional bus 21 etc., the Main Boot Record of packing into is to the place, 07C0:0 address of system storage 22 from Winchester disk drive 26B.Then, carry out step 8, on display 28, demonstrates fdisk information, and in step 9 by the user via input media 27, select one of them as the active subregion.Then, in step 10 is selected Main Boot Record in the update system storer 22 according to the user after, the Main Boot Record of upgrading is write back Winchester disk drive 26B place in step 11.Then, carry out step 4, transmit control (CS:IP), finish the initiatively changing method of subregion of hard disk of the present invention to place, 07C0:0 address.
Though the present invention has done announcement as mentioned above with preferred embodiment; but this embodiment is not in order to limit the present invention; any those skilled in the art; do not break away from the spirit and scope of the present invention; when can doing many changes and modification, so protection scope of the present invention should be as the criterion by attached later on claims restricted portion.
Claims (4)
1. a hard disk that is undertaken by the BIOS of the form of firmware changing method of subregion initiatively is characterized in that, comprises the following steps:
(a) from hard disk Main Boot Record to a system storage of packing into, wherein, this hard disk is divided into a plurality of subregions already, and each described subregion all is equipped with an operating system;
(b) one of select in the described subregion as a subregion initiatively;
(c), upgrade the described Main Boot Record in this system storage according to selected described active subregion;
(d) the described Main Boot Record after will upgrading writes back described disk; And
(e) according to the described Main Boot Record after upgrading from the described active subregion described operating system of packing into.
2. hard disk as claimed in claim 1 is the changing method of subregion initiatively, it is characterized in that, Main Boot Record described in the step (a) is the place, 07C0:0 address that is loaded to described system storage.
3. hard disk as claimed in claim 1 is the changing method of subregion initiatively, it is characterized in that, step (b) is to select described active subregion with user's interface for a user.
4. hard disk as claimed in claim 1 is the changing method of subregion initiatively, it is characterized in that, step (e) is to transmit the place, 07C0:0 address that is controlled to described system storage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB001009362A CN1145102C (en) | 2000-01-07 | 2000-01-07 | Hard disk active partition switching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB001009362A CN1145102C (en) | 2000-01-07 | 2000-01-07 | Hard disk active partition switching method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1304091A CN1304091A (en) | 2001-07-18 |
CN1145102C true CN1145102C (en) | 2004-04-07 |
Family
ID=4575739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB001009362A Expired - Fee Related CN1145102C (en) | 2000-01-07 | 2000-01-07 | Hard disk active partition switching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1145102C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100401255C (en) * | 2005-12-05 | 2008-07-09 | 英业达股份有限公司 | Switching processing method and system for embedded operating system of computer platform |
-
2000
- 2000-01-07 CN CNB001009362A patent/CN1145102C/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100401255C (en) * | 2005-12-05 | 2008-07-09 | 英业达股份有限公司 | Switching processing method and system for embedded operating system of computer platform |
Also Published As
Publication number | Publication date |
---|---|
CN1304091A (en) | 2001-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6012130A (en) | Method and apparatus for automated disk drive upgrades | |
US5715456A (en) | Method and apparatus for booting a computer system without pre-installing an operating system | |
USRE40092E1 (en) | Method for quickly booting a computer system | |
US6532538B1 (en) | Method and system for supporting multiple operating systems on the same disk running on different computers at the same time | |
US7519806B2 (en) | Virtual partition for recording and restoring computer data files | |
US6138179A (en) | System for automatically partitioning and formatting a primary hard disk for installing software in which selection of extended partition size is not related to size of hard disk | |
US6944867B2 (en) | Method for providing a single preloaded software image with an ability to support multiple hardware configurations and multiple types of computer systems | |
JPH0728631A (en) | Method and system that install software application reversibly | |
EP0658843A1 (en) | Method for hibernation file creation | |
US20080098381A1 (en) | Systems and methods for firmware update in a data processing device | |
EP1378830B1 (en) | Operating system selector and data storage drive | |
US6718373B1 (en) | Method and system for installing files in a computing system | |
KR101555210B1 (en) | Apparatus and method for downloadin contents using movinand in portable terminal | |
US20080114923A1 (en) | Apparatus and method for controlling operation processing in nonvolatile memory | |
WO2019182796A1 (en) | Configurable recovery states | |
JP2000222179A (en) | Computer system and method for operating computer system | |
US7003656B2 (en) | Automatic selection of firmware for a computer that allows a plurality of process types | |
US6526493B1 (en) | Method and apparatus for partitioning and formatting a storage media without rebooting by creating a logical device control block (DCB) on-the-fly | |
US6470446B1 (en) | Method for preparing computer hard disks during installation of a network operating system | |
US8365159B2 (en) | Apparatus and method to update code in an information storage and retrieval system while that system remains in normal operation | |
CN1145102C (en) | Hard disk active partition switching method | |
JPH07191835A (en) | Computer system | |
US6880077B2 (en) | Enabling communication between video BIOS and graphics drivers | |
US10564894B2 (en) | Free space pass-through | |
CN101673242A (en) | Method and device for formatting hard disk |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C19 | Lapse of patent right due to non-payment of the annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |