오라클 클라우드에서 부트볼륨을 200GB 로 생성해서 확장을 했더니 파티션 Type 이 "Microsoft basic" 으로 되어있네요~
[root@itrooms ~]# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disk label type: gpt
Disk identifier: AB94BECD-0ED5-4801-B14B-A1157B276C0B
# Start End Size Type Name
1 2048 1050623 512M EFI System EFI System Partition
2 1050624 17827839 8G Linux swap
3 17827840 419430365 191.5G Microsoft basic
gdisk를 이용해서 리눅스 파티션으로 변경해줍니다.
[root@itrooms ~]# gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/sda: 419430400 sectors, 200.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): AB94BECD-0ED5-4801-B14B-A1157B276C0B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 419430366
Partitions will be aligned on 2048-sector boundaries
Total free space is 2015 sectors (1007.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1050623 512.0 MiB EF00 EFI System Partition
2 1050624 17827839 8.0 GiB 8200
3 17827840 419430365 191.5 GiB 0700
Command (? for help): t
Partition number (1-3): 3
Current type is 'Microsoft basic data'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
Command (? for help): p
Disk /dev/sda: 419430400 sectors, 200.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): AB94BECD-0ED5-4801-B14B-A1157B276C0B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 419430366
Partitions will be aligned on 2048-sector boundaries
Total free space is 2015 sectors (1007.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1050623 512.0 MiB EF00 EFI System Partition
2 1050624 17827839 8.0 GiB 8200
3 17827840 419430365 191.5 GiB 8300
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
[root@itrooms ~]# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disk label type: gpt
Disk identifier: AB94BECD-0ED5-4801-B14B-A1157B276C0B
# Start End Size Type Name
1 2048 1050623 512M EFI System EFI System Partition
2 1050624 17827839 8G Linux swap
3 17827840 419430365 191.5G Linux filesyste
Hex code or GUID 항목에서 8300 이나 8e00 으로 변경해주면 됩니다.
혹시 모르니 재부팅 해줍니다~
반응형
'LINUX' 카테고리의 다른 글
[CentOS] 7.x PHP-FPM AH02454 AH01079 (0) | 2023.02.01 |
---|---|
[CentOS] NGINX 소켓방식 Permission denied 문제 (0) | 2023.01.31 |
[CentOS] proxy_fcgi error AH01071 Primary script unknown (0) | 2023.01.26 |
SSLCertificateFile /etc/pki/tls/certs/localhost.crt does not exist (0) | 2023.01.09 |
[CentOS] 8.x Failed loading plugin osmsplugin librepo (0) | 2023.01.06 |