13

/dev/sda contains GPT signatures indicating that it has a GPT table. However, it has a fake msdos partition table as it should. Perhaps it was corrupted? Is this a GPT partition table?

So, that's the error message and this is during my first OS install of Ubuntu. Can close the message box. Can't click yes and can't click no. What do I do?

Braiam
  • 67,791
  • 32
  • 179
  • 269
  • Could you provide the error message that you received? – Kevin Bowen Jan 31 '13 at 04:19
  • just says i may have deleted the table or a program may have corrupted it for me – user127455 Jan 31 '13 at 04:39
  • 1
    The error message you reported makes no sense, because the two conditions (GPT signature present and "fake" MS-DOS table) are in fact consistent with a valid GPT disk. I therefore suspect you've omitted a "not" or "doesn't" somewhere. Please check again. – Rod Smith Jan 31 '13 at 23:31
  • I was able to click the continue button in spite of the message box shown :) – Anoop Thiruonam May 15 '18 at 13:14

6 Answers6

43

I am answering because the answers here are inadequate. I don't want future viewers of this question to destroy their windows partitions just to install Ubuntu.

To fix your problem, follow these steps:

  1. Boot the emergency disk (Ubuntu or other linux Live CD) and open a text-mode shell.
  2. Type sudo gdisk /dev/sda (change /dev/sda to whatever is appropriate to access your hard disk, if necessary). The program is likely to complain that it's found both MBR and GPT data, and will ask which to use. It doesn't matter which you tell it to use.
  3. At the Command prompt, type x to enter the experts' menu.
  4. At the Expert command prompt, type z to zap (destroy) the GPT data.
  5. Type y in response to the confirmation about destroying the GPT.
  6. Type n in response to the query about blanking the MBR. Caution: If you answer y here, you'll destroy your Windows partition(s)!

gdisk screenshot

Pablo Bianchi
  • 15,657
PitaJ
  • 752
  • 5
    Obviously, this should be the accepted answer. – Cristian Lupascu Mar 06 '15 at 14:39
  • 1
    "The program 'gdisk' is currently not installed" Please let me know what to do? – shan Apr 05 '15 at 06:01
  • 1
    @shan - Try sudo apt-get install gdisk – PitaJ Apr 09 '15 at 19:29
  • 3
    Everyone who has Windows 8 in UEFI mode with gpt partitions and then reinstalls Windows in BIOS boot mode has this issue. Windows does not correctly convert from gpt to MBR(msdos). It leave backup gpt table. Better to use fixparts as a bit easier, but gdisk is good. Or better still just install Windows in UEFI mode, you may have to modify installer slighter if older version of Windows to have it work in UEFI mode. http://www.rodsbooks.com/fixparts/ – oldfred Apr 09 '15 at 19:42
  • 1
    This should be the accept accepted answer, I don`t understand!!!. You save me a day. – José Miguel Rodríguez García Apr 25 '15 at 04:50
  • @PitaJ, Sickeningly cool. Where did you get this info from? How did you know this? – Pacerier Nov 09 '15 at 19:31
  • @Pacerier I found it on Ubuntu forums somewhere I think. I don't have the link, but should have credited it in the first place. Sorry to whoever I ripped off. – PitaJ Nov 09 '15 at 19:59
5

NO NEED FOR A EMERGENCY DISK!!

Simply boot with ubuntu live CD or USB (I did with USB).

Then open the Terminal. Type: sudo gdisk (hit enter) Type: /dev/sda (change /dev/sda to whatever is appropriate to access your hard disk, if necessary). Then you will probably see that there are MBR and GPT. Tell the computer you want to use the MBR Then: At the Command prompt, type x to enter the experts' menu. At the Expert command prompt, type z to "zap" (destroy) the GPT data. Type y in response to the confirmation about destroying the GPT. Type n in response to the query about blanking the MBR. Caution: If you answer y here, you'll destroy your Windows partition(s)!

Grammargeek
  • 2,762
Roxy
  • 51
1

I've seen a similar problem on my disk when I had a leftover partition from my windows 7 system. Went back to windows 7, and took all the partitions off using disk manager.

Also, make sure the disk is not "dynamic" in disk manager.

After that, I was able to do a clean install of ubuntu 12.1o :)

In case you don't have a system running windows 7, you can boot with a windows 7 dvd and run setup. Choose "advanced" when you get to choosing partition for the installation, and erase all partitions there.

chris
  • 71
0

I do not know why, however if this is a fresh install without ANY data being retained on the HDD boot up as the livecd then use gparted to clear the GPT table and make an msdos partition table.

0

I would like to answer about one of the causes that could lead to this complex situation.

I had a GPT system with Ubuntu 14.04, no Windows. I was unable to install Windows without wiping my disk. So, I took the necessary BACKUP (always do that no matter what simple thing you are doing) and wiped the disk using bootable Windows USB.

Now, the catch is, even if this automatically converts from GPT to MBR, somehow, it keeps signatures of GPT. So, any tool for managing the hard disk (like Gparted) gets confused as it founds GPT and MBR both. So, this will show all the disk space as unallocated as if you do NOT have Windows. But, if you check in your media, it will show the mountable drives, even, it will show all the data that your drive has.

Solution to this is - make a bootable USB with any Linux version. Live boot it and once the Linux starts, open the terminal and use gdisk utility to remove all corrupted GPT entries or Signatures.

muru
  • 197,895
  • 55
  • 485
  • 740
0

To add to the answer given by PitaJ (and improved by Roxy)

It's possible that using Live disk, you will be asked to open terminal as a root and it will give you an error on gdisk command. To do that you will need to do the following:

1) Open terminal

2) type sudo passwd root, it'll ask you to enter new password, enter any password

3)Type SU and enter password that you just used above.

Now you are in terminal as root, everything listed by PitaJ will work from here on.