# fdisk /dev/sde
Welcome to fdisk (util-linux 2.29).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help):
Command (m for help): p
Disk /dev/sde: 14.5 GiB, 15504900096 bytes, 30283008 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: 0x000488ed
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
Partition number (1-4, default 1): 1
First sector (2048-30283007, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-30283007, default 30283007): +12G
Created a new partition 1 of type 'Linux' and of size 12 GiB.
Partition #1 contains a vfat signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
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
Partition number (2-4, default 2): 2
First sector (25167872-30283007, default 25167872): 25167872
Last sector, +sectors or +size{K,M,G,T,P} (25167872-30283007, default 30283007): +2G
Created a new partition 2 of type 'Linux' and of size 2 GiB.
Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (3,4, default 3): 3
First sector (29362176-30283007, default 29362176): 29362176
Last sector, +sectors or +size{K,M,G,T,P} (29362176-30283007, default 30283007): 30283007
Created a new partition 3 of type 'Linux' and of size 449.6 MiB.
Command (m for help): t
Partition number (1-3, default 3): 3
Partition type (type L to list all types): 82
Changed type of partition 'Linux' to 'Linux swap / Solaris'.
Command (m for help): a
Partition number (1-3, default 3): 1
The bootable flag on partition 1 is enabled now.
Command (m for help): p
Disk /dev/sde: 14.5 GiB, 15504900096 bytes, 30283008 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: 0x000488ed
Device Boot Start End Sectors Size Id Type
/dev/sde1 * 2048 25167871 25165824 12G 83 Linux
/dev/sde2 25167872 29362175 4194304 2G 83 Linux
/dev/sde3 29362176 30283007 920832 449.6M 82 Linux swap / Solaris
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
# fdisk -l /dev/sde
Disk /dev/sde: 14.5 GiB, 15504900096 bytes, 30283008 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: 0x000488ed
Device Boot Start End Sectors Size Id Type
/dev/sde1 * 2048 25167871 25165824 12G 83 Linux
/dev/sde2 25167872 29362175 4194304 2G 83 Linux
/dev/sde3 29362176 30283007 920832 449.6M 82 Linux swap / Solaris
にゃんたろう 拝!
2020年 5月 31日 日曜日 21:01:18 JST 作成