└─$ sudo fdisk -l
Disk /dev/vda: 64 GiB, 68719476736 bytes, 134217728 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: 2E6E268F-E946-4BEE-A6D1-17F47BCC1B0F
Device Start End Sectors Size Type
/dev/vda1 2048 1050623 1048576 512M EFI System
/dev/vda2 1050624 132216831 131166208 62.5G Linux filesystem
/dev/vda3 132216832 134215679 1998848 976M Linux swap
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 68.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat16 boot, esp
2 538MB 67.7GB 67.2GB ext4
3 67.7GB 68.7GB 1023MB linux-swap(v1) swap
fdisk option | function |
---|---|
-a | 부팅 파티션 설정 |
-b | BSD 디스크 라벨을 편집 |
-c | 도스 호환성 설정 |
-d | 파티션 삭제 |
-l | 사용 가능한 파티션 종류 출력 |
-m | 도움말 출력 |
-n | 새로운 파티션 추가 |
-o | 새로운 빈 DOS 파티션 생성 |
-p | 파티션 테이블 출력 |
-q | 작업 내용을 저장하지 않고 출력 |
-s | 새로운 빈 Sun 디스크 라벨 출력 |
-t | 파티션의 시스템 ID 변경(파일 시스템 종류 변경) |
-u | 항목 정보 변경/출력 |
-v | 파티션 테이블 검사 |
-w | 파티션 정보를 디스크에 저장하고 종료 |
-x | 실린더 갯수 변경등 전문가를 위한 부가적 기능 |
Options | description |
---|---|
b | back up GPT data to a file |
c | change a partition's name |
d | delete a partition |
i | show detailed information on a partition |
l | list known partition types |
n | add a new partition |
o | create a new empty GUID partition table (GPT) |
p | print the partition table |
q | quit without saving changes |
r | recovery and transformation options (experts only) |
s | sort partitions |
t | change a partition's type code |
v | verify disk |
w | write table to disk and exit |
x | extra functionality (experts only) |
? | print this menu |
Options | description |
---|---|
-l, --list | lists partition layout on all block devices |
-m, --machine | displays machine parseable output |
-s, --script | never prompts for user intervention |
-v, --version | displays the version |
-a alignment-type --align alignment-type | Set alignment for newly created partitions, valid alignment types are: |
Commands | description |
---|---|
[device] | The block device to be used. When none is given, parted will use the first block device it finds. |
[command [options]] | Specifies the command to be executed. If no command is given, parted will present a command prompt. Possible commands are:align-check alignment-type partition : Determine whether the starting sector of partition is aligned for the disk. alignment-type is "minimal" or "optimal".check partition :Do a simple check on partition. |