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.
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 outstep 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 outstep 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, instep 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.