$ sudo fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/mmcblk0: 29.54 GiB, 31719424000 bytes, 61952000 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
Disklabel type: dos
Disk identifier: 0x00000000

Command (m for help): n　　　　　　　　<-  新しいパーティションを作成
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p　　　　　　　　　　<- Primaryパーティションを指定
Partition number (1-4, default 1): 1　　　　<- 第１パーティションを指定
First sector (2048-61951999, default 2048): 　　　<-  デフォルト値でリターン
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-61951999, default 61951999): +1G　<- 1Gサイズ指定

Created a new partition 1 of type 'Linux' and of size 1 GiB.

Command (m for help): n　　		　<-  新しいパーティションを作成
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): p                                   <- Primaryパーティションを指定
Partition number (2-4, default 2): 2            <- 第１パーティションを指定
First sector (2099200-61951999, default 2099200):     　<-  デフォルト値でリターン 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2099200-61951999, default 61951999): +10G   <- 10Gサイズ指定


Created a new partition 2 of type 'Linux' and of size 10 GiB.

Command (m for help): t                                           <- パーティションタイプの指定
Partition number (1,2, default 2): 1        　　　　　<- 第１パーティションを指定
Hex code or alias (type L to list all): c                        <- パーティションタイプを　0c W95 FAT32 (LBA)を指定
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): t                                              <- パーティションタイプの指定
Partition number (1,2, default 2): 2                              <- 第２パーティションを指定
Hex code or alias (type L to list all): c                        <- パーティションタイプを　0c W95 FAT32 (LBA)を指定

Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): a　　　　　　　　　　　<- Bootable flagを指定
Partition number (1,2, default 2): 1　　　　　　　<- 第１パーティションのBootableフラグを設定

The bootable flag on partition 1 is enabled now.

Command (m for help): p　　　　　　　　　　　<- パーティションテーブルの表示
Disk /dev/mmcblk0: 29.54 GiB, 31719424000 bytes, 61952000 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
Disklabel type: dos
Disk identifier: 0x00000000

Device         Boot   Start      End  Sectors Size Id Type
/dev/mmcblk0p1 *       2048  2099199  2097152   1G  c W95 FAT32 (LBA)
/dev/mmcblk0p2      2099200 23070719 20971520  10G  c W95 FAT32 (LBA)

Command (m for help): w　　　　　　　　　　　<-  パーティションテーブルの書き込み
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

$
