ISO文件内添加kickstart完成自动安装

目录

将待制作的centos iso文件挂载到/mnt/目录

将/mnt/下的所有文件复制到新的目录/tmp/mycentos

创建kickstart文件

修改启动文件

重新制作ISO文件

制作完成

kickstart可以实现根据配置自动安装操作系统,本文主要讲解如何让机器读取到iso文件后自动完成操作系统的安装

将待制作的centos iso文件挂载到/mnt/目录

[root@zyq mnt]# mount CentOS-7-x86_64-Minimal-1810.iso /mnt/                              

将/mnt/下的所有文件复制到新的目录/tmp/mycentos

[root@zyq mnt]# cp -r /mnt/* /tmp/mycentos/

创建kickstart文件

用专门的工具自动生成kickstart文件

[root@zyq mnt]# system-config-kickstart 

 

 

根据需求配置即可, 此处不一一展开,配置好的kickstart文件保存到/tmp/mycentos,文件内容如下:

[root@zyq mycentos]# cat ks.cfg 
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Install OS instead of upgrade
install
# Keyboard layouts
keyboard 'us'
# Root password
rootpw --iscrypted $1$syqbVAdn$mnphjnVzy6uga9UJoemO91
# System language
lang en_US
# Firewall configuration
firewall --disabled
# System authorization information
auth  --useshadow  --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx

# Reboot after installation
reboot
# System timezone
timezone Asia/Shanghai
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all
# Disk partitioning information
part / --fstype="xfs" --grow --size=10240

%packages
@core
%end

%post
#!/bin/bash

touch /tmp/zyq
%end

 kisckstart文件详解请参考以下连接

修改启动文件

isolinux/isolinux.cfg原文件中的内容

[root@zyq mnt]# cat isolinux/isolinux.cfg 
...
label linux
  menu label ^Install CentOS 7
  kernel vmlinuz
  append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 quiet
...

修改isolinux/isolinux.cfg中的以上内容为以下内容

[root@zyq mycentos]# cat isolinux/isolinux.cfg 
...
label linux
  menu label ^Install CentOS 7
  kernel vmlinuz
  append initrd=initrd.img inst.stage2=hd:LABEL=MYCENTOS inst.ks=hd:LABEL=MYCENTOS:/ks.cfg quiet
...

 “MYCENTOS”可以任意命名,后面mkisofs时候保持一致就好

重新制作ISO文件

[root@zyq mycentos]# mkisofs -o mycentos.iso -input-charset utf-8 -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T -joliet-long -V MYCENTOS /tmp/mycentos/
genisoimage 1.1.11 (Linux)
Scanning /tmp/mycentos/
Scanning /tmp/mycentos/EFI
Scanning /tmp/mycentos/EFI/BOOT
Scanning /tmp/mycentos/EFI/BOOT/fonts
Excluded: /tmp/mycentos/EFI/BOOT/fonts/TRANS.TBL
Excluded: /tmp/mycentos/EFI/BOOT/TRANS.TBL
Excluded: /tmp/mycentos/EFI/TRANS.TBL
Scanning /tmp/mycentos/LiveOS
Excluded: /tmp/mycentos/LiveOS/TRANS.TBL
Scanning /tmp/mycentos/Packages
Excluded: /tmp/mycentos/Packages/TRANS.TBL
Excluded: /tmp/mycentos/TRANS.TBL
Scanning /tmp/mycentos/images
Scanning /tmp/mycentos/images/pxeboot
Excluded: /tmp/mycentos/images/pxeboot/TRANS.TBL
Excluded: /tmp/mycentos/images/TRANS.TBL
Scanning /tmp/mycentos/isolinux
Excluded by match: /tmp/mycentos/isolinux/boot.cat
Excluded: /tmp/mycentos/isolinux/TRANS.TBL
Scanning /tmp/mycentos/repodata
Excluded: /tmp/mycentos/repodata/TRANS.TBL
Using RPM_G000.;1 for  /RPM-GPG-KEY-CentOS-Testing-7 (RPM-GPG-KEY-CentOS-7)
Using SYSTE000.RPM;1 for  /tmp/mycentos/Packages/systemd-219-62.el7.x86_64.rpm (systemd-libs-219-62.el7.x86_64.rpm)
Using SYSTE001.RPM;1 for  /tmp/mycentos/Packages/systemd-libs-219-62.el7.x86_64.rpm (systemd-sysv-219-62.el7.x86_64.rpm)
Using SG3_U000.RPM;1 for  /tmp/mycentos/Packages/sg3_utils-1.37-17.el7.x86_64.rpm (sg3_utils-libs-1.37-17.el7.x86_64.rpm)
Using SELIN000.RPM;1 for  /tmp/mycentos/Packages/selinux-policy-3.13.1-229.el7.noarch.rpm (selinux-policy-targeted-3.13.1-229.el7.noarch.rpm)
Using PYTHO000.RPM;1 for  /tmp/mycentos/Packages/python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm (python-backports-1.0-8.el7.x86_64.rpm)
Using PYTHO001.RPM;1 for  /tmp/mycentos/Packages/python-iniparse-0.4-9.el7.noarch.rpm (python-ipaddress-1.0.16-2.el7.noarch.rpm)
Using PYTHO002.RPM;1 for  /tmp/mycentos/Packages/python-libs-2.7.5-76.el7.x86_64.rpm (python-linux-procfs-0.4.9-4.el7.noarch.rpm)
Using PYTHO003.RPM;1 for  /tmp/mycentos/Packages/python-pycurl-7.19.0-19.el7.x86_64.rpm (python-pyudev-0.15-9.el7.noarch.rpm)
Using PYTHO004.RPM;1 for  /tmp/mycentos/Packages/python-pyudev-0.15-9.el7.noarch.rpm (python-perf-3.10.0-957.el7.x86_64.rpm)
Using PYTHO005.RPM;1 for  /tmp/mycentos/Packages/python-schedutils-0.4-6.el7.x86_64.rpm (python-setuptools-0.9.8-7.el7.noarch.rpm)
Using PYTHO006.RPM;1 for  /tmp/mycentos/Packages/python-setuptools-0.9.8-7.el7.noarch.rpm (python-slip-0.4.0-4.el7.noarch.rpm)
Using PYTHO007.RPM;1 for  /tmp/mycentos/Packages/python-slip-0.4.0-4.el7.noarch.rpm (python-slip-dbus-0.4.0-4.el7.noarch.rpm)
Using PLYMO000.RPM;1 for  /tmp/mycentos/Packages/plymouth-0.8.9-0.31.20140113.el7.centos.x86_64.rpm (plymouth-core-libs-0.8.9-0.31.20140113.el7.centos.x86_64.rpm)
Using PLYMO001.RPM;1 for  /tmp/mycentos/Packages/plymouth-core-libs-0.8.9-0.31.20140113.el7.centos.x86_64.rpm (plymouth-scripts-0.8.9-0.31.20140113.el7.centos.x86_64.rpm)
Using PCSC_000.RPM;1 for  /tmp/mycentos/Packages/pcsc-lite-1.8.8-8.el7.x86_64.rpm (pcsc-lite-ccid-1.4.10-14.el7.x86_64.rpm)
Using PCSC_001.RPM;1 for  /tmp/mycentos/Packages/pcsc-lite-ccid-1.4.10-14.el7.x86_64.rpm (pcsc-lite-libs-1.8.8-8.el7.x86_64.rpm)
Using PCIUT000.RPM;1 for  /tmp/mycentos/Packages/pciutils-3.5.1-3.el7.x86_64.rpm (pciutils-libs-3.5.1-3.el7.x86_64.rpm)
Using P11_K000.RPM;1 for  /tmp/mycentos/Packages/p11-kit-0.23.5-3.el7.x86_64.rpm (p11-kit-trust-0.23.5-3.el7.x86_64.rpm)
Using OPENS000.RPM;1 for  /tmp/mycentos/Packages/openscap-1.2.17-2.el7.x86_64.rpm (openscap-scanner-1.2.17-2.el7.x86_64.rpm)
Using OPENS001.RPM;1 for  /tmp/mycentos/Packages/openssh-7.4p1-16.el7.x86_64.rpm (openssh-clients-7.4p1-16.el7.x86_64.rpm)
Using OPENS002.RPM;1 for  /tmp/mycentos/Packages/openssh-clients-7.4p1-16.el7.x86_64.rpm (openssh-server-7.4p1-16.el7.x86_64.rpm)
Using OPENS003.RPM;1 for  /tmp/mycentos/Packages/openssl-1.0.2k-16.el7.x86_64.rpm (openssl-libs-1.0.2k-16.el7.x86_64.rpm)
Using NSS_S000.RPM;1 for  /tmp/mycentos/Packages/nss-softokn-3.36.0-5.el7_5.x86_64.rpm (nss-softokn-freebl-3.36.0-5.el7_5.x86_64.rpm)
Using NETWO000.RPM;1 for  /tmp/mycentos/Packages/NetworkManager-libnm-1.12.0-6.el7.x86_64.rpm (NetworkManager-team-1.12.0-6.el7.x86_64.rpm)
Using NETWO001.RPM;1 for  /tmp/mycentos/Packages/NetworkManager-team-1.12.0-6.el7.x86_64.rpm (NetworkManager-tui-1.12.0-6.el7.x86_64.rpm)
Using NETWO002.RPM;1 for  /tmp/mycentos/Packages/NetworkManager-tui-1.12.0-6.el7.x86_64.rpm (NetworkManager-wifi-1.12.0-6.el7.x86_64.rpm)
Using NETWO003.RPM;1 for  /tmp/mycentos/Packages/NetworkManager-wifi-1.12.0-6.el7.x86_64.rpm (NetworkManager-wwan-1.12.0-6.el7.x86_64.rpm)
Using NETWO004.RPM;1 for  /tmp/mycentos/Packages/NetworkManager-wwan-1.12.0-6.el7.x86_64.rpm (NetworkManager-1.12.0-6.el7.x86_64.rpm)
Using NETWO005.RPM;1 for  /tmp/mycentos/Packages/NetworkManager-1.12.0-6.el7.x86_64.rpm (NetworkManager-adsl-1.12.0-6.el7.x86_64.rpm)
Using NETWO006.RPM;1 for  /tmp/mycentos/Packages/NetworkManager-adsl-1.12.0-6.el7.x86_64.rpm (NetworkManager-bluetooth-1.12.0-6.el7.x86_64.rpm)
Using NETWO007.RPM;1 for  /tmp/mycentos/Packages/NetworkManager-bluetooth-1.12.0-6.el7.x86_64.rpm (NetworkManager-glib-1.12.0-6.el7.x86_64.rpm)
Using NCURS000.RPM;1 for  /tmp/mycentos/Packages/ncurses-5.9-14.20130511.el7_4.x86_64.rpm (ncurses-base-5.9-14.20130511.el7_4.noarch.rpm)
Using NCURS001.RPM;1 for  /tmp/mycentos/Packages/ncurses-base-5.9-14.20130511.el7_4.noarch.rpm (ncurses-libs-5.9-14.20130511.el7_4.x86_64.rpm)
Using MESA_000.RPM;1 for  /tmp/mycentos/Packages/mesa-libEGL-18.0.5-3.el7.x86_64.rpm (mesa-libGL-18.0.5-3.el7.x86_64.rpm)
Using MESA_001.RPM;1 for  /tmp/mycentos/Packages/mesa-libGL-18.0.5-3.el7.x86_64.rpm (mesa-libgbm-18.0.5-3.el7.x86_64.rpm)
Using MESA_002.RPM;1 for  /tmp/mycentos/Packages/mesa-libgbm-18.0.5-3.el7.x86_64.rpm (mesa-libglapi-18.0.5-3.el7.x86_64.rpm)
Using LIBWA000.RPM;1 for  /tmp/mycentos/Packages/libwayland-client-1.15.0-1.el7.x86_64.rpm (libwayland-server-1.15.0-1.el7.x86_64.rpm)
Using LIBSE000.RPM;1 for  /tmp/mycentos/Packages/libselinux-2.5-14.1.el7.x86_64.rpm (libselinux-python-2.5-14.1.el7.x86_64.rpm)
Using LIBSE001.RPM;1 for  /tmp/mycentos/Packages/libselinux-python-2.5-14.1.el7.x86_64.rpm (libselinux-utils-2.5-14.1.el7.x86_64.rpm)
Using LIBGL000.RPM;1 for  /tmp/mycentos/Packages/libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm (libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm)
Using LIBGL001.RPM;1 for  /tmp/mycentos/Packages/libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm (libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm)
Using LIBER000.RPM;1 for  /tmp/mycentos/Packages/liberation-fonts-common-1.07.2-16.el7.noarch.rpm (liberation-sans-fonts-1.07.2-16.el7.noarch.rpm)
Using KERNE000.RPM;1 for  /tmp/mycentos/Packages/kernel-tools-3.10.0-957.el7.x86_64.rpm (kernel-tools-libs-3.10.0-957.el7.x86_64.rpm)
Using IWL60000.RPM;1 for  /tmp/mycentos/Packages/iwl6000g2a-firmware-17.168.5.3-69.el7.noarch.rpm (iwl6000g2b-firmware-17.168.5.2-69.el7.noarch.rpm)
Using ISCSI000.RPM;1 for  /tmp/mycentos/Packages/iscsi-initiator-utils-6.2.0.874-10.el7.x86_64.rpm (iscsi-initiator-utils-iscsiuio-6.2.0.874-10.el7.x86_64.rpm)
Using HUNSP000.RPM;1 for  /tmp/mycentos/Packages/hunspell-1.3.2-15.el7.x86_64.rpm (hunspell-en-0.20121024-6.el7.noarch.rpm)
Using HUNSP001.RPM;1 for  /tmp/mycentos/Packages/hunspell-en-0.20121024-6.el7.noarch.rpm (hunspell-en-GB-0.20121024-6.el7.noarch.rpm)
Using HUNSP002.RPM;1 for  /tmp/mycentos/Packages/hunspell-en-GB-0.20121024-6.el7.noarch.rpm (hunspell-en-US-0.20121024-6.el7.noarch.rpm)
Using GRUB2000.RPM;1 for  /tmp/mycentos/Packages/grub2-pc-2.02-0.76.el7.centos.x86_64.rpm (grub2-pc-modules-2.02-0.76.el7.centos.noarch.rpm)
Using GRUB2001.RPM;1 for  /tmp/mycentos/Packages/grub2-tools-2.02-0.76.el7.centos.x86_64.rpm (grub2-tools-extra-2.02-0.76.el7.centos.x86_64.rpm)
Using GRUB2002.RPM;1 for  /tmp/mycentos/Packages/grub2-tools-extra-2.02-0.76.el7.centos.x86_64.rpm (grub2-tools-minimal-2.02-0.76.el7.centos.x86_64.rpm)
Using GRUB2003.RPM;1 for  /tmp/mycentos/Packages/grub2-efi-x64-2.02-0.76.el7.centos.x86_64.rpm (grub2-efi-ia32-2.02-0.76.el7.centos.x86_64.rpm)
Using GETTE000.RPM;1 for  /tmp/mycentos/Packages/gettext-0.19.8.1-2.el7.x86_64.rpm (gettext-libs-0.19.8.1-2.el7.x86_64.rpm)
Using FIREW000.RPM;1 for  /tmp/mycentos/Packages/firewalld-0.5.3-5.el7.noarch.rpm (firewalld-filesystem-0.5.3-5.el7.noarch.rpm)
Using FIPSC000.RPM;1 for  /tmp/mycentos/Packages/fipscheck-1.4.1-6.el7.x86_64.rpm (fipscheck-lib-1.4.1-6.el7.x86_64.rpm)
Using ELFUT000.RPM;1 for  /tmp/mycentos/Packages/elfutils-default-yama-scope-0.172-2.el7.noarch.rpm (elfutils-libelf-0.172-2.el7.x86_64.rpm)
Using ELFUT001.RPM;1 for  /tmp/mycentos/Packages/elfutils-libelf-0.172-2.el7.x86_64.rpm (elfutils-libs-0.172-2.el7.x86_64.rpm)
Using E2FSP000.RPM;1 for  /tmp/mycentos/Packages/e2fsprogs-1.42.9-13.el7.x86_64.rpm (e2fsprogs-libs-1.42.9-13.el7.x86_64.rpm)
Using DEVIC000.RPM;1 for  /tmp/mycentos/Packages/device-mapper-1.02.149-8.el7.x86_64.rpm (device-mapper-event-1.02.149-8.el7.x86_64.rpm)
Using DEVIC001.RPM;1 for  /tmp/mycentos/Packages/device-mapper-event-1.02.149-8.el7.x86_64.rpm (device-mapper-event-libs-1.02.149-8.el7.x86_64.rpm)
Using DEVIC002.RPM;1 for  /tmp/mycentos/Packages/device-mapper-event-libs-1.02.149-8.el7.x86_64.rpm (device-mapper-libs-1.02.149-8.el7.x86_64.rpm)
Using DEVIC003.RPM;1 for  /tmp/mycentos/Packages/device-mapper-libs-1.02.149-8.el7.x86_64.rpm (device-mapper-multipath-0.4.9-123.el7.x86_64.rpm)
Using DEVIC004.RPM;1 for  /tmp/mycentos/Packages/device-mapper-multipath-0.4.9-123.el7.x86_64.rpm (device-mapper-multipath-libs-0.4.9-123.el7.x86_64.rpm)
Using DEVIC005.RPM;1 for  /tmp/mycentos/Packages/device-mapper-multipath-libs-0.4.9-123.el7.x86_64.rpm (device-mapper-persistent-data-0.7.3-3.el7.x86_64.rpm)
Using CRYPT000.RPM;1 for  /tmp/mycentos/Packages/cryptsetup-2.0.3-3.el7.x86_64.rpm (cryptsetup-libs-2.0.3-3.el7.x86_64.rpm)
Using CRACK000.RPM;1 for  /tmp/mycentos/Packages/cracklib-2.9.0-11.el7.x86_64.rpm (cracklib-dicts-2.9.0-11.el7.x86_64.rpm)
Writing:   Initial Padblock                        Start Block 0
Done with: Initial Padblock                        Block(s)    16
Writing:   Primary Volume Descriptor               Start Block 16
Done with: Primary Volume Descriptor               Block(s)    1
Writing:   Eltorito Volume Descriptor              Start Block 17
Size of boot image is 4 sectors -> No emulation
Done with: Eltorito Volume Descriptor              Block(s)    1
Writing:   Joliet Volume Descriptor                Start Block 18
Done with: Joliet Volume Descriptor                Block(s)    1
Writing:   End Volume Descriptor                   Start Block 19
Done with: End Volume Descriptor                   Block(s)    1
Writing:   Version block                           Start Block 20
Done with: Version block                           Block(s)    1
Writing:   Path table                              Start Block 21
Done with: Path table                              Block(s)    4
Writing:   Joliet path table                       Start Block 25
Done with: Joliet path table                       Block(s)    4
Writing:   Directory tree                          Start Block 29
Done with: Directory tree                          Block(s)    47
Writing:   Joliet directory tree                   Start Block 76
Done with: Joliet directory tree                   Block(s)    33
Writing:   Directory tree cleanup                  Start Block 109
Done with: Directory tree cleanup                  Block(s)    0
Writing:   Extension record                        Start Block 109
Done with: Extension record                        Block(s)    1
Writing:   The File(s)                             Start Block 110
  1.07% done, estimate finish Mon Apr  3 13:50:14 2023
  2.13% done, estimate finish Mon Apr  3 13:50:14 2023
  3.19% done, estimate finish Mon Apr  3 13:50:14 2023
  4.26% done, estimate finish Mon Apr  3 13:50:14 2023
  5.32% done, estimate finish Mon Apr  3 13:50:14 2023
  6.39% done, estimate finish Mon Apr  3 13:50:14 2023
  7.45% done, estimate finish Mon Apr  3 13:50:14 2023
  8.52% done, estimate finish Mon Apr  3 13:50:14 2023
  9.58% done, estimate finish Mon Apr  3 13:50:14 2023
 10.65% done, estimate finish Mon Apr  3 13:50:14 2023
 11.71% done, estimate finish Mon Apr  3 13:50:14 2023
 12.78% done, estimate finish Mon Apr  3 13:50:14 2023
 13.84% done, estimate finish Mon Apr  3 13:50:14 2023
 14.90% done, estimate finish Mon Apr  3 13:50:14 2023
 15.97% done, estimate finish Mon Apr  3 13:50:14 2023
 17.03% done, estimate finish Mon Apr  3 13:50:14 2023
 18.10% done, estimate finish Mon Apr  3 13:50:14 2023
 19.16% done, estimate finish Mon Apr  3 13:50:14 2023
 20.22% done, estimate finish Mon Apr  3 13:50:14 2023
 21.29% done, estimate finish Mon Apr  3 13:50:14 2023
 22.35% done, estimate finish Mon Apr  3 13:50:14 2023
 23.42% done, estimate finish Mon Apr  3 13:50:14 2023
 24.48% done, estimate finish Mon Apr  3 13:50:14 2023
 25.55% done, estimate finish Mon Apr  3 13:50:14 2023
 26.61% done, estimate finish Mon Apr  3 13:50:14 2023
 27.68% done, estimate finish Mon Apr  3 13:50:14 2023
 28.74% done, estimate finish Mon Apr  3 13:50:14 2023
 29.81% done, estimate finish Mon Apr  3 13:50:14 2023
 30.87% done, estimate finish Mon Apr  3 13:50:14 2023
 31.93% done, estimate finish Mon Apr  3 13:50:14 2023
 33.00% done, estimate finish Mon Apr  3 13:50:14 2023
 34.06% done, estimate finish Mon Apr  3 13:50:14 2023
 35.13% done, estimate finish Mon Apr  3 13:50:14 2023
 36.19% done, estimate finish Mon Apr  3 13:50:14 2023
 37.25% done, estimate finish Mon Apr  3 13:50:14 2023
 38.32% done, estimate finish Mon Apr  3 13:50:14 2023
 39.38% done, estimate finish Mon Apr  3 13:50:14 2023
 40.45% done, estimate finish Mon Apr  3 13:50:14 2023
 41.51% done, estimate finish Mon Apr  3 13:50:14 2023
 42.58% done, estimate finish Mon Apr  3 13:50:14 2023
 43.64% done, estimate finish Mon Apr  3 13:50:14 2023
 44.71% done, estimate finish Mon Apr  3 13:50:14 2023
 45.77% done, estimate finish Mon Apr  3 13:50:14 2023
 46.84% done, estimate finish Mon Apr  3 13:50:14 2023
 47.90% done, estimate finish Mon Apr  3 13:50:14 2023
 48.96% done, estimate finish Mon Apr  3 13:50:14 2023
 50.03% done, estimate finish Mon Apr  3 13:50:14 2023
 51.09% done, estimate finish Mon Apr  3 13:50:14 2023
 52.16% done, estimate finish Mon Apr  3 13:50:14 2023
 53.22% done, estimate finish Mon Apr  3 13:50:14 2023
 54.28% done, estimate finish Mon Apr  3 13:50:14 2023
 55.35% done, estimate finish Mon Apr  3 13:50:14 2023
 56.42% done, estimate finish Mon Apr  3 13:50:14 2023
 57.48% done, estimate finish Mon Apr  3 13:50:14 2023
 58.54% done, estimate finish Mon Apr  3 13:50:14 2023
 59.61% done, estimate finish Mon Apr  3 13:50:14 2023
 60.67% done, estimate finish Mon Apr  3 13:50:14 2023
 61.73% done, estimate finish Mon Apr  3 13:50:14 2023
 62.80% done, estimate finish Mon Apr  3 13:50:14 2023
 63.86% done, estimate finish Mon Apr  3 13:50:14 2023
 64.93% done, estimate finish Mon Apr  3 13:50:14 2023
 65.99% done, estimate finish Mon Apr  3 13:50:14 2023
 67.06% done, estimate finish Mon Apr  3 13:50:14 2023
 68.12% done, estimate finish Mon Apr  3 13:50:14 2023
 69.18% done, estimate finish Mon Apr  3 13:50:14 2023
 70.25% done, estimate finish Mon Apr  3 13:50:14 2023
 71.32% done, estimate finish Mon Apr  3 13:50:14 2023
 72.38% done, estimate finish Mon Apr  3 13:50:14 2023
 73.44% done, estimate finish Mon Apr  3 13:50:14 2023
 74.51% done, estimate finish Mon Apr  3 13:50:14 2023
 75.57% done, estimate finish Mon Apr  3 13:50:14 2023
 76.64% done, estimate finish Mon Apr  3 13:50:14 2023
 77.70% done, estimate finish Mon Apr  3 13:50:14 2023
 78.76% done, estimate finish Mon Apr  3 13:50:14 2023
 79.83% done, estimate finish Mon Apr  3 13:50:14 2023
 80.89% done, estimate finish Mon Apr  3 13:50:14 2023
 81.96% done, estimate finish Mon Apr  3 13:50:14 2023
 83.02% done, estimate finish Mon Apr  3 13:50:14 2023
 84.09% done, estimate finish Mon Apr  3 13:50:14 2023
 85.15% done, estimate finish Mon Apr  3 13:50:14 2023
 86.22% done, estimate finish Mon Apr  3 13:50:14 2023
 87.28% done, estimate finish Mon Apr  3 13:50:14 2023
 88.35% done, estimate finish Mon Apr  3 13:50:14 2023
 89.41% done, estimate finish Mon Apr  3 13:50:14 2023
 90.47% done, estimate finish Mon Apr  3 13:50:14 2023
 91.54% done, estimate finish Mon Apr  3 13:50:14 2023
 92.60% done, estimate finish Mon Apr  3 13:50:14 2023
 93.67% done, estimate finish Mon Apr  3 13:50:14 2023
 94.73% done, estimate finish Mon Apr  3 13:50:14 2023
 95.80% done, estimate finish Mon Apr  3 13:50:14 2023
 96.86% done, estimate finish Mon Apr  3 13:50:14 2023
 97.93% done, estimate finish Mon Apr  3 13:50:14 2023
 98.99% done, estimate finish Mon Apr  3 13:50:14 2023
Total translation table size: 123340
Total rockridge attributes bytes: 54541
Total directory bytes: 90112
Path table size(bytes): 140
Done with: The File(s)                             Block(s)    469498
Writing:   Ending Padblock                         Start Block 469608
Done with: Ending Padblock                         Block(s)    150
Max brk space used a3000
469758 extents written (917 MB)

-o<映像文件>或-output<映像文件> 指定映像文件的名称
-input-charset utf8 -output-charset utf8,解决中文文件名乱码问题
-b<开机映像文件>或-eltorito-boot<开机映像文件> 指定在制作可开机光盘时所需的开机映像文件。
-c<开机文件名称> 制作可开机光盘时,mkisofs会将开机映像文件中的全-eltorito-catalog<开机文件名称>全部内容作成一个文件
-load-size 4:设置加载扇区数
-boot-info-table:修补启动映像与信息表 Patch boot image with info table
-no-emul-boot Boot image is ‘no emulation’ image 无仿真
-R, -rock Generate Rock Ridge directory information
-J或-joliet 使用Joliet格式的目录与文件名称
-v或-verbose 执行时显示详细的信息。
-V<光盘ID>或-volid<光盘ID> 指定光盘的卷册集ID
-T或-translation-table 建立文件名的转换表,适用于不支持Rock Ridge Extensions的系统上
 

制作完成

用新制作的iso文件测试

注:如果想要制作为U盘启动盘,执行以下命令即可

[root@zyq mycentos]# dd if=mycentos.iso of=/dev/sdb

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/5735.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

vue尚品汇商城项目-day02【11.对axios二次封装+12.接口统一管理】

文章目录11.对axios二次封装11.1为什么需要进行二次封装axios&#xff1f;11.2在项目当中经常有API文件夹【axios】12.接口统一管理12.1跨域问题12.2接口统一管理12.3不同请求方式的src/api/index.js说明本人其他相关文章链接11.对axios二次封装 安装命令&#xff1a;cnpm inst…

移动端滑动(touch)选项并实现多选效果

移动端滑动选项实现多选效果通过 touchstart、touchmove、 touchend、touchcancel 事件实现通过父元素代理事件的方式实现子组件点击选中选项如果选项添加 disabled 属性将不会被选中移动端拖拽 .box 和 .options 元素时&#xff0c;是有拖拽效果的&#xff0c;去除拖拽效果有两…

文件操作-C语言实现图片、压缩包等文件的“复制粘贴“过程

大部分参考自&#xff1a; 文件操作-C语言实现图片的“复制粘贴“过程_一个图像一部分复制到另一个图像中c语言_philippe coutinho的博客-CSDN博客 #define _CRT_SECURE_NO_WARNINGS的作用参考&#xff1a; https://mp.csdn.net/mp_blog/creation/editor/new/129414996 首先我们…

线程池的优点

线程池的优点&#x1f50e;优点1(降低资源消耗)&#x1f50e;优点2(提高响应速度)&#x1f50e;优点3(可管理性)&#x1f50e;结尾&#x1f50e;优点1(降低资源消耗) 有了线程池后,创建线程不再是向系统申请,而是从线程池中拿 当线程不再使用后,再还给线程池 线程的创建,虽然相…

47了解公有云平台 GCP 的基本服务和使用方法,包括 Compute Engine、Cloud Storage

GCP Compute Engine Google Cloud Platform (GCP) 的 Compute Engine 是一个可扩展的云计算平台&#xff0c;可以让您快速启动虚拟机实例来运行您的应用程序。它提供了一种灵活的方式来管理您的计算资源&#xff0c;并支持多种操作系统、应用程序框架和开发工具。以下是一些基本…

Leetcode.939 最小面积矩形

题目链接 Leetcode.939 最小面积矩形 Rating &#xff1a; 1752 题目描述 给定在 xy平面上的一组点&#xff0c;确定由这些点组成的矩形的最小面积&#xff0c;其中矩形的边平行于 x 轴和 y 轴。 如果没有任何矩形&#xff0c;就返回 0。 示例 1&#xff1a; 输入&#xff1…

centos7安装rabbitmq服务

centos7安装rabbitmq服务 第一 软件包准备 1.erlang依赖包 2.rabbitmq安装包 第二 安装rabbitmq 1.安装依赖 rpm -ivh erlang-21.3-1.el7.x86_64.rpmyum install socat -y2.安装rabbitmq服务 rpm -ivh rabbitmq-server-3.8.8-1.el7.noarch.rpm3.启动rabbitmq服务 system…

一次线上MySQL vCPU飙升引发的思考

vCPU飙升 在一个漆黑的深夜&#xff0c;MySQL丛库的vCPU在做一个三点任务的时候突然飙升&#xff0c;从MySQL面板中可以查到是以下查询导致的。 表数据及相关索引说明&#xff1a; hotel_info_tbl: 数据量&#xff1a;100w&#xff0c;id 为 primary keydynamic_cache_task_…

二项式反演

二项式反演 在很多情况下&#xff0c;“恰好”往往是不好求的&#xff0c;因为恰好意味着"≤\leq≤"并且"≥\geq≥"&#xff0c;需要进行很多限制&#xff0c;破坏了情况之间的独立性。 二项式反演则通过一定手段&#xff0c;使得限制"≤\leq≤&quo…

谷粒商城笔记+踩坑(21)——提交订单。原子性验令牌+锁定库存

目录 1、环境准备 1.1、业务流程 1.2、Controller 层编写下单功能接口 1.3、订单提交的模型类 1.4、前端页面 confirm.html 提供数据 2、提交订单业务完整代码 3、原子性验令牌&#xff1a;令牌的对比和删除保证原子性 4、初始化新订单&#xff0c;包含订单、订单项等信…

C++ : C++基础 :从内存的角度看 char[]和char*

char*和char[]区别1&#xff1a;数据在内存中的存储2&#xff1a;char*和 char[]分析3&#xff1a;char* p2 和 char p1[]3.1 修改指针所指向的地址4: string转char*5: char * 转string5.1 to_string()用法1&#xff1a;数据在内存中的存储 栈&#xff1a;就是在那些由编译器在…

PYQT 自带的 Pyrcc 系统的使用,PyInstaller对PYQT程序进行打包,不能打包背景图片,图标等解决办法

问题 使用 PyInstaller 对程序进行打包&#xff0c;不能打包背景图片。打包后的软件可以正常运行&#xff0c;但涉及到图片相关的资源全部不显示。 问题分析 当使用Python PyInstaller对程序进行打包时&#xff0c;如果程序中涉及到背景图片&#xff0c;会出现无法打包背景图…

第十一章 指针

第十一章 指针 目录一&#xff0e; 指针变量二&#xff0e; 取地址运算符和间接寻址运算符三&#xff0e; 指针赋值一&#xff0e; 指针变量 概述   指针就是地址&#xff0c;而指针变量就是存储地址的变量。指针的大小都是相同的。32位机器一个地址是4个byte。64位机器一个…

【ChatGPT】这是一篇ChatGPT写的关于Python的文章

文章目录Python基础语法教学1、变量2、数据类型3、运算符4、条件语句5、循环语句更高级的概念1、函数2、模块3、面向对象编程ChatGPT的记录Python基础语法教学 Python是一种高级编程语言&#xff0c;它被广泛应用于计算机科学领域、数据分析和人工智能等各种领域。在学习Pytho…

聊聊MyBatis缓存机制(一)

前言 Mybatis是常见的Java数据库访问层框架&#xff0c;虽然我们在日常的开发中一般都是使用Mybatis Plus&#xff0c;但是从官网信息可以知道&#xff0c;其实Mybatis Plus只是让开发者在使用上更简单&#xff0c;并没有改动核心原理。在日常工作中&#xff0c;大多数开发者都…

HTML5 <!DOCTYPE> 标签

实例 <!DOCTYPE> 声明非常重要&#xff0c;它是一种标准通用标记语言的文档类型声明&#xff0c;通过该标签&#xff0c;浏览器能够了解HTML5文档正在使用的HTML规范&#xff0c;<!DOCTYPE> 声明是HTML5文档的起始点&#xff0c;也就是说它必须位于HTML5文档的第一…

《SpringBoot》第03章 自动配置机制(二) 根注解@SpringBootApplication

前言 之前介绍到了把启动类封装成BeanDefinition注入进IOC容器&#xff0c;那么这个启动类就会跟普通的bean一样在refresh()中被实例化&#xff0c;那么显而易见作为启动类这个实例化并不简单&#xff0c;肯定会存在一些特殊处理&#xff0c;那么就需要研究一下其注解SpringBo…

AI只会淘汰不进步的程序员

最近AI界的大新闻有点多&#xff0c;属于多到每天很努力都追不上&#xff0c;每天都忙着体验各种新产品或申请试用新产品。各种自媒体肯定也不会放过这个机会&#xff0c;AI取代程序员的文章是年年有&#xff0c;今天特别多。那么AI到底会不会取代程序员的工作呢&#xff1f;先…

[chapter4][5G-NR][传输方案]

前言&#xff1a; 多天线传输的基本过程传输方案 前面见过数据加扰&#xff0c;调制&#xff0c;层映射的一些基本原理&#xff0c;算法。 这里重点讲一下传输方案 目录&#xff1a; 1&#xff1a; 下行传输方案 2&#xff1a; 上行传输方案 3&#xff1a; 资源块映射 备注&…

.net开发安卓从入门到放弃 最后的挣扎(排查程序闪退问题记录-到目前为止仍在继续)

安卓apk闪退问题排查记录logcat程序包名先看日志&#xff08;以下日志是多次闪退记录的系统日志&#xff0c;挑拣几次有代表性的发上来&#xff09;最近一次闪退adb shell tophelp一个demo说明adb shell dumpsys meminfo <package_name>ps&#xff1a;写在前面&#xff0…