0、准备文件夹
mkdir /mnt/centos
mkdir /mnt/iso
1、挂载CD Live Linux (for example Centos7)
mount -o loop /mnt/shared/CentOS-7-x86_64-LiveGNOME-2003.iso /mnt/centos
2、将镜像中的文件copy出来
cp -rfp /mnt/centos/* /mnt/iso/.
ls /mnt/iso
EFI isolinux LiveOS
3、进入copy出来的文件夹的系统中
cd /mnt/iso/LiveOS
ls
osmin.img squanshfs.img
4、解压img
unsquashfs squashfd.img
ls
osmin.img squashfs.img squashfs-root
5、进入squashfs-root/LiveOS
cd squashfs-root/LiveOS
ls
ext3fs.img
6、挂载ext3fs.img
mkdir ext3fs
mount -o loop ext3fs.img ext3fs
ls
bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var
原文:https://www.cnblogs.com/janescott/p/13058968.html