Linux 挂载 ISO IMG 文件方法

  1. 使用fdisk -l  <iso.file> 查看起始块位置
  2. Disk Stick.img: 3984 MB, 3984588800 bytes
    249 heads, 6 sectors/track, 5209 cylinders, total 7782400 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0004bfaa
    
        Device Boot      Start         End      Blocks   Id  System
    Stick.img1   *         128     8015999     4007936    b  W95 FAT32

    起始块位于 128, 每块大小512byte, 起始偏移为: 128*512bash

  3. 使用 loop 类型挂载, 设置offset. ide

    mount -o loop,offset=$((128*512)) Stick.img /mnt/tmp
相关文章
相关标签/搜索