Wow, it worked! It doesn't show up as GPT anymore! Excellent! Thanks for the excellent advise curly!
For the record:
Problem:
Harddrive that was previously formatted with UFS refused to be reformated into EXT3. fdisk gave error about GPT not being supported. GParted wasn't able to reformat it satisfactorily (GParted returned 'success', but fdisk still saw it as GPT).
Solution:
Have to wipe both hidden GPT partitions. One is located at beginning of disk (within the first 60 sectors), the other is located in the last 5088 sectors of the disk. This requires determining which physical sectors these hidden partitions are located on (don't worry, its easy, just one subtraction)
DISCLAIMER: Do at your own risk. this worked for me, it might not work for you.
Steps as follows.
step 1:
Determine where the hidden partitions are located by the following
this results in:
Code:
WARNING: GPT (GUID Partition Table) detected on '/dev/sdg'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdg: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdg1 1 976773167 488386583+ ee EFI GPT
(your results will have different values due to differing physical disks).
Step 2:
Erase the GPT partitions
First partition is always in the first 60 sectors (this is just how it works)
so enter:
Code:
sudo dd if=/dev/zero of=/dev/sdg seek=1 count=60
to erase the first partition. Specifically, this writes all zeros over the first 60 sectors of the drive (i think).
Second partition is located in the last 5088 sectors. As you can see above, on my disk, the last sector is sector#976773167, so you have to erase from sector#976768080 to 976773167. I got 976768080 from subtracting 5088 from 976773167.
Code:
sudo dd if=/dev/zero of=/dev/sdg seek=976768080 count=5088
Step 3:
sudo fdisk -l
should result in the GPT warning being gone.
Code:
Disk /dev/sdg: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdg1 1 976773167 488386583+ ee EFI GPT
Hope this helps
Bookmarks