Friday, December 21, 2012

Clearing a Master Boot Record

I recently had to remove an ubuntu installation and install CentOS instead. The installer complained about “Your boot partition is on a disk using the GPT partitioning scheme but this machine cannot boot using GPT”.

To remedy this, i booted into rescue mode using the CentOS install disc. I clicked through the menu to get a shell and then ran

dd if=/dev/zero of=/dev/sda bs=512 count=1

This removed the Master Boot Record. I then rebooted and started the installer to install CentOS. Upen starting the installer I was greeted by a message:

"/dev/sda contains GPT signatures, indicating that it has a GPT table. [...] Is this a GPT partition table?"

To this I answered no.! This will make the installer ignore the signatures. The next message that I met was:

"The partition table on device sda [...] was unreadable.
To create new partitions it must be initialized, causing the loss of ALL DATA on this drive. [...]
Would you like to initialize this drive, erasing ALL DATA?"

Yes please.!

Now the installer runs as it should :)

No comments:

Post a Comment