Contents
- mkisofs command
- Reference
- mkisofs command
- Custom system mirror
mkisofs command
?? Written by Zak Zhu
Reference
- Niaoge Private Kitchen (http://cn.linux.vbird.org/linux_basic/0240tarcompress_5.php)
- loveaborn/Use mkisofs command to make redhat enterprise linux (RHEL6.4) ISO boot image (https://www.linuxidc.com/Linux/2013-08/88967.htm)
- macg/mkisofs—— Make iso files (http://blog.sina.com .cn/s/blog_6151984a0100fqmy.html)
- Red Hat Installation Guide–2.4.2(https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html-single/ installation_guide/index)
mkisofs command
mkisofs-create ISO9660/Joliet/HFS filesystem with optional Rock Ridge attributes< /p>
Command format
mkisofs [options] <-o cd.i so> pathspec ...
parameter comment
parameter | Comment |
---|---|
-R | Generate SUSP and RR records using the Rock Ridge protocol to further describe the fileson the ISO9660 filesystem. |
-r | This is like the -R option, but file ownership and modes are set to more useful values. The uid and gid are set to zero, because they are usually only useful on the author’s system, and not useful to the client. All the file read bits are set true, so that files and directories are globally readable on the client. If any execute bit is set for a file, set all of the execute bits, so that executables are globally executable on the client. If any search bit is set for a directory, set all of the search bits, so that directories are globally searchable on the client. All write bits are cleared, because the filesystem will be mounted read-only in any case. If any of the special mode bits are set, clear them, because file locks are not useful on a read-only filesystem, and set-id bits are not desirable for uid 0 or gid 0. strong> |
Other parameters, see the combination of
Custom system image
-
In the virtual machine of vmware-workstation, mount the CD
mount /dev/sr0 /mnt/cdrom
-
Copy the files in /mnt/cdrom to /tmp/custom/ under
cp -r /mnt/cdrom /* /tmp/custom/
-
Write ks.cfg according to requirements
vim /tmp/custom/isolinux/ks .cfg
-
Grant execution and write permissions to isolinux.bin
chmod u+wx /tmp/custom/isolinux/isolinux .bin
-
Making ISO files with mkisofs
# Step 1cd /tmp/custom/# Step 2mkisofs -R -J -T -v -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /tmp/custom.iso /tmp/ custom
The above steps are summarized based on the reference content, I did not do verification. I will do the verification when there is a need in the future, if there is a friend according to the steps I wrote Please leave a message to inform you if you have a demand, thank you very much! !
Contents
- mkisofs command
- Reference
- mkisofs command
- Custom system image
< ul>
- Reference
- mkisofs command
- Custom system image