Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a Asus K55VM-Sx027V laptop and I formated it with Ubuntu because whenever I tried to install Windows 7 64bit, it wouldn't let me because my HDD had GPT protection.

Now that I have Ubuntu 12.10, how do I remove GPT protection from my laptop?

share|improve this question
add comment

3 Answers

Use gdisk instead of fdisk. It isn't installed by default, so get it with:

sudo apt-get install gdisk

Then umount the drive and call gdisk for the device:

sudo gdisk /dev/sdX

It will prompt you to select the partition:

Found valid MBR and GPT. Which do you want to use?
 1 - MBR
 2 - GPT
 3 - Create blank GPT

Select the GPT one. In my case, 2. Use the ? command to print the command list. Enter x for expert options, then z to zap the GPT table and all the data on the disc:

Command (? for help): x 

Expert command (? for help): z
About to wipe out GPT on /dev/sdx. Proceed? (Y/N): y
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Blank out MBR? (Y/N): y
share|improve this answer
add comment

I am not sure the computer will let you. I have an ASUS K55a myself. Every time I want to install ANY version of Linux then try to go back into windows7, windows forces a R/R and then linux won't work.

I found that you can run Linux from a CD/DVD or if you use Puppy on a flash drive.

Maybe you could use a nice virus to delete all partitions ? LOL

But this link might be of help:

http://www.virtualvcp.com/linux-technical-guides/125-clearing-a-guid-partition-table-gpt-in-linux

Have you turned off the UEFI setting in BIOS? I think as long as that is turned on you might not be able to get rid of the partition and still have the computer work.

Please note: All new computers that come with Win8 are mandated to have the UEFI turned on all the time with no way to disable it. Gotta love microshaft's greed.

If everyone complained to the FTC.gov about the THEFT of your ability to use YOUR hardware and legally licensed software then perhaps they could step in and force the junk to allow dual booting with linux.

I wonder how come someone in Linux just don't write their own UEFI that gives the option to allow dual booting and replace the one that microshaft forces upon everyone.

Remember, you OWN the hardware. Microsoft has no right to tell you what you can do with it.

More on Linux - if I remove my hard drive with win7 on it and install an ssd drive, then turn off the UEI in bios, I can install linux with no problem. It is when I try to add a windows 7 drive with uefi back in is when there is a problem. Win7 forces a R/R then linux won't boot.

Perhaps Linux could make their own uefi that controls every thing like the grub bootloader did instead of having windows dictate what software and hardware you can install. Use the linux uefi first then if you choose windows, kick it to the windows C:partition.

Another idea would be to do something sililar to what puppy does. Puppy uses a fat 2 but inside that it makes an ext2 file system. Not pracicl for big files though.

How about linux using the UDF file system and write whatever file system the user wants into that system.

I dunno. I guess I am rambling due to frustration here.

I wonder if a direct disk access program would allow you to alter the gpt partition table?

Here is another possible solution to your problem: http://www.linuxquestions.org/questions/linux-general-1/delete-gpt-partition-789112/

share|improve this answer
    
(U)EFI is firmware that controls the computer before the OS boots; there's no such thing as a "Microsoft UEFI" or "Linux UEFI." Also, the Windows 8 labelling requirements require UEFI and its Secure Boot feature. The requirement is that, on x86 and x86-64 systems, Secure boot must be disable-able. –  Rod Smith Nov 3 '12 at 19:06
add comment

GPT is the GUID Partition Table, which is a method of defining partitions (not protection) on your computer. If Windows is complaining about your use of GPT, that means that the Windows installer has booted in BIOS mode rather than in (U)EFI mode. There are two ways to work around this problem:

  • Boot the Windows installer in EFI mode. This might or might not be possible, depending on your computer. If it's new (sold in the last 6-12 months), it probably supports EFI-mode booting. To boot in EFI mode, you may need to fiddle with your firmware settings to enable EFI-mode booting. Sometimes hitting the button to get to the boot options when you boot will produce two options for booting your CD: one in BIOS (aka legacy) mode and the other in EFI mode.
  • Convert the hard disk to use MBR partitioning rather than GPT. You can do this with GPT fdisk (gdisk) by using its "g" option on the "recovery & transformation" menu. There are, however, a lot of caveats and details to such a conversion; see the GPT fdisk documentation for details. When you're done, Ubuntu will no longer boot; you'll need to re-install the boot loader. (You'll need to do this after installing Windows in BIOS mode anyhow, so you might as well put this off until after you install Windows.)

EFI-mode booting with GPT is still very new and can be trouble-prone, but converting your partition table from GPT to MBR is also a rather risky endeavor. Thus, it's hard for me to say which approach is best. Of course, you might not even be able to boot your computer in EFI mode, so you might have to do it by converting your partition table.

An alternative to either approach is to run Windows from within VirtualBox or some other virtualization environment under Linux. This is simpler and safer, and it may be adequate for many purposes. It's most likely to be a problem if you want to run video-intensive games, if you need low-level access to the hardware, or if you have inadequate RAM to support a virtualized environment sufficient for your needs.

Whichever approach you take (aside from a virtualized Windows), I strongly recommend you back up any important data first; mucking with partition tables is always risky.

Edit: Zolar1's comments suggest the possibility that Ubuntu is installed in BIOS mode but using GPT. Installing Windows in EFI mode in this case will require one of two things:

  • Converting Ubuntu to boot in EFI mode rather than in BIOS mode
  • Switching boot modes (EFI for Windows, BIOS for Linux)

Either is possible. You can convert Ubuntu to boot in EFI mode by adding an EFI boot loader. There are several options, as described here. Ubuntu uses GRUB 2 as its EFI-mode boot loader by default, but IMHO this is a poor choice.

Switching between EFI-mode and BIOS-mode boots of the computer is usually awkward, but sometimes a boot options switch (accessible by pressing F8, F12, or some other key at boot time) can make this tolerable. Another options may be to install rEFInd, which is an EFI-mode boot manager that can (as of version 0.4.6) hand off the boot process to a BIOS-mode boot loader (or to an EFI boot loader).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.