$ sudo fdisk -l
Disk /dev/vda: 30 GiB, 32212254720 bytes, 62914560 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: gpt
Disk identifier: 1EBFE1B6-33F2-4878-A2BB-996868440D06
Device Start End Sectors Size Type
/dev/vda1 2048 206847 204800 100M EFI System
/dev/vda2 206848 2254847 2048000 1000M Linux filesystem
/dev/vda3 2254848 2256895 2048 1M BIOS boot
/dev/vda4 2256896 62914526 60657631 28.9G Linux filesystem
Disk /dev/vdb: 10 GiB, 10737418240 bytes, 20971520 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
확인한 경로로 파티션을 생성합니다.
고객님의 환경에 따라 디스크 경로가 다를 수 있습니다.
Command (m for help): n => 새로운 파티션 추가
Select (default p): p => 파티션 타입을 primary로 설정
Partition number (1-4, default 1): [enter] => 파티션 번호를 1번(default 값)으로 설정
First sector (2048-20971519, default 2048): [enter] => 파티션 시작 영역을 2048(default 값)으로 설정
Last sector, +sectors or +size{K,M,G,T,P} (2048-20971519, default 20971519): [enter] => 파티션 마지막 영역을 20971519(default 값)으로 설정
Command (m for help): p => 파티션 테이블 출력
Command (m for help): w => 파티션 설정 저장
$ sudo fdisk /dev/vdb
Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x42027c24.
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):
First sector (2048-20971519, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-20971519, default 20971519):
Created a new partition 1 of type 'Linux' and of size 10 GiB.
Command (m for help): p
Disk /dev/vdb: 10 GiB, 10737418240 bytes, 20971520 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: 0x42027c24
Device Boot Start End Sectors Size Id Type
/dev/vdb1 2048 20971519 20969472 10G 83 Linux
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.