1. Field of the Invention
The present invention relates to a method of multiple boot manager, and more particularly to a method to define partitions for multiple boot manager on hard disk.
2. Description of the Prior Art
As for computer configured with X86 Central Processing Unit (CPU), normal boot procedure is to power on computer till an operating system (OS) is loaded.
The first process to be performed on the computer system compatible with IBM PC is Basic Input/Output System (BIOS) after the computer is switched on. In fact, BIOS is stored in Read-Only Memory (ROM) on motherboard or Flash Memory, which acts as service program for the basic operation of computer system. Generally, software stored in hardware is to be called firmware. Firmware benefits to update or recovery the service program stored in memories via proper utility program.
Firstly, the BIOS perform Power On Self Test (POST) to ensure the peripheries connected with the computer in normal operation. Subsequently, BIOS performs an instruction searching for boot sector trying to read the boot sector on software and loading the operating system located in software. In the event there is no operating system located in software, BIOS read the first sector on hard disk known as master boot record (MBR) to load the operating system located in hard disk.
The data stored in MBR 15 can be divided into three parts. One is boot partition loader (BPL) or pre-loader, pre-boot 151, for loading boot sector to memories. The second is partition data 152 for storing data of partitions on hard disk, contained with a partition table for recording conditions of the hard disk partition, such as startup address and volumn of each partition. The third is verify data 153 for verifying whether the whole sector data of MBR is correct.
For the example of booting up the computers, firstly, when a computer is switched on, the BIOS program is executed and BIOS is loaded into memories. Then, power on self test (POST) is executed for testing hardware on computers such as CPU, motherboard, memories etc. The testing result is output and displayed on the screen or duplicator. By means of POST, the hardware and peripheries is tested to be in normal operation in subsequent booting procedure. If there is BIOS stored in other hardware devices, such as video graphics card (VGA), integrated device electronics (IDE), or serial advanced technology attachment (SATA), BIOS program is executed at the same time.
BIOS perform an instruction of seeking boot sector for starting up computers and load the boot sector for starting up computers into memories. As for hard disk, MBR located at the first sector on hard disk is read and loaded into memories. The control of program execution is passed to boot partition loader of master boot record (MBR) which loads the partitions setup with boot flag into memories. The control of program execution is passed to boot sector of partitions with boot flag. The boot sector is contained with a boot loader by which loading the operating system of partitions with boot flag into memories for execution via the guiding assist. And the control of program execution is passed to the operating system, thus a booting procedure is fulfilled.
Although the hard disk can be divided into a plurality of partitions with a variety of operating system loaded in, there is only but partitions with booting flag loaded into memories for execution. As a result, the normal booting procedure is linear and mutually exclusive, that is, only the partitions with booting flag and OS placed thereof can be loaded directly, to the contrary, those partitions without booting flag and OS placed thereof cannot be executed.
For the purpose of multiple booting computers, software like multiple boot manager is developed so that different OS placed on a variety of partitions can be managed and be optional loaded into memories for execution. The conventional multiple boot manager is like that, such as SPFdisk, GRUB, LILO etc.
As MBR is the first sector loaded into memories for execution after BIOS is performed, most multiple boot manager is to modify or rebuild MBR which multiple boot manager installed thereon. Thus the control of program execution is obtained by MBR before OS is loaded. An option of booting computers is provided for the user to choose a partition or an operating system for booting computer.
However, there appears a security concern when MBR is modified or rebuilt improperly. For example, the sector is easily subject to booting virus infection or breakdown so as to abnormal booting procedure. Additionally, most multiple boot manager is out of action and cannot be executed again due to the control of program execution turned over. When changing into another OS, the computer has to be restarted and fulfill a whole boot procedure again, such as cold or hot boot. In other words, the boot procedure has to be executed after BIOS is loaded. Only when multiple boot manager obtains the control of program execution, different OS can be optionally loaded in memories.
The present invention aims to provide a method of multiple boot manager in a computer equipped with BIOS and a storing medium. The storing medium is defined with a partition for multiple boot manager, a first partition and a second partition, wherein the partition for multiple boot manager is contained with a multiple boot manager, and address flags directing the first partition or the second partition.
The method of multiple boot manager includes three steps: starting up a computer system, altering operating system, rebooting a computer system.
The first step of starting up the computer includes steps as below: executing BIOS program; BIOS loading master boot record (MBR) to memories; directing the first partition according to the pre-boot partition indicated by address flag, MBR loading the partition for multiple boot manager to memories, and passing the control of program execution to the partition for multiple boot manager; the partition for multiple boot manager contained with a multiple boot manager to be loaded to the first partition for execution, passing the control of program execution to the first partition; the first partition contained with a boot sector which has a boot loader for loading the first operating system of the first partition to memories, and passing the control of program execution to the first OS, thus the booting procedure fulfilled.
The step of alteration OS includes the following steps: execution an application program under the condition of the first OS, and creating a conversational option interface for choosing by the user; altering the address flag of the partition for multiple boot manager to directing the second partition according to the choice or operation of the user.
Finally, the step of rebooting computer includes: unloading the first OS; loading the master boot record (MBR); loading multiple boot manager located in the partition for multiple boot manager; directing the second partition according to the address flag of the partition for multiple boot manager and loading multiple boot manager to the second partition; loading the second OS located on the second partition. The step of loading the master boot record (MBR) optionally can be omitted.
The present invention provides a method of multiple boot manager capable of applying to computers like desktop or notebook computers configured with multiple boot modes. The method of multiple boot according to the present invention intends to load multiple optional operating system for choice at the time of switch on/off the computer for the purpose of loading the selected operating system to memories.
The partition for multiple boot manager 24 according to the present invention is an independent partition of storing medium 2, which is the designated partition for MBR 25 loaded in memories. The partition for multiple boot manager 24 includes a multiple boot manager 241 which is a program for controlling booting up a computer, a partition table 242 for recording address and volumn of each partition, and an address flag 243 for designating one partition between the first partition 21 and the second partition 22 to be loaded in memories.
Here, the flow of booting up a computer according to the present invention will be described with reference to
Next, the step of alteration operating system is executed which include the following steps: executing an application program under the condition of the first OS, and creating a conversational option interface which includes a plurality of name options of different operating system for choosing by the user, the preferred interface is designed as radio button options, wherein the name option of the first OS is disabled or unaccessible, or the name option of the first OS is unable to display. The application program alters the address flag of the partition for multiple boot manager according to the choice of the user so as to the address flag direct to the second partition for reference on next booting up. The application program can communicate with the multiple boot manager located on the partition for multiple boot manager, or call the multiple boot manager to be activated.
Now referring to
Although the invention has been explained in relation to its preferred embodiment, many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.