增加 VFAT 分割區

  1. 增加一小塊 5M 的 VFAT 分割區,存放 UEFI 開機 efi 檔。
    [root@dywmac ~]# fdisk -uc /dev/sdb
    
    Command (m for help): p
    
    Disk /dev/sdb: 31.6 GB, 31625052160 bytes
    64 heads, 32 sectors/track, 30160 cylinders, total 61767680 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
    /dev/sdb1   *        2048      329727      163840   83  Linux
    /dev/sdb2          329728    29689855    14680064   8e  Linux LVM
    
    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 3
    First sector (29689856-61767679, default 29689856): 
    Using default value 29689856
    Last sector, +sectors or +size{K,M,G} (29689856-61767679, default 61767679): +5M
    
    Command (m for help): t
    Partition number (1-4): 3
    Hex code (type L to list codes): ef
    Changed system type of partition 3 to ef (EFI (FAT-12/16/32))
    
    Command (m for help): p
    
    Disk /dev/sdb: 31.6 GB, 31625052160 bytes
    64 heads, 32 sectors/track, 30160 cylinders, total 61767680 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
    /dev/sdb1   *        2048      329727      163840   83  Linux
    /dev/sdb2          329728    29689855    14680064   8e  Linux LVM
    /dev/sdb3        29689856    29700095        5120   ef  EFI (FAT-12/16/32)
    
    Command (m for help): w
    
  2. 格式化新增的 VFAT 分割區 /dev/sdc3。
    [root@dywmac ~]# mkfs.vfat -F16 -s2 /dev/sdc3