Ubuntu – How to set up GPT and EFI for the new raw drive

gptsystem-installationuefi

My laptop Thinkpad T400 now runs 12.04 on a small hard drive.
I plan to replace the hard drive with a bigger one, and install 14.04 on the new drive.
The new drive is just bought as brand new, and raw

I want to avoid the limitations of MBR, and want to use GPT for the disk.

I also want to use EFI partition, because I heard that it is the default on modern computers :

you must have a BIOS-Boot or an EFI partition depending on the boot mode of your BIOS. you will need either an EFI partition (if your BIOS is set up in EFI mode, which is default on more and more modern, > year 2011 computers) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).

So I wonder how I install 14.04 on the raw hard drive?

  1. My laptop is T400, bought in 2009, and can I make my drive and
    partitions GPT and EFI?
  2. Does the following steps work?

    • download 64-bit 14.04 to my flash drive
    • replace the hard drive of my laptop with the new and raw one
    • insert my flash drive into my laptop's usb port
    • power on my laptop
    • press F2 to enter the BIOS of my laptop? and set up booting from my flash drive?
    • (presumably, the 64 bit 14.04 installation program will run?)

    where in the steps can I set up GPT and EFI for my new raw drive?

My questions and confusions come from not understanding oldfred's comment on my previous post:

I have always partitioned in advance with gparted. Set to gpt before
anything else in device, advanced options. How you boot installer is
how it installs, UEFI or BIOS. And only with Something Else, do you
get the options for more than the default / & swap.

Thanks!

Best Answer

If your system comes pre-installed with UEFI firmware (which is a BIOS replacement) and you want the novelty and the experience, then keep it!

If your system doesn't come with UEFI: don't bother as UEFI was supposed to give us more freedom, but most vendors use it to lock you in and take your freedom away!

GPT is an entirely different question: Go for it! Finally more then 4 primary partitions per disk! The only disadvantage is that you'll have to give up on old trusty fdisk and use parted instead.

parted /dev/XdY

(where X and Y are very probably "s" and "a"). Then:

mklabel gpt

and hit Y

From the GUI, start gparted, menu device, partition table , GPT. :-)