2.3. 提取 Red Hat Enterprise Linux 引导镜像

执行以下步骤提取引导镜像的内容。

步骤

  1. 确保目录 /mnt/iso 存在,并且当前未在那里挂载任何内容。
  2. 挂载下载的镜像。

    # mount -t iso9660 -o loop path/to/image.iso /mnt/iso

    其中 path/to/image.iso 是下载的引导镜像的路径。

  3. 创建您要放置 ISO 镜像内容的工作目录。

    $ mkdir /tmp/ISO
  4. 将挂载镜像的所有内容复制到新工作目录中。确保使用 -p 选项来保留文件和目录的权限和所有权。

    # cp -pRf /mnt/iso /tmp/ISO
  5. 卸载镜像。

    # umount /mnt/iso

其他资源