Linux/설정 및 명령어
fdisk를 통해 파티션 생성하기
gunner_77
2016. 11. 28. 17:13
fdisk를 통해 파티션 구성하기
/dev/sdc를 구성할 시 (기본값 설정)
[root@localhost ~]# fdisk /dev/sdc
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652): (Enter)
Using default value 652
##타입 변경 (lvm)
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e ##l를 통해 목록 확인 가능
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w ##저장
The partition table has been altered!