[Linux] GPT νŒŒν‹°μ…˜ μ„€μ •

2021. 9. 2. 08:00ㆍSystem μž‘μ—…μ‹€/LINUX

728x90
λ°˜μ‘ν˜•

2TB μ΄μƒμ˜ μŠ€ν† λ¦¬μ§€λ₯Ό μ‚¬μš©ν•  λ•ŒλŠ” MBR 방식 λŒ€μ‹  GPT 방식을 μ‚¬μš©.

 

fdisk λŒ€μ‹  partedλ₯Ό μ‚¬μš©ν•΄ μ€€λ‹€.

 

 

 

1. parted μ‹€ν–‰

 

λ‹€μŒμ˜ λͺ…λ Ήμ–΄λ‘œ μ‹€ν–‰ν•΄ μ£Όλ©΄ 됨.

 

# parted Block_Device_경둜

 

μ €λŠ” /dev/sdc 에 νŒŒν‹°μ…˜ 생성을 함.

 

# parted /dev/sdc
GNU Parted 2.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)

 

728x90

미리 fdiskλ₯Ό μ‚¬μš©ν•˜μ—¬ νŒŒν‹°μ…˜μ„ 1개 full둜 생성.

 

print λͺ…λ Ήμ–΄λ‘œ 확인해 보면

 

 

(parted) print
Model: LSI 9750-24i4e DISK (scsi)
Disk /dev/sdc: 2400GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start   End     Size    Type     File system  Flags
1      32.3kB  2199GB 2199GBprimary               lvm


(parted)

 

 

전체 λ””μŠ€ν¬ μ‚¬μ΄μ¦ˆλŠ” 2400GB 인데,

 

μƒμ„±λœ νŒŒν‹°μ…˜μ€ 2199GB 인 것을 확인.

 

'Partition Table' 의 값이 'msdos' 인 것을 확인.

 

 

 

 

2. MBR -> GPT λ³€κ²½

 

λ‹€μŒ λͺ…λ Ήμ–΄λ₯Ό μ‚¬μš©ν•˜μ—¬ GPT λ°©μ‹μœΌλ‘œ λ³€κ²½ κ°€λŠ₯.

 

(parted) mklabel gpt

 

λ³€κ²½ ν›„ 확인해보면 Partition Table의 값이 λ³€κ²½λœ 것을 확인 κ°€λŠ₯.

 

 

(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)
                                  
(parted) print
Model: LSI 9750-24i4e DISK (scsi)
Disk /dev/sdc: 2400GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt


Number  Start  End  Size  File system  Name  Flags


(parted)

 

 

 

 

3. Partition 생성

 

λ‹€μŒμ˜ λͺ…λ Ήμ–΄λ‘œ νŒŒν‹°μ…˜ 생성이 κ°€λŠ₯.

 

(parted) mkpart primary μ‹œμž‘μœ„μΉ˜ λμœ„μΉ˜ 

 

νŒŒν‹°μ…˜μ„ 전체 μ˜μ—­μœΌλ‘œ 1개만 μƒμ„±ν•œλ‹€λ©΄ μ‹œμž‘μœ„μΉ˜λŠ” 0, λμœ„μΉ˜λŠ” λ””μŠ€ν¬ μš©λŸ‰μœΌλ‘œ μž‘μœΌμ‹œλ©΄ 됨.

 

νŒŒν‹°μ…˜ 생성 ν›„ 확인 해보면 fdisk 둜 μƒμ„±ν•œ κ²ƒκ³ΌλŠ” λ‹€λ₯΄κ²Œ 2TB μ΄μƒμ˜ νŒŒν‹°μ…˜μ΄ μƒμ„±λœ 것을 확인 κ°€λŠ₯.

 

 

(parted) mkpart primary 0 2400GB
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore                           
(parted)


(parted) print
Model: LSI 9750-24i4e DISK (scsi)
Disk /dev/sdc: 2400GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt


Number  Start   End     Size    File system  Name     Flags
1      17.4kB  2400GB 2400GBprimary


(parted)

 

 

 

 

"이 ν¬μŠ€νŒ…μ€ 쿠팑 νŒŒνŠΈλ„ˆμŠ€ ν™œλ™μ˜ μΌν™˜μœΌλ‘œ, 이에 λ”°λ₯Έ μΌμ •μ•‘μ˜ 수수료λ₯Ό μ œκ³΅λ°›μŠ΅λ‹ˆλ‹€."

 

 

4. μ’…λ£Œ

 

q λͺ…λ Ήμ–΄λ‘œ μ’…λ£Œλ₯Ό ν•΄μ£Όμ‹œλ©΄ λ©λ‹ˆλ‹€.​

728x90
λ°˜μ‘ν˜•