USB flash disk based method for quickly and automatically installing operating system

An operating system and automatic installation technology, applied in the direction of program control device, program loading/starting, program control design, etc., can solve the problem of PXE network not being fast, compact, convenient, requiring manual configuration, and taking a long time. Inexpensive, time-saving, time-consuming effects

Inactive Publication Date: 2016-03-30
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
5 Cites 19 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] (1) The use of PXE installation requires the establishment of a PXE server and PXE network, especially the use of 10 Gigabit Ethernet ports for PXE installation, which requires the purchase of 10 Gigabit fiber optic switches, which is expensive
And sometimes there are not many machines that need to install the operating system, but the PXE network does not have the characteristics of fast, small, convenient, etc.
[0004] (2) Use the CD-ROM to guide the system CD-ROM in...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The present invention provides a USB flash disk based method for quickly and automatically installing an operating system, and relates to the field of server operating system installation. The method specially comprises: starting a customized Linux system by using a USB flash disk; performing RAID auto-configuration on a machine in the system; partitioning a virtual disk by using a mbr/pbr file ejected by a disk dd of a machine normally installed with the operating system; and decompressing a file system compressed by machine packing to a corresponding partition to achieve the installation of the operating system. The installation method is high in automation level. The entire installation process only requires a few minutes, thereby greatly shortening the installation time. Meanwhile the USB flash disk based method for quickly and automatically installing the operating system is supportive of Windows and Linux installation and is high in extendibility; and other operating systems still can be added when needed.

Application Domain

Technology Topic

Auto-configurationFile system +5

Image

  • USB flash disk based method for quickly and automatically installing operating system
  • USB flash disk based method for quickly and automatically installing operating system
  • USB flash disk based method for quickly and automatically installing operating system

Examples

  • Experimental program(1)

Example Embodiment

[0018] The content of the present invention will be described in more detail below:
[0019] a) Build a Linux USB boot disk.
[0020] 1). Install a Linux operating system on the machine, select minimal installation, and install all the required software, including server network card, RIAD card driver and plug-in NTFS-3G that supports NTFS disk format. After the installation is complete, package the following folder with tar under / as the machine file system:
[0021] tar–jcvfrootfs.tar.bz2bindevetchomeliblib64mediamiscmntnetoptrootsbinselinuxsrvtmpusrvar
[0022] 2). Decompress initramfsimg in the boot directory.
[0023] cpio-div
[0024] 3). Modify the startup script to mount and decompress the file system image created after the kernel is started, adding tar,
[0025] Commands such as date and xz are compressed to produce initramfs, and the kernel preparation is now complete.
[0026] cd./initramfs
[0027] find./|cpio-c-o> ../initramfs.img
[0028] cd..
[0029] gzip./initramfs.img
[0030] 4). Copy initramfs and vmlinuz to the iso/boot/isolinux/ directory.
[0031] 5). Unzip rootfs.tar.bz2 to the rootfs folder, make rootfs.img.xz and copy it to the iso/rootfs/ directory.
[0032] genext2fs-d./rootfs-b600000-i8k./rootfs.img
[0033] tar-cvfrootfs.img.tar./rootfs.img
[0034] xz-k-v-9./rootfs.img.tar
[0035] mv./rootfs.img.tar.xziso/rootfs/
[0036] 6). Make ISOimg
[0037] linuxroot="./iso"
[0038] mkisofs-allow-lowercase-relaxed-filenames-allow-multidot-max-ISO-9660-filenames\-lJRV"osinstall"-bboot/isolinux/isolinux.bin-cboot/isolinux/boot.cat\-no-emul-boot -boot-load-size4-boot-info-table-o./osinstall.iso./${linuxroot}
[0039] At this point, the Linux USB boot disk image is completed, and the Linux boot disk burning tool is used to burn this image to the U disk.
[0040] b) Make a compressed package of the operating system to be installed, manually configure RAID on the machine, manually install the operating system to be installed on the machine first, restart after installation, and insert the Linux USB boot disk.
[0041] c) The client chooses to boot from the U disk and enters the Linux system. Under this system, dd out the mbr/pbr out of the disk with the operating system on the machine, and only dd out 512 bytes, or it can be larger than 512 bytes , Dd out a file of 1M size as follows and name it br.bin.
[0042]
[0043] d) Mount the disk system partition to the system, pack and compress all the files, as the file compression package of the operating system, named os.zip.
[0044]
[0045] e) Put br.bin and os.zip in the U disk as the disk boot files and operating system files of all machines to be installed.
[0046] f) Write a script. First configure the machine disk to the required RAID. After the RAID is formed, the Linux system can recognize the virtual disk, write br.bin to the disk, and the disk will have the master boot record MBR. Although the machine virtual disk has MBR, the kernel only reads it once at startup, so the MBR entered by dd does not take effect immediately, and the kernel needs to read the partition table again. After re-reading the partition table, the system can recognize the partition, and then format the partition, select the partition format according to the system requirements, such as FAT32, NTFS, ext3, ext4 and other formats. After formatting, mount the partition to the Linux system, and decompress the operating system compression package to the partition. The following is an example of a script. The 8 disks of the machine are formed into RAID6, dd is entered into the disk boot file, the partition is formatted into vfat format, and the system file is decompressed.
[0047]
[0048] Add the script to the Linux USB boot disk file system, the directory is etc/rc.d/rc.local, the machine will automatically run the script after booting Linux from the U disk to automatically configure RAID and automatically install the operating system.
[0049] Through the above installation method, you only need to prepare the mbr file and make the operating system file compression package in advance, you can use the U disk to install the operating system easily and quickly, which greatly saves the test time and labor cost; the whole process is automated without manual participation , Supports the installation of Linux and Windows operating systems, and can still add other operating systems when needed, with high flexibility and strong applicability.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Classification and recommendation of technical efficacy words

  • Save installation time
  • High degree of automation

Full-automatic flexible assembly line of light emitting diode (LED) bulb lamp

InactiveCN102896494AIncreased reliability and automationHigh degree of automationAssembly machinesLight sourceStructure based
Owner:SHANGHAI RADIO EQUIP RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products