STORAGE MEDIUM STORING MASTER BOOT RECORD, COMPUTER SYSTEM HAVING THE SAME AND BOOTING METHOD OF THE COMPUTER SYSTEM

- Samsung Electronics

A method and an apparatus for a storage medium implemented by at least one computer are provided. The storage medium includes a first sector to store a first master boot record including an execution code allowing the at least one computer to grasp command information and to implement a preset control according to the grasped command information, a first data storage region to store a first data file for booting, a second sector to store a second master boot record allowing the at least one computer to boot based on the first data file, a second data storage region to store a second data file for booting, and a third sector to store a third master boot record allowing the at least one computer to boot based on the second data file.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No. 12/276,683 filed on Nov. 24, 2008, which claims the benefit under 35 U.S.C. §119(a) of a Korean patent application filed on May 21, 2008 in the Korean Intellectual Property Office and assigned Ser. No. 10-2008-0047230, the entire disclosure of each of which is hereby incorporated by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

Aspects of the present invention relate to a storage medium storing a master boot record, a computer system having the same, and a booting method of the computer system, and more particularly to a storage medium storing a master boot record that contains a plurality of operating systems, a computer system having the same, and a booting method of the computer system.

2. Description of the Related Art

In general, a hard disk drive of a computer system (such as a personal computer, a laptop computer, a workstation, a mobile phone, a personal digital assistant, etc.) has memory addresses from a zero address to a last address, and includes one or more cylinders and a master boot record (MBR). The master boot record occupies one sector of the hard disk drive, and informs the computer system of a booting method and sector allocation with regard to each file. Furthermore, a user may add another operating system to the current operating system or add an application to the master boot record or a certain sector of the hard disk drive to use various applications such as a security solution, a recovery solution, etc. With the solution providing additional operations, the solution's own master boot record may be required.

If the master boot record for the existing operating system is different from that of a solution desired to be used, a user cannot use the solution. For example, if WINDOWS VISTA is employed as the operating system, a security program (i.e., BIT LOCKER) supported by WINDOWS VISTA is under control of the master boot record for WINDOWS VISTA only. In this case, a solution using master boot records other than the master boot record for the exclusive use of WINDOWS VISTA cannot be used together with the BIT LOCKER.

SUMMARY OF THE INVENTION

Aspects of the present invention to provide a storage medium, a computer system having the same, and a booting method of the computer system, in which different operating systems can be booted through different master boot records. Aspects of the present invention also provide a storage medium, a computer system having the same, and a booting method of the computer system, in which a recovery solution is easily executable under a WINDOWS operating system.

According to an aspect of the present invention, there is provided a storage medium implemented by at least one computer. The storage medium includes a first sector to store a first master boot record including an execution code allowing the at least one computer to grasp command information and to implement a preset control according to the grasped command information, a first data storage region to store a first data file for booting, a second sector to store a second master boot record allowing the at least one computer to boot based on the first data file, a second data storage region to store a second data file for booting, and a third sector to store a third master boot record allowing the at least one computer to boot based on the second data file.

In accordance with an aspect of the present invention, a computer system is provided. The computer system includes a user selection unit to receive a user selection signal, a storage medium comprising a first data storage region to store a first operating system, and a second data storage region to store a second operating system different from the first operating system, and a controller to selectively control the first operating system or the second operating system to be booted according to the user selection signal.

In accordance with an aspect of the present invention a booting method of a computer system having a first operating system using a first master boot record and a second operating system using a second master boot record different from the first master boot record is provided. The booting method includes determining whether a user selection signal is received to selectively booting either the first operating system or the second operating system, selectively loading the first master boot record or the second master boot record according to whether the user selection signal is received, and booting the first operating system or the second operating system according to the loaded master boot record.

In accordance with an aspect of the present invention a storage medium implemented by at least one computer is provided. The storage medium includes a first data storage region to store a first data file for booting, a second data storage region to store a second data file for booting, and a sector to store a master boot record including an execution code selectively controlling the at least one computer to boot according to the first data file or the second data file.

In accordance with an aspect of the present invention a booting method of a computer system having a first operating system using a first master boot record and a second operating system using a second master boot record different from the first master boot record is provided. The booting method includes selectively loading the first master boot record or the second master boot record according to a user selection signal, and booting the first operating system or the second operating system according to the loaded master boot record.

Other aspects, advantages, and salient features of the invention will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses exemplary embodiments of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

These and/or other aspects and advantages of the invention will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:

FIG. 1 is a schematic diagram of a storage medium with a master boot record according to an embodiment of the present invention;

FIG. 2 is a control block diagram of a computer system according to an embodiment of the present invention, having the storage medium of FIG. 1; and

FIG. 3 is a control flowchart to explain a booting method of the computer system in FIG. 2.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

Reference will now be made in detail to the present embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present invention by referring to the figures.

FIG. 1 is a schematic diagram of a storage medium 100 with a master boot record according to an embodiment of the present invention. The storage medium 100 shown in FIG. 1 is a hard disk drive of a computer system. As shown, the hard disk drive 100 is divided into a plurality of sectors 110, 120, and 130 (i.e., a storage regions), and the sectors 110, 120, and 130 respectively store different information.

Referring to FIG. 1, the storage medium 100 includes sectors 110, 120 and 130 to store the master boot records MBR 1, MBR 2 and MBR 3, respectively, and first and second data storage regions 140 and 150 to store first and second data files 141 and 151 for booting. The sector and the data storage regions are named for convenience according to data stored in the storage medium 100, but it is noted that the scopes thereof are not limited thereto.

A first sector 110 stores a first master boot record MBR 1, and the first master boot record MBR 1 includes an execution code 111 and a first partition table 113. The execution code 111 corresponds to a program that grasps certain command information. The execution code 111 is executed when the first master boot record MBR 1 is read, and grasps the command information, thereby performing a preset control based on the command information. In this embodiment, the execution code selects a master boot record to be read after the first master boot record MBR 1, such that booting is implemented according to the selected master boot record. In the first partition table 113, partition information of a first data file 141 is set to an active partition so that the booting can be implemented using the first data file 141.

A second sector 120 stores a second master boot record MBR 2, and the second master boot record MBR 2 includes a first boot code 121 that allows the booting to be implemented on the basis of the first data file 141. That is, when the booting is implemented on the basis of the first data file 141, the first partition table 113 of the first master boot record MBR 1 and the first boot code 121 of the second master boot record MBR 2 are read by the execution code 111.

A third sector 130 stores a third master boot record MBR 3, and the third master boot record MBR 3 includes a second boot code 131 and a second partition table 133. The second boot code 131 and the second partition table 133 allow the booting to be implemented according to a second data file 151. In the second partition table 133, partition information of a second data file 151 is set to an active partition so that the booting can be implemented using the second data file 151.

The first data file 141 of the first data storage region 140 may include an operating system from the MICROSOFT WINDOWS series (such as WINDOWS VISTA). The operating system controls management and allocation of resources of the computer system, and execution of application programs, thereby creating an environment that allows a user to use the computer system and storing various applications and information. The second data file 151 of the second data storage region 150 includes a different operating system from that included in the first data file 141. In this embodiment, the second data file 151 includes a recovery operating system for a recovery solution. The recovery operating system is booted using a different master boot record from that of the operating system stored in the first data storage region 140 (for example, from the WINDOWS VISTA operating system stored in the first data storage region 140). However, it is understood that aspects of the present invention are not limited thereto. For example, the second data storage region 150 may be a virtual space (i.e., logical data space) generated for the recovery operating system. In this case, the recovery operating system may be stored in an additional storage medium (e.g., an optical disk drive) physically separated from the storage medium 100.

As described, the storage medium 100 stores the plurality of operating systems, and the respective master boot records to boot up the operating systems. In this embodiment, the first master boot record MBR 1 of the storage medium 100 stores the execution code 111, as opposed to the boot code for booting. Therefore, the execution code 111 is first loaded when the booting starts to load the data from the storage medium 100. The loaded execution code 111 selects the master boot record to boot the first operating system or the second operating system. Here, the boot code, which is conventionally stored in the first master boot record MBR 1, is stored in the second master boot code MBR 2. That is, conventionally, the operating system (such as WINDOWS) was booted according to the master boot record stored in the first sector of the storage medium. On the other hand, the recovery solution, which uses the master boot record other than the master boot record stored in the first sector, cannot be booted up by the recovery operating system even though the recovery operating system is stored in the hard disk drive or the like storage media. Accordingly, the operation of the recovery solution cannot be used conventionally.

However, according to aspects of the present invention, the operating system can be selectively booted by the execution code 111 stored in the first master boot record MBR 1. Thus, the recovery solution is freely usable without colliding with the prior boot. Furthermore, the partition table 113 for the existing boot is used as is without change, and therefore there is no collision between different operating systems. Also, the independent partition table 133 for the recovery operating system is provided so that protection of the program can be improved.

The storage medium 100 may include a plurality of other data regions (not shown). Such data regions may store various system files (e.g., “io.sys,” “msdos.sys,” “command.com,” etc.) used to boot the operating system.

The foregoing indexes and labels (MBR 2, MBR 3, second sector, third sector, etc.) are used for the mater boot records and the sectors for convenience of description, and do not limit aspects of the present invention to certain locations of the storage medium. Here, the location of the master boot record may vary according to a capacity and utility of the storage medium. For example, if the existing master boot records are stored in the first through third sectors, the second and third master boot records according to other aspects may be stored in fourth and fifth sectors, respectively.

FIG. 2 is a control block diagram of a computer system according to an embodiment of the present invention, having the storage medium of FIG. 1. As shown, the computer system includes the storage medium 100, a user selection unit 200, a memory 400, and a controller 300 to control the storage medium 100, the user selection unit 200, and the memory 400. The storage medium 100 illustrated in FIG. 2 is similar to the storage medium 100 illustrated in FIG. 1, and thus repetitive descriptions thereof will be avoided.

The memory 400 may be a random access memory (RAM) or the like, and stores data from the storage medium 100 and the controller 300. Hereinafter, “reading the data” and “loading the data” refer to storing certain data in the memory 400.

The user selection unit 200 is a user interface to receive a selection signal from a user. For example, the user selection unit 200 may receive the selection signal from a keyboard, a button, a mouse, a touch screen, etc., provided in the computer system. Also, the user selection unit 200 may include an electronic interface to send the controller 300 a user's selection signal generated through a physical interface. Thus, a user may either select the general operating system (such as WINDOWS VISTA) or the recovery solution to be booted up. As an example, if there is any selection signal input through the user selection unit 200, the recovery solution is booted. Otherwise (i.e., if there is no input of the selection signal), the general operating system is booted. At this time, a user may generate the selection signal by pressing a certain operation key (e.g., “F4” or “F7”) of a keyboard. However, it is understood that aspects of the present invention are not limited to such a booting according to whether a user selection signal is input. For example, alternatively, the selection signals may be individually input to select the operating systems, respectively. Also, if there are three or more operating systems, three operating systems may be booted according to a predetermined booting priority or a certain operating system may be set up to be first booted.

The controller 300 controls either of the first operating system or the second operating system to be booted according to whether a user inputs the selection signal and/or according to the input selection signal. The controller 300 may be a basic input output system (BIOS), and includes a control module where a flash memory storing BIOS data and a central processing unit (not shown) communicate with each other to control the BIOS data. The controller 300 mainly controls initial booting when the computer system is turned on.

During the booting of the computer system, the BIOS data stored in the flash memory is loaded to the memory 400 after a power on self test (POST). Before starting the booting based on the BIOS, a waiting time is given to allow a user to set up the BIOS data, a boot sequence, etc. During the waiting time, a user may select a booting path. The controller 300 controls the selection signal to be stored as command information 301 when receiving the selection signal through the user selection unit 200. Here, the command information 301 may be stored in a built-in memory, a main memory, a separate memory, an external memory, etc. The command information 301 corresponds to a flag signal to inform the storage medium 100 that a user selects the booting based on the recovery solution.

After all data is loaded from a BIOS read only memory (ROM), system files are loaded from the hard disk drive. At this time, the operating system starts to be booted. The controller 300 reads the first master boot record MBR 1 from the first sector 110 of the storage medium 100 and controls the execution code 111 included in the first master boot record MBR 1 to be executed. The execution code 111 is executed to determine whether the command information 301 exists in the controller 300, and selects the next master boot record to be loaded to the memory 400 according to the command information 301.

If the command information 301 exists in the controller 300, the execution code 111 reads the third master boot record MBR 3 from the third sector 130. When the third master boot record MBR 3 is loaded, the recovery operating system stored in the second data storage region 150 is booted depending on the second boot code 131 and the second partition table 133. If the command information 301 does not exist in the controller 300, the execution code 111 reads the first partition table 113 from the first master boot record MBR 1 stored in the first sector 110 and the first boot code 121 from the second master boot record MBR 2 stored in the second sector 120.

As an example, WINDOWS VISTA supports BIT LOCKER as a security solution. BIT LOCKER should communicate with trusted platform modules (TPM) to strengthen protection of the system files before booting the operating system. Such communication is performed through the first boot code 121 provided by WINDOWS VISTA. That is, the first boot code 121 is employed for communication with the TPM when BIT LOCKER is used. In this case, it was conventionally impossible to use the recovery solution that uses its own master boot record. Further, in the case that a network switching unit is used as a security program, the network switching unit uses a certain boot code supported by WINDOWS, so that it was conventionally impossible to use the recovery solution. These problems are solved by the execution code 111 and the selection of the booting path through the execution code 111. Thus, a desired operating system can be booted without considering a collision between the operation systems.

FIG. 3 is a control flowchart to explain a booting method of the computer system in FIG. 2 according to an embodiment of the present invention is as follows. Referring to FIG. 3, a user inputs a selection signal to execute a recovery solution before the booting is implemented by the controller 300 in operation S10. If the user inputs the selection signal through the user selection unit 200 (operation S10), the controller 300 controls the selection signal to be stored as the command information 301 in operation S20.

If there is no input of the selection signal (operation S10) or after the command information 301 is stored, the controller 300 loads the first master boot record MBR 1 from the first sector 110 of the storage medium 100 and executes the execution code to start booting the operating system in operation S30.

The execution code 111 is executed and determines whether there the command information 301 is stored in operation S40. If the command information 301 is stored due to the selection signal from a user (operation S20), the execution code 111 loads the third master boot record MBR 3 from the third sector 130 to thereby run the recovery solution in operation S50. When the second boot code 131 and the second partition table 133 are read from the third master boot record MBR 3, the recovery operating system from the second data storage region 150 is booted and, thus, the recovery solution is run in operation S60.

On the other hand, if there is no command information 301, the execution code 111 reads the first partition table 113 from the first master boot record MBR 1 and the first boot code 121 from the second master boot record MBR 2, thereby forming a new master boot record in operation S70. Then, the operating system stored in the first data storage region 140 (for example, a WINDOWS operating system) is booted according to the new master boot record in operation S80. If the recovery operating system is completely booted, the operations (operations S70 and S80) for booting the first operating system proceed automatically. However, it is understood that aspects of the present invention are not limited thereto. For example, alternatively, if the booting of the recovery operating system is completed, a user may select whether to boot the first operating system. In this case, the computer system may display user interface (UI) information to check whether a user wants to reboot. Here, a user may selectively reboot or shut down the computer system.

It is understood that the first operating system is not limited to WINDOWS, and may include Linux, Unix or the like, and the second operating system is not limited to the recovery operating system. Aspects of the present invention addresses a problem that a separate operation cannot be run when selected before a general booting because a master boot record is not shared. In other words, aspects of the preset invention are not limited to a certain operating system and are applied to various operating systems that do not share one master boot record (i.e., respectively use different master boot records).

As described above, aspects of the present invention provide a storage medium, a computer system having the same, and a booting method of the computer system, in which different operating systems booted through different master boot records are usable. Furthermore, aspects of the present invention provide a storage medium, a computer system having the same, and a booting method of the computer system, in which a recovery solution is easily executable under an operating system such as WINDOWS. Also, aspects of the present invention provide a storage medium, a computer system having the same, and a booting method of the computer system, in which a recovery solution is easily executable while using a network switching unit.

Aspects of the present invention can also be embodied as computer-readable codes on a computer-readable recording medium. Also, codes and code segments to accomplish the present invention can be easily construed by programmers skilled in the art to which the present invention pertains. The computer-readable recording medium is any data storage device that can store data which can be thereafter read by a computer system or computer code processing apparatus. Examples of the computer-readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices. The computer-readable recording medium can also be distributed over network-coupled computer systems so that the computer-readable code is stored and executed in a distributed fashion. Aspects of the present invention may also be realized as a data signal embodied in a carrier wave and comprising a program readable by a computer and transmittable over the Internet. 100421 Although a few embodiments of the present invention have been shown and described, it would be appreciated by those skilled in the art that changes may be made in this embodiment without departing from the principles and spirit of the invention, the scope of which is defined in the claims and their equivalents.

Claims

1. A storage medium implemented by at least one computer, the storage medium comprising:

a first sector to store a first master boot record including an execution code allowing the at least one computer to grasp command information and to implement a preset control according to the grasped command information;
a first data storage region to store a first data file for booting;
a second sector to store a second master boot record allowing the at least one computer to boot based on the first data file;
a second data storage region to store a second data file for booting; and
a third sector to store a third master boot record allowing the at least one computer to boot based on the second data file.

2. The storage medium as claimed in claim 1, wherein the first data file comprises a WINDOWS operating system, and the second data file comprises a recovery operating system.

3. The storage medium as claimed in claim 2, wherein the first data file comprises WINDOWS VISTA.

4. The storage medium as claimed in claim 1, wherein the execution code controls the at least one computer to load the third master boot record when the command information is grasped.

5. The storage medium as claimed in claim 1, wherein:

the first master boot record comprises a partition table to allow the at least one computer to boot based on the first data file;
the second master boot record comprises a boot code to allow the at least one computer to boot based on the first data file; and the execution code controls the at least one computer to load the partition table from the first master boot record and the boot code from the second master boot record when the command information is not grasped.

6. The storage medium as claimed in claim 1, wherein the preset control loads the second master boot record or the third master boot record according to the grasped command information.

7. The storage medium as claimed in claim 1, wherein the command information controls the at least one computer to load the second master boot record or the third master boot record according to a selection signal received from a user to select between the first data file and the second data file.

8. A computer system comprising:

a user selection unit to receive a user selection signal;
a storage medium comprising a first data storage region to store a first operating system, and a second data storage region to store a second operating system different from the first operating system; and
a controller to selectively control the first operating system or the second operating system to be booted according to the user selection signal.

9. The computer system as claimed in claim 8, wherein the controller controls the user selection signal to be stored as command information.

10. The computer system as claimed in claim 8, wherein the storage medium comprises:

a first sector to store a first master boot record including an execution code to allow the controller to grasp command information;
a second sector to store a second master boot record to implement booting based on the first operating system; and
a third sector to store a third master boot record to implement booting based on the second operating system.

11. The computer system as claimed in claim 10, wherein the controller reads the first master boot record to execute the execution code.

12. The computer system as claimed in claim 8, wherein the first operating system is a WINDOWS operating system, and the second operating system is a recovery operating system.

13. The computer system as claimed in claim 10, wherein the controller loads the third master boot record according to the execution code when the command information is grasped.

14. The computer system as claimed in claim 10, wherein:

the first master boot record comprises a partition table to implement the booting based on the first operating system;
the second master boot record comprises a boot code to implement the booting based on the first operating system; and
the controller to load the partition table from the first master boot record and the boot code from the second master boot record according to the execution code when the command information is not grasped.

15. The computer system as claimed in claim 8, wherein the first operating system supports a security program corresponding to BIT LOCKER or a network switching unit.

16. The computer system as claimed in claim 8, wherein the storage medium comprises a hard disk drive.

17. The computer system as claimed in claim 8, wherein the controller comprises a basic input output system (BIOS).

18. The computer system as claimed in claim 8, wherein the controller controls the first operating system to automatically boot after the second operating system is completely booted.

19. The computer system as claimed in claim 8, wherein the controller controls the first operating system to boot or a shutdown, according to a user selection, after the second operating system is completely booted.

20. A booting method of a computer system comprising a first operating system using a first master boot record and a second operating system using a second master boot record different from the first master boot record, the booting method comprising:

determining whether a user selection signal is received to selectively booting either the first operating system or the second operating system;
selectively loading the first master boot record or the second master boot record according to whether the user selection signal is received; and
booting the first operating system or the second operating system according to the loaded master boot record.

21. The booting method as claimed in claim 20, further comprising storing the user selection signal as command information.

22. The booting method as claimed in claim 21, wherein the determining of whether the user selection signal is received comprises executing a predetermined execution code to grasp the command information.

23. The booting method as claimed in claim 20, wherein the first operating system is a WINDOWS operating system, and the second operating system is a recovery operating system.

24. The booting method as claimed in claim 22, further comprising loading the second master boot record when the execution code grasps the command information.

25. The booting method as claimed in claim 22, wherein:

the first master boot record comprises a partition table and the execution code to boot the first operating system;
the computer system comprises a third master boot record comprising a boot code to boot the first operating system; and
the execution code loads the partition table from the first master boot record and the boot code from the third master boot record when the command information is not grasped.

26. The booting method as claimed in claim 20, further comprising booting the first operating system when the booting of the second operating system is completed.

27. The booting method as claimed in claim 22, further comprising loading the first master boot record when the execution code does not grasp the command information.

28. A storage medium implemented by at least one computer, the storage medium comprising:

a first data storage region to store a first data file for booting;
a second data storage region to store a second data file for booting; and
a sector to store a master boot record including an execution code selectively controlling the at least one computer to boot according to the first data file or the second data file.

29. A booting method of a computer system comprising a first operating system using a first master boot record and a second operating system using a second master boot record different from the first master boot record, the booting method comprising:

selectively loading the first master boot record or the second master boot record according to a user selection signal; and
booting the first operating system or the second operating system according to the loaded master boot record.

30. The booting method as claimed in claim 29, wherein the selective loading of the first master boot record or the second master boot record comprises:

determining whether the user selection signal is received;
loading the first master boot record if the user selection signal is not received; and
loading the second master boot record if the user selection signal is received.
Patent History
Publication number: 20130007438
Type: Application
Filed: Sep 11, 2012
Publication Date: Jan 3, 2013
Applicant: SAMSUNG ELECTRONICS CO. LTD. (Suwon-si)
Inventors: Deok-rae KIM (Suwon-si), Keon-young CHO (Yongin-si), Kyung-young KIM (Suwon-si), Seung-lee NAM (Seoul)
Application Number: 13/610,091
Classifications
Current U.S. Class: Loading Initialization Program (e.g., Booting, Rebooting, Warm Booting, Remote Booting, Bios, Initial Program Load (ipl), Bootstrapping) (713/2)
International Classification: G06F 9/00 (20060101); G06F 15/177 (20060101);