주로 fdisk 로 하드 파티셔닝을 한다.

하드용량이 크면 parted 를 사용해야 한다.

# parted /dev/sde
GNU Parted 3.2
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Model: WDC WD40 EZRZ-00GXCB0 (scsi)
Disk /dev/sde: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start  End  Size  Type  File system  Flags

(parted) mklabel gpt                                                      
Warning: The existing disk label on /dev/sde will be destroyed and all data on this disk will be
lost. Do you want to continue?
Yes/No? y                                                                 
(parted) p                                                                
Model: WDC WD40 EZRZ-00GXCB0 (scsi)
Disk /dev/sde: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

(parted) mkpart primary 0 4001GB                                          
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? i                                                          
(parted) p                                                                
Model: WDC WD40 EZRZ-00GXCB0 (scsi)
Disk /dev/sde: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  4001GB  4001GB               primary

(parted) q                                                                
Information: You may need to update /etc/fstab.

주요명령어를 요약하면

# parted /dev/sde

(parted) p                                                                

(parted) mklabel gpt                                                      

(parted) mkpart primary 0 4001GB                                          

(parted) q                                                                

파티션테이블을 gpt 모드로 바꾸고(mklabel), 파티셔닝하고(mkpart) , 끝.

구글링하기 귀찮아서 정리.

반응형

WRITTEN BY
1day1
하루하루 즐거운일 하나씩, 행복한일 하나씩 만들어 가요.

,