Summary of the invention
In view of this, the object of the invention is to propose the method and apparatus of a kind of Windows environment installation and operation class Unix, realized installation and operation class Unix operating system under Windows operating system environment.
Based on the method for above-mentioned purpose a kind of Windows environment installation and operation class Unix provided by the invention, comprise the following steps:
The image file of the boot of class Unix operating system and the support of class Unix booting operating system program is copied to Windows system partitioning;
The boot of class Unix operating system is installed on Windows system partitioning;
Revise Windows and start configuration file, class Unix boot is added in this configuration file;
Start class Unix operating system.
Alternatively, described startup class Unix operating system comprises the following steps:
Start Main Boot Record;
Be written into Windows boot according to the address of preserving in Main Boot Record, start Windows boot;
Start class Unix boot by Windows boot;
Class Unix boot starts the reflection driving that class Unix boot is supported;
The reflection of class Unix boot support drives the image file of class Unix boot support is carried out to carry;
Class Unix operating system nucleus and class Unix operating system root file system in the image file that loading classes Unix boot is supported;
Class Unix operating system nucleus in the image file of class Unix boot support is compressed to read-only image file system and carry out carry; And
Enter class Unix operating system.
Further, after the described class Unix operating system nucleus by the image file of class Unix boot support compresses read-only image file system carry, class Unix boot is deleted.
Based on above-mentioned purpose, the present invention also provides the device of a kind of Windows environment installation and operation class Unix, and the device of described Windows environment installation and operation class Unix comprises installs class Unix operating system device and coupled startup class Unix operating system device; Described installation class Unix operating system device first arrives class Unix operating system installation under Windows environment, and then described startup class Unix operating system device is by the class Unix operating system under Windows environment.
Alternatively, described installation class Unix operating system device comprises:
Replication module, for copying to Windows system partitioning by the image file of the boot of class Unix operating system and the support of class Unix booting operating system program;
Bootstrap program module is installed, is connected with described replication module, for the boot of class Unix operating system is installed on Windows system partitioning; And
Modified module, is connected with described installation bootstrap program module, starts configuration file for revising Windows, and class Unix boot is added in this configuration file.
Alternatively, described startup class Unix operating system device comprises:
Start module, for the reflection of Windows boot, class Unix boot and the support of class Unix boot being driven and started by starting Main Boot Record;
Carry image file module, is connected with startup module, drives the image file of class Unix boot support is carried out to carry for the reflection of class Unix boot support;
Load-on module, is connected with described carry image file module, class Unix operating system nucleus and the class Unix operating system root file system of the image file of supporting for loading classes Unix boot; And
Carry image file system module, is connected with described load-on module, carries out carry for the class Unix operating system nucleus of the image file of class Unix boot support is compressed to read-only image file system.
Further, described startup module starts Main Boot Record, is then written into Windows boot according to the address of preserving in Main Boot Record, starts Windows boot; Start class Unix boot by Windows boot; Last class Unix boot starts the reflection driving that class Unix boot is supported.
Further, described class Unix boot starts the reflection driving that class Unix boot is supported, this reflection drives as loopback image format.
Further, described carry image file system module, completing after carry class Unix operating system nucleus compresses read-only image file system, is deleted class Unix boot.
As can be seen from above, the method and apparatus of Windows environment installation and operation class Unix provided by the invention, by the image file of the boot of class Unix operating system and the support of class Unix booting operating system program is copied to Windows system partitioning, and modification Windows startup configuration file has completed the work that class Unix operating system is installed; Start by class Unix boot the reflection driving that class Unix boot is supported, thereby complete loading classes Unix operating system nucleus and class Unix operating system root file system, and carry class Unix operating system nucleus compresses read-only image file system and has completed the work that starts class Unix operating system.The present invention has greatly simplified the installation and operation process of class Unix operating system, has realized installation and operation class Unix operating system under Windows operating system environment simultaneously.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
In embodiments of the present invention, the method for installation and operation class Unix operating system has comprised first installs class Unix operating system, then starts class Unix operating system.
Under Windows environment, start the installation procedure of class Unix operating system.Consult shown in Fig. 1, for the method flow schematic diagram of class Unix operating system is installed under embodiment of the present invention Windows environment, comprising:
Step 101, copies to Windows system partitioning by the image file of the boot of class Unix operating system and the support of class Unix booting operating system program.
Step 102 is installed the boot of class Unix operating system on Windows system partitioning, and the boot of class Unix operating system can guide and start the read-only image file of class Unix operating system.
Step 103, revises Windows and starts configuration file, and class Unix boot is added in this configuration file.
After class Unix operating system installation program completes, start class Unix operating system.Consult shown in Fig. 2, for moving the method flow schematic diagram of class Unix operating system under embodiment of the present invention Windows environment, comprising:
Step 201, starts Main Boot Record.
Step 202, is written into Windows boot according to the address of preserving in Main Boot Record, starts Windows boot.
Step 203, starts class Unix boot by Windows boot.Due in the time that class Unix operating system is installed, Windows is started to configuration file and revise, add class Unix boot.So the Windows boot in step 203 can start class Unix boot.
Step 204, class Unix boot starts the reflection driving that class Unix boot is supported.In an embodiment of the present invention, the loopback image format that adopts class Unix boot to support.
Step 205, the reflection of class Unix boot support drives the image file of class Unix boot support is carried out to carry.
Step 206, class Unix operating system nucleus and class Unix operating system root file system in the image file that loading classes Unix boot is supported.
Step 207, compresses read-only image file system by the class Unix operating system nucleus in the image file of class Unix boot support and carries out carry.
Step 208, finally enters class Unix operating system.
The device of the Unix of installation and operation class in embodiments of the present invention, operating system has comprised installs class Unix operating system device and coupled startup class Unix operating system device.
Consult shown in Fig. 3, for the structural representation of class Unix operating system device is installed under embodiment of the present invention Windows environment, wherein:
Replication module 301, its major function comprises:
The image file of the boot of class Unix operating system and the support of class Unix booting operating system program is copied to Windows system partitioning.
Bootstrap program module 302 is installed, is connected with replication module 301, its major function comprises:
The boot of class Unix operating system is installed on Windows system partitioning, and the boot of class Unix operating system can guide and start the read-only image file of class Unix operating system.
Modified module 303, is connected with installation bootstrap program module 302, revises Windows and starts configuration file, and class Unix boot is added in this configuration file.
Consult shown in Fig. 4, for moving the structural representation of class Unix operating system device under embodiment of the present invention Windows environment, wherein:
Start module 401, its major function comprises:
1) start Main Boot Record.
2) be written into Windows boot according to the address of preserving in Main Boot Record, start Windows boot.
3) start class Unix boot by Windows boot.Due in the time that class Unix operating system is installed, Windows is started to configuration file and revise, add class Unix boot.Therefore, Windows boot can start class Unix boot.
4) class Unix boot starts the reflection driving that class Unix boot is supported.In an embodiment of the present invention, the loopback image format that adopts class Unix boot to support.
Carry image file module 402, is connected with startup module 401, and its major function comprises: the reflection of class Unix boot support drives the image file of class Unix boot support is carried out to carry.
Load-on module 403, is connected with carry image file module 402, and its major function comprises: class Unix operating system nucleus and class Unix operating system root file system in the image file that loading classes Unix boot is supported.
Carry image file system module 404, is connected with load-on module 403, and its major function comprises:
1) the class Unix operating system nucleus in the image file of class Unix boot support is compressed to read-only image file system and carry out carry.
2) after carry, can enter class Unix operating system.
According to describing ground above, the present invention has realized the method and apparatus of a kind of Windows environment installation and operation class Unix, creationaryly propose to utilize class Unix boot to carry out installation and operation class Unix operating system, simplified greatly the installation and operation process of class Unix operating system; The present invention need to not launch installation and operation by class Unix operating system in internal memory, has realized the simplest installation and operation method; And, installation and operation class Unix directly carries out when operating system in the time that Windows moves, the zoned format that has solved Windows operating system and class Unix operating system is incompatible, and the problem that Windows operating system cannot access classes Unix operating system partition content; And, realize class Unix operating system revising under Windows operating system environment; Meanwhile, when having carried out after carry class Unix operating system nucleus compresses read-only image file system, can automatically deleting class Unix boot, discharged space; Finally, the method and apparatus of whole described installation and operation class Unix operating system is easy, compact, is easy to realize, thereby experiences for user provides one class Unix operating system installation and operation the most easily.
Those of ordinary skill in the field are to be understood that: the foregoing is only specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.