CN109901845A - The production method of desktop operating system boot disk - Google Patents
The production method of desktop operating system boot disk Download PDFInfo
- Publication number
- CN109901845A CN109901845A CN201711307108.5A CN201711307108A CN109901845A CN 109901845 A CN109901845 A CN 109901845A CN 201711307108 A CN201711307108 A CN 201711307108A CN 109901845 A CN109901845 A CN 109901845A
- Authority
- CN
- China
- Prior art keywords
- boot disk
- operating system
- grub
- boot
- production method
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention relates to a kind of production method of desktop operating system boot disk, includes the following steps: to enter operating system, be inserted into boot disk;Carry boot disk;Bootloader is installed, boot catalogue is generated under mount point;Image file storage catalogue is created under mount point;Grub.cfg file is created under/boot/grub2 catalogue, or directly the file copy of the same name under system/boot/grub2/ comes;It will be under the system image file copy to iso catalogue that need to guide installation;Adjust grub.cfg file.Using boot disk made by production method provided by the invention when carrying out system installation, starting and system installation process are consistent with system image CD, and especially the starting speed of system and installation speed can have greatly improved when using USB3.0 equipment.
Description
Technical field
The present invention relates to os starting technical fields, and in particular to a kind of production side of desktop operating system boot disk
Method.
Background technique
Ordinary user installs Windows operating system usually there are two types of mode: one is by engraving system image CD,
Another kind fires boot disk as shown in Figure 1, firing software (such as Ultra ISO) using professional image file.Both modes pair
In Linux with can be used per family, but CD burning mode takes a long time and PC has phased out CD-ROM equipment, user
It will receive limitation using this method;And it fires boot disk there is also following defects:
1, need to install corresponding firing software, for that can only be used under windows platform as Ultra ISO application,
For (SuSE) Linux OS platform using being limited, similarly there is this in mirror image of imprinting CDs.
2, the firing boot disk time is longer, also needs to fire again when replacing the boot disk of other operating systems.
3, formatted storage equipment (such as USB flash disk) is needed, will affect user for storing making for equipment after having made boot disk
With.
The user of current whole world Linux desktop operating system has reached 2% or so, and as operating system domesticizes
Promotion for security of system demand of propulsion and user, more and more users put into Linux desktop operating system
Camp.
A kind of more friendly method is needed for these reasons to carry out the production of desktop operating system boot disk, especially
It is the production of Linux desktop operating system boot disk.
Summary of the invention
To solve the shortcomings of the prior art, the present invention provides a kind of production sides of desktop operating system boot disk
Method includes the following steps:
Step S1: enter desktop operating system, insertion starting disc apparatus;
Step S2: carry starts disc apparatus, if boot disk is to make for the first time, after thening follow the steps S3-S5, then executes step
S6;If boot disk is not to make for the first time, directly execution step S6;
Step S3: installation Bootloader generates boot catalogue under mount point;
Step S4: image file storage catalogue is created under mount point;
Step S5: grub.cfg file is created under/boot/grub2 catalogue, or directly will production host table operation system
Under system/boot/grub2/grub.cfg file copy to starting disc apparatus/boot/grub2 catalogue under;
Step S6: will be under the system image file copy to iso catalogue that need to guide installation;
Step S7: adjustment grub.cfg file.
Wherein, in the step S3, Bootloader is installed using the grub that desktop operating system carries.
Wherein, in the step S7, by code configuration fractional additional to grub.cfg file corresponding part, and needs are adjusted
Modifying point.
Wherein, the modifying point of required adjustment include mirror image title (ISO_NAME), mirror image label (CDLABEL_ARG) and
Grub menu shows contents such as content (GRUB_MENU).
Wherein, the code configuration part added is the part menuemtry.
Wherein, in the step S8, grub.cfg file adjusted are as follows:
###BEGIN/etc/grub.d/10_linux###
menuentry'GRUB_MENU'{
load_video
Set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
Set root='hd0, msdos l'
loopback loop(hd0,1)/iso/ISO_NAME
Linux16 (loop)/isolinux/vmlinuz0root=live:CDLABEL=CDLABEL_
ARGrootfstype=auto rord.live.image iso-scan/filename=/iso/ISO_NAMEquiet
rhgb
initrd16(loop)/isolinux/initrd0.img
}。
Wherein, in grub.cfg file adjusted, mirror image label (CDLABEL_ARG) can be by checking image file category
Property obtain.
Wherein, in the step S2, if boot disk is to make for the first time, need to confirm that the following situation of boot disk is in normal
State: starting disc apparatus can normally be read and write, and starting disc apparatus has existed respective partition, the subregion of storage program area mirror image
Under have enough remaining spaces.
Using boot disk made by production method provided by the invention when carrying out system installation, starting and system peace
Dress process is consistent with system image CD, and especially the starting speed of system and installation speed have very when using USB3.0 equipment
Big promotion.
Detailed description of the invention
Fig. 1: existing desktop operating system boot disk production process;
Fig. 2: desktop operating system boot disk production process of the invention.
Specific embodiment
In order to have further understanding to technical solution of the present invention and beneficial effect, it is described in detail with reference to the accompanying drawing
Technical solution of the present invention and its beneficial effect of generation.
For various drawbacks existing for existing boot disk production method, desktop operating system boot disk provided by the invention
Production method, main thought is not install additional boot disk production application program, but the grub carried based on system
Using the production for realizing system boot disk, grub only uses the installation of bootloader when making for the first time, more when needing
When other operating systems are installed in secondary and repetition guidance, it is only necessary to adjust configuration file and replacement system image file, make
Starting disc apparatus may be reused, improve read and writing speed.
Specifically, being desktop operating system boot disk production process of the invention, of the invention opens incorporated by reference to shown in Fig. 2
Moving plate production method includes the following steps: the boot disk made for the first time
1, into after operating system, insertion starting disc apparatus (usually USB3.0 stores equipment, calls USB flash disk in the following text);
2, if it is the equipment making boot disk is used for the first time, need to confirm that equipment situation is in normal condition:
Starting disc apparatus can normally be read and write;
Starting disc apparatus has existed respective partition;
There are enough remaining spaces under the subregion of storage system mirror image.
3, carry starts disc apparatus, and if device node is /dev/sdb1, mount point is /mnt/usb;
mount/dev/sdb1/mnt/usb。
4, the grub application installation BootLoader carried using system, can generate boot catalogue under mount point at this time;
Grub2-install--force--no-floppy--root-directory=/mnt/usb/dev/sdb.
5, image file storage catalogue is created under mount point, the catalogue situation under device node is as follows at this time:
6, grub.cfg file is created under/boot/grub2 catalogue, can also directly by under desktop operating system/
Boot/grub2/grub.cfg file copies come.
7, the system image for guiding installation will be needed to copy under iso catalogue.
8, grub.cfg file is adjusted, wherein XXX certain customers are customized as needed, the part * * * namely mirror image label
By checking that image file obtains:
If 9, user needs to add multiple guidance systems, by step 8 code configuration part namely menuemtry
More parts of fractional additional arrive grub.cfg file corresponding part, and adjust need modifying point (such as mirror image title, mirror image label and
Grub menu shows content).
For not being the operating system for making boot disk for the first time, step 4 can be saved to step 6, will directly need to guide peace
The system image file copy of dress adjusts grub.cfg file to iso catalogue again.
Boot disk production method provided by the invention does not need installation other application in addition to the grub of system standard application
Program carries out boot disk production.It and can be in the different os starting of adjustment and installation, it is only necessary to adjust configuration file and replace
System image file is changed, burned process is not needed.It is made relative to more complicated USB flash disk is directed under existing operating system
Tool needs the case where installing corresponding application program, and customizedization of the invention is strong, and use is more flexible.
Boot disk production method provided by the invention is applicable to existing various general hard disks, such as mechanical disk and admittedly
State hard disk is equally applicable to USB3.0 storage equipment etc..Because of the deviation of operating system, the configuration file for needing to adjust has one
A little deviations.
Using boot disk made by production method provided by the invention when carrying out system installation, starting and system peace
Dress process is consistent with system image CD, and especially the starting speed of system and installation speed have very when using USB3.0 equipment
Big promotion.Also, there can only be the CD after an operating system and imprinting can not for existing operating system mirror optical disk
The case where being repeatedly written, the present invention can guide and install multiple operating systems in boot disk, to greatly promote installation
Efficiency and saving device resource.
Desktop operating system boot disk production method of the invention is suitable for several operation systems, is particularly suitable for Linux
Operating system.
It is so-called " boot disk " in the present invention, it is a kind of storage that system can be guided to start and installed to system
Equipment, this equipment are usually USB flash disk.
It is so-called " Grub " in the present invention, refer to the multiple operating system startup program from GNU project.
Although the present invention is illustrated using above-mentioned preferred embodiment, the protection model that however, it is not to limit the invention
It encloses, anyone skilled in the art are not departing within the spirit and scope of the present invention, and opposite above-described embodiment carries out various changes
It is dynamic still to belong to the range that the present invention is protected with modification, therefore protection scope of the present invention subjects to the definition of the claims.
Claims (8)
1. a kind of production method of desktop operating system boot disk, which comprises the steps of:
Step S1: entering desktop operating system, is inserted into boot disk;
Step S2: carry boot disk after thening follow the steps S3-S5, then executes step S6 if boot disk is to make for the first time;If opening
Moving plate is not to make for the first time, then directly executes step S6;
Step S3: installation Bootloader generates boot catalogue under mount point;
Step S4: image file storage catalogue is created under mount point;
Step S5: creating grub.cfg file under/boot/grub2 catalogue, or directly by under desktop operating system /boot/
Under grub2/grub.cfg file copy to/boot/grub2 catalogue;
Step S6: will be under the system image file copy to iso catalogue that need to guide installation;
Step S7: adjustment grub.cfg file.
2. the production method of desktop operating system boot disk as described in claim 1, it is characterised in that: in the step S3,
Bootloader is installed using the grub that desktop operating system carries.
3. the production method of desktop operating system boot disk as described in claim 1, it is characterised in that: in the step S7,
Grub.cfg file corresponding part is arrived by more parts of code configuration fractional additional, and adjusts and needs modifying point.
4. the production method of desktop operating system boot disk as claimed in claim 3, it is characterised in that: in the step S7,
The modifying point of required adjustment includes that mirror image title, mirror image label and grub menu show content.
5. the production method of desktop operating system boot disk as claimed in claim 3, it is characterised in that: in the step S7,
The code configuration part added is the part menuemtry.
6. the production method of desktop operating system boot disk as described in claim 1, it is characterised in that: in the step S8,
Grub.cfg file adjusted are as follows:
###BEGIN/etc/grub.d/10_linux###
menuentry'XXX'{
load_video
Set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
Set root='hd0, msdos l'
loopback loop(hd0,1)/iso/XXX.iso
Linux16 (loop)/isolinux/vmlinuz0root=live:CDLABEL=CDLABEL_ARG rootfstype
=auto rord.live.image iso-scan/filename=/iso/XXX.iso quiet rhgb
initrd16(loop)/isolinux/initrd0.img
}。
7. the production method of desktop operating system boot disk as claimed in claim 6, it is characterised in that: adjusted
In grub.cfg file, CDLABEL_ARG is by checking that image file obtains.
8. such as the production method of desktop operating system boot disk of any of claims 1-7, it is characterised in that: described
In step S2, if boot disk is to make for the first time, need to confirm that the following situation of boot disk is in normal condition: boot disk can be just
Often read-write, boot disk have existed respective partition, there is enough remaining spaces under the subregion of storage program area mirror image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711307108.5A CN109901845A (en) | 2017-12-11 | 2017-12-11 | The production method of desktop operating system boot disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711307108.5A CN109901845A (en) | 2017-12-11 | 2017-12-11 | The production method of desktop operating system boot disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109901845A true CN109901845A (en) | 2019-06-18 |
Family
ID=66942120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711307108.5A Pending CN109901845A (en) | 2017-12-11 | 2017-12-11 | The production method of desktop operating system boot disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109901845A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105988717A (en) * | 2015-02-09 | 2016-10-05 | 北京蓝光引力网络股份有限公司 | System installing method based on USB flash disk |
CN113066515A (en) * | 2021-04-14 | 2021-07-02 | 统信软件技术有限公司 | Optical disc recording method, computing equipment and readable storage medium |
CN113076114A (en) * | 2021-04-13 | 2021-07-06 | 成都安恒信息技术有限公司 | Method for upgrading system in environment without network and peripheral based on USB |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567058A (en) * | 2011-12-26 | 2012-07-11 | 中标软件有限公司 | Method for preparing image file for installing Linux operating system |
CN103544069A (en) * | 2012-07-18 | 2014-01-29 | 肖祥省 | Fault-tolerant multiple startup system disk created with one area for multiple purposes |
CN104375867A (en) * | 2014-11-25 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for manufacturing ISO mirror image by customizing Linux system |
CN106502739A (en) * | 2016-10-31 | 2017-03-15 | 北京深之度科技有限公司 | Method, device and the computing device that boot disk is made using movable storage device |
-
2017
- 2017-12-11 CN CN201711307108.5A patent/CN109901845A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567058A (en) * | 2011-12-26 | 2012-07-11 | 中标软件有限公司 | Method for preparing image file for installing Linux operating system |
CN103544069A (en) * | 2012-07-18 | 2014-01-29 | 肖祥省 | Fault-tolerant multiple startup system disk created with one area for multiple purposes |
CN104375867A (en) * | 2014-11-25 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for manufacturing ISO mirror image by customizing Linux system |
CN106502739A (en) * | 2016-10-31 | 2017-03-15 | 北京深之度科技有限公司 | Method, device and the computing device that boot disk is made using movable storage device |
Non-Patent Citations (3)
Title |
---|
GALAXYSD: "使用GRUB2引导ISO镜像", 《HTTPS://GALAXYSD.US/20130425/GRUB2-BOOT-FROM-ISO》 * |
RENLIFENG1: "使用grub2制作U盘启动盘安装操作系统", 《HTTPS://BLOG.51CTO.COM/RENLIFENG/1835589》 * |
邵国金: "《UNIX系统与软件开发》", 31 October 2013 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105988717A (en) * | 2015-02-09 | 2016-10-05 | 北京蓝光引力网络股份有限公司 | System installing method based on USB flash disk |
CN113076114A (en) * | 2021-04-13 | 2021-07-06 | 成都安恒信息技术有限公司 | Method for upgrading system in environment without network and peripheral based on USB |
CN113066515A (en) * | 2021-04-14 | 2021-07-02 | 统信软件技术有限公司 | Optical disc recording method, computing equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10482267B2 (en) | Linux based android container platform, device equipped with the same and method for apply security system in Linux based android container environment | |
US11036491B1 (en) | Identifying and resolving firmware component dependencies | |
CN109901845A (en) | The production method of desktop operating system boot disk | |
US9864736B2 (en) | Information processing apparatus, control method, and recording medium | |
US8132187B2 (en) | Driver installer usable in plural environments | |
US20070169018A1 (en) | Method and an apparatus for translating programming language code | |
US20070169017A1 (en) | Method and apparatus for translating an application programming interface (API) call | |
CN103902265A (en) | Application implementation method and application implementation device | |
JP2005085278A (en) | System and method for communication between computers through integrated hardware device | |
US20160092281A1 (en) | Information processing apparatus, method for controlling the same, and storage medium | |
US20210096891A1 (en) | Systems and methods for localizing a user interface based on pre-defined settings stored in a personal storage device | |
US10452635B2 (en) | Synchronizing files on different computing devices using file anchors | |
US8458686B2 (en) | Guaranteeing authentic firmware for purposes of cloning | |
US8364598B2 (en) | Use of software update policies | |
US20130321839A1 (en) | Information processing apparatus, recording medium, and control method | |
CN104572140B (en) | A kind of method, apparatus and system of operating system transplantation | |
CN113094085A (en) | Component integration method and device, computer-readable storage medium and electronic equipment | |
JP2010033421A (en) | Integrated installer | |
US20150089490A1 (en) | Information processing system, information processing apparatus, device, software installation method, and storage medium | |
CN105389495A (en) | Method for externally resetting password of windows virtual machine | |
US9940334B2 (en) | Image forming apparatus and control method thereof | |
CN106843921B (en) | Resource loading method and device | |
CN101751264B (en) | Method for simplifying application program for installing window operating system | |
US11023216B2 (en) | Storage medium, information processing apparatus, and control method | |
CN114741035A (en) | Method for reading EDID data of Linux system adaptive loongson complete machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190618 |
|
RJ01 | Rejection of invention patent application after publication |