Linux

fdisk_LVM

배너로드 2021. 6. 30. 10:47
728x90
반응형

[root@localhost ~]# fdisk /dev/sdb

 

Command (m for help): n (새로 생성할것이니깐

 

Command action

 

   e   extended (로지컬쓸꺼면 이걸루)

 

   p   primary partition (1-4) (주파티션으로 쓸꺼면 이걸루)

 

p                                                                                       

 

Partition number (1-4): 1 (파티션 몇번째 쓸꺼임? 최대 4개까지 설정가능)

 

First cylinder (1-xxx, default 1): (Enter)     (생성할 파티션의 범위 설정)

 

Using default value 1

 

Last cylinder, +cylinders or +size{K,M,G} (1-xxx, default xxx): (Enter)   (파티션 범위선택)

 

Using default value xxx

 

 

 

Command (m for help): t   (파티션 시스템 타입 변경)

 

Selected partition 1

 

Hex code (type L to list codes): 8e    ( l 을 누르면 리스트 출력) (LVM쓸것이므로 8e)

 

Changed system type of partition 1 to 8e (Linux LVM)

 

 

 

Command (m for help): w      (저장하고 끝낸다)

 

The partition table has been altered!

 

 

 

Calling ioctl() to re-read partition table.

 

Syncing disks.

728x90
반응형