{{anchor href="top"}}
Hits : **{{hits}}**
== GUID Partition Table ==
lets assume that you want to create a new ((https://en.wikipedia.org/wiki/GUID_Partition_Table GPT)) layout on a disk.
From command line you can use ((http://www.rodsbooks.com/gdisk/ gdisk))
{{ToC from="h2" to="h3"}}
=== Create new layout ===
%%(bash)
gdisk /dev/sda
o
Y
%%
https://balaskas.gr/img/archlinux-gdisk/01.png
((#top))
-----------
=== Create a new partition ===
eg. you need a 5G rootfs partition:
%%(bash)
n
[enter]
[enter]
+5G
[enter]
%%
https://balaskas.gr/img/archlinux-gdisk/02.png
((#top))
-----------
=== Create a swap partition ===
eg. the rest available space is for swap:
%%(bash)
n
[enter]
[enter]
[enter]
8200
%%
https://balaskas.gr/img/archlinux-gdisk/03.png
((#top))
-----------
=== Save layout to disk ===
%%(bash)
w
Y
%%
https://balaskas.gr/img/archlinux-gdisk/04.png
=== Verify your changes ===
%%(bash)
gdisk -l /dev/sda
%%
https://balaskas.gr/img/archlinux-gdisk/05.png
((#top))
-----------