admin 管理员组文章数量: 1184232
linux环境下使用mkisofs制作系统镜像ISO
1 ,打开linux环境,如centos,kylin10等环境,并挂载镜像到系统上。
[root@localhost ~]# mount /dev/sr1 /mnt/kylin/
mount: /mnt/kylin: WARNING: device write-protected, mounted read-only.
[root@localhost ~]#2,新建文件夹,并使用cp -ar 命令把挂载镜像包含隐藏文件复制到新文件夹内
[root@localhost ~]# mkdir Kylin[root@localhost ~]# ls -a /mnt/kylin/. .discinfo images .kylin-post-actions manual .productinfo TRANS.TBL
.. EFI isolinux .kylin-post-actions-nochroot Packages repodata .treeinfo
[root@localhost ~]# cp -ar /mnt/kylin/. Kylin/[root@localhost ~]# ls -a Kylin/. .discinfo images .kylin-post-actions manual .productinfo TRANS.TBL
.. EFI isolinux .kylin-post-actions-nochroot Packages repodata .treeinfo
3,新建文件夹install,放置自动分区文件ks.cfg
[root@localhost Kylin]# mkdir install[root@localhost Kylin]# cd install/[root@localhost install]# vi ks.cfg[root@localhost install]# ls
ks.cfg
kylin10的ks.cfg文件参考如下:
#version=DEVEL# Use graphical install#ignoredisk --only-use=sda
bootloader --append="crashkernel=auto" --location=mbr --boot-drive=sda
#clearpart --all --initlabel --drives=sda
graphical
cdrom
eula --agreed
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'# System language#lang en_US.UTF-8
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --ipv6=auto --device=link
network --hostname=LanEye
# Root password
rootpw --plaintext 6Rajj@1&#!qaz@wsx12#x window system configuration information
xconfig --startxonboot
# Run the Setup Agent on first boot
firstboot --disable
# System services
services --enabled="chronyd"# System timezone
timezone Asia/Shanghai --isUtc
%post --nochroot
#####copy kyinfo and LICENSEif版权声明:本文标题:制作Linux启动光盘?使用mkisofs轻松搞定ISO镜像 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1773365435a3561109.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论