文章目录

linux 系统启动盘制作方式

制作镜像

解压iso (一定要带着.discinfo .productinfo .treeinfo)
在替换的软件包的Packages 同级目录执行 createrepo_c -g repodata/comps.xml .

在iso目录外 执行
/usr/bin/genisoimage -untranslated-filenames -volid CentOS-V8-x86_64 -J -joliet-long -rational-rock -translation-table -input-charset utf-8 -x ./lost+found -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot -o test.iso iso/
(deprecated)
/usr/bin/mkisofs -v -U -J -R -T -m repoview -m boot.iso -eltorito-alt-boot -e images/efiboot.img -no-emul-boot -V xxx -o …/test2.iso .

制作系统盘

U盘:
fdisk -l 查看磁盘挂载路径
卸载要制作为启动盘的磁盘 umount /dev/sda
格式化磁盘 mkfs.ext4 /dev/sda
制作启动盘 dd if=./xxx.iso of=/dev/sda bs=1M sudo watch -n 5 pkill -USR1 -x dd
光盘: growisofs