GPT Partition 지우기

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


이런 에러가 있다. 에러는 아니고 그냥 괜찮은 경고다. 하지만 이걸 없애고 싶다.


1. 없앨 하드를 확인한다.

sudo fdisk -l


2. parted 로 지운다. (X는 번호다)

sudo parted /dev/sdX


다음을 실행한다.

mklabel msdos


물어본다. 지울꺼냐고?

Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk
will be lost. Do you want to continue?
Yes/No? yes


또 물어본다.

Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table. However, it
does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted
-- possibly by a program that doesn't understand GPT partition tables. Or perhaps you
deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition
Yes/No? yes