리눅스에서 2TB 이상 대용량 디스크 파티션 사용

리눅스에서는 일반 파티션의 사이즈는 2TB로 제한 되어 있습니다.
이 것을 GPT 타입으로 변경해야 2TB보다 큰 파티션을 사용할 수 있습니다.

일반적으로 파티셔닝을 하면 아래처럼 됩니다.

[root@backup-test ~]# fdisk -l /dev/sdc
Disk /dev/sdc: 5497.6 GB, 5497558138880 bytes, 10737418240 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
Disk label type: dos
Disk identifier: 0xbb438cb0
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048    10487807     5242880   83  Linux
/dev/sdc2        10487808    52430847    20971520   83  Linux
/dev/sdc3        52430848  4294967294  2121268223+  83  Linux

sdc3을 보면 2TB로 제한 되어버립니다.

변경하려고 하는 디스크를 선택

# parted /dev/sdc
GNU Parted 3.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) 
 
(parted) mklabel gpt                                                      
Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
 
(parted) unit TB                            <----- 최소 용량을 설정하는 명령 (기본 MB) GB or TB
 
(parted) mkpart primary 0.00TB 5.50TB
 
(parted) print                                                            
Model: VMware Virtual disk (scsi)
Disk /dev/sdc: 5.50TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
소셜 미디어로 공유하기

You may also like...

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.

 

새 블로그로 이사갑니다.

 

rastalion.dev

 

도메인 변경했어요. 현재 지속적으로 개선 중입니다.

 

This will close in 10 seconds