On a computer with a new empty hard drive of capacity < 2 TB, I install Ubuntu Server with the standard text-mode installer. I choose to manually partition the disk. Then I can create a new empty partition table. This will be a legacy partition table. However, I want a GPT one, but I didn't find a way to select it.
I've tried to switch to a text console via Alt + F2. However, the command gdisk
is not available (neither is fdisk
).
I know that I could boot some live linux first to create the partition table (which seems unnecessarily cumbersome). So my question is explicitly about the standard Ubuntu Server text-mode installer. Is there a way to create a GUID partition table (GPT) during the install?
Best Answer
Test this:
You switch to a text console via Alt + F2.
Try to create a partition start GNU parted as follows:
Output:
Creates a new GPT disklabel i.e. partition table:
Sample outputs:
Next, set the default unit to TB, enter:
To create a 2TB partition size, enter:
To print the current partitions, enter:
Sample outputs:
Quit and save the changes, enter:
Use the mkfs.ext4 command to format the file system, enter: