오라클 클라우드에서 부트볼륨을 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
리눅스 파티션으로 변경해줍니다.
[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
혹시 모르니 재부팅 해줍니다~
이 글은 ivps.tistory.com 에서 RSS로 가져온 글입니다. 원본보기