Image 掛載

  1. 原始的 DYW 系統,USB 開機碟分割狀態。
    [root@dyw219 ~]# fdisk -luc bin/crtefi15g-20181130.img 
    You must set cylinders.
    You can do this from the extra functions menu.
    
    Disk bin/crtefi15g-20181130.img: 0 MB, 0 bytes
    64 heads, 32 sectors/track, 0 cylinders, total 0 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: 0x55654248
    
                         Device Boot      Start         End      Blocks   Id  System
    bin/crtefi15g-20181130.img1   *        2048      329727      163840   83  Linux
    bin/crtefi15g-20181130.img2          329728    29689855    14680064   8e  Linux LVM
    bin/crtefi15g-20181130.img3        29689856    29700095        5120   ef  EFI (FAT-12/16/32)
    
  2. 將第二個分割區掛載起來,其中 offset=168820736 是開始 sector 329728 乘以 512 bytes。因此分割區為 LVM type,所以無法直接掛載。
    [root@dyw219 ~]# mount -oloop,offset=168820736 bin/crtefi15g-20181130.img /mnt/efi
    mount: unknown filesystem type 'LVM2_member'