CN1952890A - Computer startup method, storage medium and computer device using the computer startup method - Google Patents
Computer startup method, storage medium and computer device using the computer startup method Download PDFInfo
- Publication number
- CN1952890A CN1952890A CN 200510116229 CN200510116229A CN1952890A CN 1952890 A CN1952890 A CN 1952890A CN 200510116229 CN200510116229 CN 200510116229 CN 200510116229 A CN200510116229 A CN 200510116229A CN 1952890 A CN1952890 A CN 1952890A
- Authority
- CN
- China
- Prior art keywords
- operating system
- computer
- program
- partition
- computer device
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明有关电脑技术,且特别有关电脑开机方法、使用所述电脑开机方法的储存媒体及电脑装置。The present invention relates to computer technology, and in particular to a method for starting a computer, a storage medium using the method for starting a computer, and a computer device.
背景技术Background technique
微软视窗(Microsoft Windows)操作系统可以使个人电脑提供一般信息家电(information appliance)的功能,例如电视或数位视讯影盘(Digital VideoDisc/Disk,简称DVD)机,但是在启动这些功能以前需要花费数分钟以启动个人电脑,且在关闭这些功能时需要花费数分钟以关闭个人电脑。因此,个人电脑开关机的时间会造成使用上的不便。The Microsoft Windows (Microsoft Windows) operating system enables a personal computer to provide the functions of a general information appliance, such as a TV or a Digital Video Disc/Disk (DVD) player, but it takes several hours to activate these functions. minutes to start the PC, and several minutes to shut down the PC when these functions are turned off. Therefore, the time of turning on and off the personal computer will cause inconvenience in use.
为了要加速个人电脑开机时间,传统作法上,会在其原操作系统之外再安装第二个操作系统于其硬盘一分割区内,以提供部分信息家电功能,并缩短开机时间。对于不同的文件系统存在于不同的分割区中,因此,支援不同文件系统的操作系统通常也须要被安装在不同的分割区。但是一般而言一个硬盘只能有四个分割区,安装此第二个操作系统需要占用硬盘的一个分割区。In order to speed up the boot time of a personal computer, traditionally, a second operating system will be installed in a partition of the hard disk in addition to the original operating system to provide some functions of information appliances and shorten the boot time. Different file systems exist in different partitions. Therefore, operating systems supporting different file systems usually need to be installed in different partitions. But generally speaking, a hard disk can only have four partitions, and installing this second operating system needs to occupy one partition of the hard disk.
另外,第二个操作系统的安装不同于一般应用程序的安装。如果第二个操作系统的文件系统和原操作系统的不同,还需要使用第二个操作系统的开机盘片来开机,并进行安装,因此,较不方便。In addition, the installation of the second operating system is different from the installation of general application programs. If the file system of the second operating system is different from that of the original operating system, the boot disk of the second operating system needs to be used to boot and install, so it is inconvenient.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种电脑开机方法,用以让一电脑装置开机时,从符合一操作系统的文件系统的一储存装置分割区中,载入具有不同文件系统的第二个操作系统,以进行开机操作。In view of this, the object of the present invention is to provide a method for starting a computer, which is used to load a second file system with a different file system from a partition of a storage device conforming to a file system of an operating system when a computer device is started. operating system for boot operation.
基于上述目的,本发明一方面提供一种电脑开机方法,执行于一电脑装置中。上述电脑装置包含一主存储器及一储存装置。上述储存装置的一分割区中储存相异的一第一操作系统及一第二操作系统,并且格式化规格符合上述第一操作系统的一第一文件系统。上述第二操作系统支援与上述第一文件系统不同的一第二文件系统,且包含一核心程序。首先,当上述电脑装置利用上述第二操作系统开机时,将上述核心程序从上述分割区载入至上述主存储器。将上述主存储器的一部分建立为一虚拟磁盘,上述虚拟磁盘的格式化规格符合上述第二文件系统。将上述第二操作系统从上述分割区载入到上述虚拟磁盘中。Based on the above purpose, the present invention provides a method for starting a computer, which is executed in a computer device. The above-mentioned computer device includes a main memory and a storage device. A first operating system and a second operating system different from each other are stored in a partition of the storage device, and the formatting specification conforms to a first file system of the first operating system. The second operating system supports a second file system different from the first file system and includes a kernel program. First, when the computer device is powered on by using the second operating system, the kernel program is loaded into the main memory from the partition. A part of the above-mentioned main memory is established as a virtual disk, and the formatting specification of the above-mentioned virtual disk conforms to the above-mentioned second file system. Loading the above-mentioned second operating system from the above-mentioned partition into the above-mentioned virtual disk.
另外,本发明另一方面提供一种电脑可读取储存媒体,用以储存一电脑程序,其中当所述电脑程序载入至一电脑装置中,则可执行一电脑开机方法。所述电脑装置包含一主存储器及一储存装置。所述储存装置的一分割区中储存一第一操作系统,并且格式化规格符合所述第一操作系统的一第一文件系统。所述电脑开机方法包括下列步骤:当所述电脑装置以所述第一操作系统开机之后,利用所述第一操作系统启动一第二操作系统的一安装程序。所述第二操作系统支援与所述第一文件系统不同的一第二文件系统,且包含一核心程序。利用所述安装程序,根据所述第一文件系统将所述第二操作系统储存于所述分割区。利用所述安装程序,储存一载入程序于所述储存装置,用以在所述电脑装置开机时载入所述核心程序至所述主存储器。其中当所述核心程序载入至所述主存储器时,所述核心程序将所述主存储器的一部分建立为一虚拟磁盘,所述虚拟磁盘的格式化规格符合所述第二文件系统,以及所述核心程序将所述第二操作系统从所述分割区载入到所述虚拟磁盘中。In addition, another aspect of the present invention provides a computer-readable storage medium for storing a computer program, wherein when the computer program is loaded into a computer device, a computer booting method can be executed. The computer device includes a main memory and a storage device. A first operating system is stored in a partition of the storage device, and the formatting specification conforms to a first file system of the first operating system. The computer booting method includes the following steps: after the computer device is booted with the first operating system, using the first operating system to start an installation program of a second operating system. The second operating system supports a second file system different from the first file system and includes a kernel program. The second operating system is stored in the partition according to the first file system by using the installation program. Using the installation program, a loading program is stored in the storage device for loading the kernel program into the main memory when the computer device is turned on. Wherein when the core program is loaded into the main memory, the core program creates a part of the main memory as a virtual disk, the format specification of the virtual disk conforms to the second file system, and the The kernel program loads the second operating system from the partition into the virtual disk.
另外,本发明又一方面提供一种电脑装置,包含一主存储器、一储存装置及一处理器,其中所述处理器耦接于所述主存储器及所述储存装置。所述储存装置,包含一分割区,用以储存相异的一第一操作系统及包一第二操作系统,并且所述分割区格式化规格符合所述第一操作系统的一第一文件系统。所述第二操作系统支援与所述第一文件系统不同的一第二文件系统,且包含一核心程序。当所述电脑装置利用所述第二操作系统开机时,所述处理器将所述核心程序从所述分割区载入至所述主存储器,根据所述核心程序将所述主存储器的一部分建立为一虚拟磁盘,所述虚拟磁盘的格式化规格符合所述第二文件系统,以及将所述第二操作系统从所述分割区载入到所述虚拟磁盘中。In addition, another aspect of the present invention provides a computer device including a main memory, a storage device and a processor, wherein the processor is coupled to the main memory and the storage device. The storage device includes a partition for storing a different first operating system and a second operating system, and the formatting specification of the partition conforms to a first file system of the first operating system . The second operating system supports a second file system different from the first file system and includes a kernel program. When the computer device is powered on using the second operating system, the processor loads the kernel program from the partition into the main memory, and creates a part of the main memory according to the kernel program. It is a virtual disk, the formatting specification of the virtual disk conforms to the second file system, and the second operating system is loaded into the virtual disk from the partition.
附图说明Description of drawings
图1是显示一电脑装置实施例的结构方块图;Fig. 1 is a structural block diagram showing an embodiment of a computer device;
图2是显示第二个操作系统安装操作实施例的流程图;FIG. 2 is a flowchart showing a second operating system installation embodiment;
图3是显示图1的电脑装置安装第二个操作系统后的结构方块图;Fig. 3 is a structural block diagram showing that the computer device of Fig. 1 is installed with a second operating system;
图4是显示电脑装置开机及载入第二操作系统的流程图;及FIG. 4 is a flow chart showing the computer device booting and loading the second operating system; and
图5是显示电脑开机方法的电脑可读取储存媒体实施例的示意图。FIG. 5 is a schematic diagram of an embodiment of a computer-readable storage medium showing a method for booting a computer.
具体实施方式Detailed ways
以下电脑开机方法实施例,执行于一电脑装置中,可以在不需要二个分割区的情况中,选择性地载入具有不同文件系统的二个操作系统,以进行开机操作。The following embodiment of the computer booting method is executed in a computer device, and can selectively load two operating systems with different file systems for booting without requiring two partitions.
如图1所示,处理器1耦接于主存储器2及储存装置4及5。第一操作系统70被安装于储存装置5的分割区51。第一操作系统70支援第一文件系统。分割区51以第一文件系统格式化。储存装置5可以是一硬式磁盘驱动器或其它储存媒体。当储电脑装置10开机时可以自动载入并执行第一操作系统70。As shown in FIG. 1 , the
储存装置4包含第二操作系统71、载入程序(Bootloader)72及安装程序(Installer)73,用以安装第二操作系统71至分割区51。上述第二操作系统包含核心程序(Kernel)711及函式库712,并支援与上述第一文件系统不同的一第二文件系统。核心程序711及函式库712可以预先分别被压缩成核心程序压缩文件及虚拟磁盘文件(RamDisk file)。需要注意的是,核心程序711及函式库712也可以不需经过压缩。储存装置4可以是一光盘、磁盘片、或其它储存媒体。安装程序73可以在第一操作系统70的环境中执行。储存装置4的格式化规格可以符合第一文件系统,并且可以相同格式储存第二操作系统71、载入程序72及安装程序73。The
举例来说,上述第一文件系统是微软公司的视窗操作系统NT的文件系统(NT File System,简称NTFS),而第二操作系统71是Linux操作系统。Linux操作系统具有虚拟文件系统(virtual file system,简称vfs),可以支援多种文件系统,例如第二延伸文件系统(the Second Extended file-system,简称ext2)、NTFS、网络文件系统(the Network File-system,简称nfs)、MS-DOS文件配置表文件系统(The MS-DOS File Allocation Table filesystem,简称FAT),及其它文件系统的读取操作。上述第二文件系统可以是上述虚拟文件系统。For example, the above-mentioned first file system is the file system (NT File System, NTFS for short) of Windows operating system NT of Microsoft Corporation, and the
图2显示第二个操作系统安装操作实施例的流程图。当电脑装置10以第一操作系统70开机之后,处理器1利用第一操作系统70启动安装程序73(步骤S2)。Figure 2 shows a flowchart of a second embodiment of an operating system installation operation. After the
利用安装程序73,处理器1利用上述第一文件系统将第二操作系统71储存于分割区51(步骤S4),如图3所示。举例来说,处理器1储存第二操作系统71,包含核心程序711及函式库712的压缩文件,于分割区51的一预定目录中。Using the
利用上述安装程序73,处理器1储存一载入程序72于储存装置5(步骤S6),用以在电脑装置10开机时载入核心程序711至主存储器2,如图3所示。举例来说,储存装置5是硬式磁盘驱动器,载入程序72可以储存在储存装置5的第一磁区,例如在主启动磁区(Master Boot Record)中。如果储存装置5中已存在原本的载入程序,载入程序72可以取代原本的载入程序或者修改原本的载入程序,使核心程序711在电脑装置10开机时被载入至主存储器2。因此,载入程序72需要有读取上述第一文件系统的文件的能力。第二操作系统71的安装已完成(步骤S8)。此时,储存装置5的分割区51中储存相异的第一操作系统70及第二操作系统71,如图3所示。Using the above-mentioned
图4是显示电脑装置10开机及载入第二操作系统71的流程图。FIG. 4 is a flowchart showing the
当电脑装置10开机并执行开机自我测试(Power On Self Test)之后(步骤S20),处理器1执行载入程序72。处理器1自动检测一寄存器的值以决定是否以第二操作系统开机71(步骤S22)。举例来说,上述寄存器反应一输入键(例如一键盘或一遥控器的热键(hot key)或功能键(function key))的状态,当电脑装置10开机时根据此输入键的状态以决定载入第一操作系统70或第二操作系统71以进行开机。当电脑装置10利用第一操作系统70开机时,载入第一操作系统70至主存储器2(步骤S23)。电脑装置10进入一般电脑操作模式(PC mode)(步骤S42)。After the
当电脑装置10利用第二操作系统71开机时,载入程序72根据上述预定目录以取得核心程序711(步骤S24)。如果核心程序711是以压缩文件形态存于分割区51,在载入至主存储器2之前处理器1需要先对核心程序压缩文件解压缩(步骤S26)。处理器1将解压缩后的核心程序711从分割区51载入至主存储器2,并开始执行核心程序711(步骤S28)。When the
根据核心程序711,处理器1将主存储器2的一部分建立为一虚拟磁盘(RAMdisk)21,其格式化规格符合上述第二文件系统(步骤S32)。举例来说,处理器1根据核心程序711建立一目录为挂载点(mount point),建立上述第二文件系统(以上述第二文件系统的规格格式化虚拟磁盘21),将第二文件系统挂载于上述目录。举例来说,上述第一文件系统是软件公司的视窗操作系统的文件系统(NT File System,简称NTFS),而核心程序711是可以支援多种文件系统的Linux操作系统的核程程序。核心程序711可以支援上述第一文件系统的文件读取操作,及上述建立虚拟磁盘21的操作,并将虚拟磁盘21建立为ext2文件系统。According to the
根据核心程序711,处理器1取得在上述预定目录的虚拟磁盘压缩文件(步骤S34),并将函式库712解压缩(步骤S36)。According to the
处理器1将第二操作系统71,包含解压缩的函式库712,从分割区51的上述第一文件系统中载入到虚拟磁盘21中(步骤S38)。由于第二操作系统71支援第二文件系统,第二操作系统71可以在虚拟磁盘21的操作环境中正常地读写数据、增删文件、执行应用程序及取用函式库712。此时已完成利用第二操作系统71开机的操作,电脑装置10执行第二操作系统71,例如进入影音家电操作模式(AV mode)(步骤S40)。The
上述电脑开机方法可以利用电脑程序实作。上述电脑程序存储于一种电脑可读取储存媒体,用以执行如上所述的步骤。The above-mentioned computer booting method can be implemented by using a computer program. The above-mentioned computer program is stored in a computer-readable storage medium for executing the above-mentioned steps.
如图5所示,储存媒体60用以储存一电脑程序620,用以实现电脑开机方法。其电脑程序包含四个逻辑,分别为安装逻辑621、载入逻辑622、操作系统核心逻辑623、与操作系统函式库逻辑624。As shown in FIG. 5 , the
安装逻辑621用以将载入逻辑622安装至一储存装置中,并储存操作系统核心逻辑623、及操作系统函式库逻辑624至上述储存装置一分割区中,其中此分割区已安装另一操作系统,并且以此另一操作系统的文件系统格式化。载入逻辑622用以载入操作系统核心逻辑623至一主存储器。操作系统核心逻辑623用以将上述主存储器的一部分建立为虚拟磁盘,并载入操作系统函式库逻辑624。上述虚拟磁盘的格式化不同于上述分割区。The
利用主存储器2建立虚拟磁盘21的第二文件系统,让电脑装置可以从分割区15载入第二操作系统71开机,而不需占用另外的分割区。因此,上述的电脑开机方法可以让电脑装置开机时利用存在于其储存装置中同一分割区,却各支援不同文件系统的操作系统,以进行开机。Using the
虽然本发明已以较佳实施例揭示如上,然而其并非用以限定本发明,任何熟悉本技术的人员,在不脱离本发明的精神和范围内,当可作各种的等效的变化或替换,因此本发明的保护范围当视后附的本申请权利要求范围所界定的为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person familiar with the art may make various equivalent changes or modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the appended claims of the application.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200510116229A CN1952890B (en) | 2005-10-21 | 2005-10-21 | Computer starting method and computer device using same |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200510116229A CN1952890B (en) | 2005-10-21 | 2005-10-21 | Computer starting method and computer device using same |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1952890A true CN1952890A (en) | 2007-04-25 |
| CN1952890B CN1952890B (en) | 2010-05-05 |
Family
ID=38059243
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200510116229A Expired - Lifetime CN1952890B (en) | 2005-10-21 | 2005-10-21 | Computer starting method and computer device using same |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1952890B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100524286C (en) * | 2007-10-29 | 2009-08-05 | 中国科学院计算技术研究所 | Multiple core processing system and its management method |
| CN102955706A (en) * | 2011-08-30 | 2013-03-06 | 比亚迪股份有限公司 | Installing method and boot loading method for dual operation system |
| CN103959269B (en) * | 2011-12-01 | 2017-08-15 | 汤姆逊许可公司 | The method of the content-data of storage content receiver and the control device of association in the portable storage device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100673681B1 (en) * | 2004-03-25 | 2007-01-24 | 엘지전자 주식회사 | How to run Instant On on your personal computer |
-
2005
- 2005-10-21 CN CN200510116229A patent/CN1952890B/en not_active Expired - Lifetime
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100524286C (en) * | 2007-10-29 | 2009-08-05 | 中国科学院计算技术研究所 | Multiple core processing system and its management method |
| CN102955706A (en) * | 2011-08-30 | 2013-03-06 | 比亚迪股份有限公司 | Installing method and boot loading method for dual operation system |
| CN102955706B (en) * | 2011-08-30 | 2016-03-30 | 比亚迪股份有限公司 | A kind of installation method of dual operating systems and guiding loading method |
| CN103959269B (en) * | 2011-12-01 | 2017-08-15 | 汤姆逊许可公司 | The method of the content-data of storage content receiver and the control device of association in the portable storage device |
| US10055425B2 (en) | 2011-12-01 | 2018-08-21 | Thomson Licensing | Method for storing content data of a content receiver in a portable storage device, and associated control device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1952890B (en) | 2010-05-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7516319B2 (en) | Method for booting a computer with second OS involves formatting portion of main memory with a second file system to generate ramdisk | |
| USRE41011E1 (en) | Apparatus and method for controlling booting operation of computer system | |
| CN102955706B (en) | A kind of installation method of dual operating systems and guiding loading method | |
| US20030233534A1 (en) | Enhanced computer start-up methods | |
| KR20000052313A (en) | Computing system and operating method for booting and running a graphical user interface(gui) with r/w hard drive partition unavailable | |
| CN101650660A (en) | Booting a computer system from a central storage | |
| CN102135893A (en) | Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server | |
| US20050210476A1 (en) | Architecture and method for sharing application programs between multiple operating systems with feature of electricity saving | |
| US8370612B2 (en) | Computer system with built-in hidden two operating devices | |
| CN102135923A (en) | Method for integrating operating system into BIOS (Basic Input/Output System) chip and method for starting operating system | |
| CN1952890B (en) | Computer starting method and computer device using same | |
| US20070136568A1 (en) | Method for making a bootable USB storage device | |
| TWI559227B (en) | Computer system having two built-in operating devices that can be dynamically powered on or powered off | |
| CN101276281A (en) | How to install the driver | |
| US8762699B1 (en) | System, apparatus, and method for initiating a reboot of a personal computer system by pressing a button on an attached storage device and causing the operating system on the attached storage device to be booted | |
| US20060168440A1 (en) | OS selection methods and computer systems utilizing the same | |
| CN100492291C (en) | Computer system with instant start function and processing method thereof | |
| JP5673844B2 (en) | Information processing apparatus, basic system activation method, and basic system activation program | |
| JP2011008753A (en) | Method and system for executing file stored in hidden storage area of storage device | |
| CN100504776C (en) | Multi-mode computer system and method of operation | |
| CN100547550C (en) | System and method for installing a hypervisor after installing and loading a user operating system | |
| CN1737758B (en) | Method for starting computer multimedia function | |
| KR100788951B1 (en) | Operating system repair method using external storage media | |
| CN100403262C (en) | Computer device starting method and computer device using same | |
| CN100498706C (en) | Method for quickly starting computer device by data disc with built-in operating system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CX01 | Expiry of patent term |
Granted publication date: 20100505 |
|
| CX01 | Expiry of patent term |