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
相關文章
相關標籤/搜索