https://wiki.archlinux.org/api.php?action=feedcontributions&user=Zapman&feedformat=atomArchWiki - User contributions [en]2024-03-29T07:28:20ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272663GUID Partition Table (Ελληνικά)2013-08-26T17:45:57Z<p>Zapman: /* GNU Parted */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions| BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk και την σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] απαιτεί η κατάτμηση που περιέχει το {{ic|/boot/syslinux/ldlinux.sys}} (Ανεξάρτητα αν ο κατάλογος {{ic|/boot}} αποτελεί ξεχωριστή κατάτμηση ή όχι) να επισημανθεί με το χαρακτηριστικό "Legacy BIOS Bootable" του GPT (''legacy_boot'' για το GNU Parted) ώστε να αναγνωριστεί πως περιέχει τα αρχεία εκκίνησης του Syslinux απο τον κώδικα εκκίνησης MBR, των 440-byte {{ic|gptmbr.bin}}. Δείτε το [[Syslinux#GUID Partition Table aka GPT]] για περισσότερες πληροφορίες. Είναι αντίστοιχο της σήμανσης "boot" στους δίσκους MBR.<br />
<br />
* [[GRUB Legacy]], δεν υποστηρίζει δίσκους GPT. Η διανομή Fedora έχει ενημερώσει σε μεγάλο βαθμό την διακλάδωση GRUB Legacy {{AUR|grub-legacy-fedora-git}} η οποία περιέχει τις ενημερώσεις GPT της Intel (δοκιμασμένες στην διανομή Fedora, αλλά όχι στην διανομή Arch). Η διακλάδωση αυτή δεν ενημερώνεται πλέον καθώς η διανομή Fedora ήδη χρησιμοποιεί τον GRUB σαν τον προεπιλεγμένο φορτωτή εκκίνησης (bootloader) στα συστήματα BIOS από την έκδοση F16. Προτείνεται οι χρήστες να μεταβούν στον GRUB ή τον Syslinux αντίστοιχα.<br />
<br />
{{Note|Κάποιες μητρικές πλακέτες επιτραπέζιων συστημάτων θα εκκινήσουν από ενα δίσκο GPT μόνο αν η κατάτμηση protective MBR έχει επισημανθεί ως Boot. Αυτό μπορεί να επιτευχθεί ασφαλώς με τα εργαλεία fdisk/cfdisk χωρίς την αλλοίωση του GPT (καλή είναι η τήρηση αντιγράφων ασφαλείας / και ο έλεγχος της ακεραιότητας του GPT μετά το πέρας της διαδικασίας).}}<br />
<br />
* [[LILO]] Η υποστήριξη του GPT δεν έχει δοκιμαστεί μέχρι στιγμής οπότε δεν είναι ξεκάθαρο εάν υπάρχουν προβλήματα εκκίνησης από δίσκους GPT.<br />
<br />
== Εργαλεία Κατάτμησης ==<br />
=== GPT fdisk ===<br />
<br />
Το πακέτο GPT fdisk απαρτίζεται από ενα σύνολο εργαλείων κελύφους για την επεξεργασία δίσκων GPT. Αποτελείται από τα gdisk, sgdisk και cgdisk κατ' αντιστοιχία με τα εργαλεία fdisk του πακέτου util-linux (Χρησιμοποιείται σε δίσκους MBR). Είναι διαθέσιμο στο αποθετήριο [extra] ως {{Pkg|gptfdisk}}.<br />
<br />
{{Note|Τα εργαλεία κατάτμησης fdisk από το util-linux (π.χ. fdisk, cfdisk and sfdisk) δεν υποστηρίζουν το GPT, ενω μπορεί να αλλοώσουν την κεφαλίδα GPT και τον πίνακα κατατμήσεων εάν χρησιμοποιηθούν σε ενα δίσκο GPT.}}<br />
<br />
==== Μετατροπή από MBR σε GPT ====<br />
<br />
Ενα από τα καλύτερα χαρακτηριστικά του gdisk (όπως επίσης του sgdisk και του cgdisk) είναι η ικανότητά του να μετατρέπει ετικέτες δίσκου MBR και BSD σε GPT χωρίς απώλεια δεδομένων. Κατά την μετατροπή, όλες οι πρωτεύουσες και λογικές κατατμήσεις γίνονται κατατμήσεις GPT με τα σωστά αναγνωριστικά τύπου κατάτμησης GUIDs και τα Μοναδικά αναγνωριστικά κατάτμησης GUIDs να δημιουργούνται για κάθε κατάτμηση. <br />
<br />
Απλά επεξεργαστείτε τον δίσκο MBR χρησιμοποιώντας την επιλογή "w" για να αποθηκεύσετε τις αλλαγές (αντίστοιχα με το fdisk) για να μετατρέψετε τον δίσκο MBR σε GPT. '''Προσοχή για τυχόντα σφάλματα τα οποία θα πρέπει να διορθώσετε πριν την αποθήκευση οποιασδήποτε αλλαγής στον δίσκο''' διότι υπάρχει κίνδυνος απώλειας δεδομένων. Δείτε το http://www.rodsbooks.com/gdisk/mbr2gpt.html για περισσότερες πληροφορίες. Μετά το πέρας της διαδικασίας μετατροπής, οι bootloaders θα πρέπει να επανεγκατασταθούν ώστε να ρυθμιστούν για εκκίνηση από GPT.<br />
<br />
{{Note|Θυμηθείτε ότι το GPT αποθηκεύει εναν δευτερεύοντα πίνακα στο τέλος του δίσκου. Πρέπει να βεβαιωθείτε πως τουλάχιστον 1 [[Wikipedia:MiB|MiB]] του δίσκου δεν έχει εκχωρηθεί σε καμία κατάτμηση.}}<br />
<br />
{{Note|Έχετε υπόψη ότι αν χρησιμοποιείτε τον GRUB, τότε χρειάζεται μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot]]. Αν ο σχεδιασμός MBR κατατμήσεων σας δεν είναι ιδιαίτερα παλιός, υπάρχει μεγάλη πιθανότητα η πρώτη κατάτμηση να ξεκινά στον τομέα 2048 για λόγους στοίχισης. Το οποίο σημαίνει ότι στην αρχή θα υπάρχουν 1007 [[Wikipedia:KiB|KiB]] άδειου χώρου όπου η κατάτμηση bios-boot μπορεί να δημιουργηθεί. Για να επιτευχθεί αυτό, Αρχικά πραγματοποιήστε την μετατροπή mbr->gpt με το gdisk όπως περιγράφηκε παραπάνω. Έπειτα, δημιουργήστε χειροκίνητα μια νέα κατάτμηση με το gdisk και ορίστε την θέση της στους τομείς 34 - 2047, και θέστε τον τύπο {{ic|EF02}} ως τύπο της εν λόγω κατάτμησης.}}<br />
<br />
=== GNU Parted ===<br />
<br />
Το GNU Parted >=3.0, η εντολή κελύφους {{ic|parted}} δεν υποστηρίζει οποιαδήποτε λειτουργία έχει σχέση με το σύστημα αρχείων, και ώς επι τω πλείστον ο σχετικός κώδικας FS έχει αφαιρεθεί απο την βιβλιοθήκη libparted, παραμένει μόνο ελάχιστος κώδικας ο οποίος απαιτείται από εξωτερικές εφαρμογές όπως η εφαρμογή gparted. Οι προγραμματιστές συνιστούν την χρήση των εργαλειών για το εκάστοτε σύστημα αρχείων ή μια εκ των γραφικών διεπαφών που έχουν αναπτυχθεί γύρω από την εφαρμογή parted όπως το gparted (η οποία καλεί αυτά τα εξωτερικά εργαλεία) για λειτουργίες σχετικές με το σύστημα αρχείων.<br />
<br />
==Δείτε επίσης==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272661GUID Partition Table (Ελληνικά)2013-08-26T17:31:27Z<p>Zapman: /* See also */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions| BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk και την σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] απαιτεί η κατάτμηση που περιέχει το {{ic|/boot/syslinux/ldlinux.sys}} (Ανεξάρτητα αν ο κατάλογος {{ic|/boot}} αποτελεί ξεχωριστή κατάτμηση ή όχι) να επισημανθεί με το χαρακτηριστικό "Legacy BIOS Bootable" του GPT (''legacy_boot'' για το GNU Parted) ώστε να αναγνωριστεί πως περιέχει τα αρχεία εκκίνησης του Syslinux απο τον κώδικα εκκίνησης MBR, των 440-byte {{ic|gptmbr.bin}}. Δείτε το [[Syslinux#GUID Partition Table aka GPT]] για περισσότερες πληροφορίες. Είναι αντίστοιχο της σήμανσης "boot" στους δίσκους MBR.<br />
<br />
* [[GRUB Legacy]], δεν υποστηρίζει δίσκους GPT. Η διανομή Fedora έχει ενημερώσει σε μεγάλο βαθμό την διακλάδωση GRUB Legacy {{AUR|grub-legacy-fedora-git}} η οποία περιέχει τις ενημερώσεις GPT της Intel (δοκιμασμένες στην διανομή Fedora, αλλά όχι στην διανομή Arch). Η διακλάδωση αυτή δεν ενημερώνεται πλέον καθώς η διανομή Fedora ήδη χρησιμοποιεί τον GRUB σαν τον προεπιλεγμένο φορτωτή εκκίνησης (bootloader) στα συστήματα BIOS από την έκδοση F16. Προτείνεται οι χρήστες να μεταβούν στον GRUB ή τον Syslinux αντίστοιχα.<br />
<br />
{{Note|Κάποιες μητρικές πλακέτες επιτραπέζιων συστημάτων θα εκκινήσουν από ενα δίσκο GPT μόνο αν η κατάτμηση protective MBR έχει επισημανθεί ως Boot. Αυτό μπορεί να επιτευχθεί ασφαλώς με τα εργαλεία fdisk/cfdisk χωρίς την αλλοίωση του GPT (καλή είναι η τήρηση αντιγράφων ασφαλείας / και ο έλεγχος της ακεραιότητας του GPT μετά το πέρας της διαδικασίας).}}<br />
<br />
* [[LILO]] Η υποστήριξη του GPT δεν έχει δοκιμαστεί μέχρι στιγμής οπότε δεν είναι ξεκάθαρο εάν υπάρχουν προβλήματα εκκίνησης από δίσκους GPT.<br />
<br />
== Εργαλεία Κατάτμησης ==<br />
=== GPT fdisk ===<br />
<br />
Το πακέτο GPT fdisk απαρτίζεται από ενα σύνολο εργαλείων κελύφους για την επεξεργασία δίσκων GPT. Αποτελείται από τα gdisk, sgdisk και cgdisk κατ' αντιστοιχία με τα εργαλεία fdisk του πακέτου util-linux (Χρησιμοποιείται σε δίσκους MBR). Είναι διαθέσιμο στο αποθετήριο [extra] ως {{Pkg|gptfdisk}}.<br />
<br />
{{Note|Τα εργαλεία κατάτμησης fdisk από το util-linux (π.χ. fdisk, cfdisk and sfdisk) δεν υποστηρίζουν το GPT, ενω μπορεί να αλλοώσουν την κεφαλίδα GPT και τον πίνακα κατατμήσεων εάν χρησιμοποιηθούν σε ενα δίσκο GPT.}}<br />
<br />
==== Μετατροπή από MBR σε GPT ====<br />
<br />
Ενα από τα καλύτερα χαρακτηριστικά του gdisk (όπως επίσης του sgdisk και του cgdisk) είναι η ικανότητά του να μετατρέπει ετικέτες δίσκου MBR και BSD σε GPT χωρίς απώλεια δεδομένων. Κατά την μετατροπή, όλες οι πρωτεύουσες και λογικές κατατμήσεις γίνονται κατατμήσεις GPT με τα σωστά αναγνωριστικά τύπου κατάτμησης GUIDs και τα Μοναδικά αναγνωριστικά κατάτμησης GUIDs να δημιουργούνται για κάθε κατάτμηση. <br />
<br />
Απλά επεξεργαστείτε τον δίσκο MBR χρησιμοποιώντας την επιλογή "w" για να αποθηκεύσετε τις αλλαγές (αντίστοιχα με το fdisk) για να μετατρέψετε τον δίσκο MBR σε GPT. '''Προσοχή για τυχόντα σφάλματα τα οποία θα πρέπει να διορθώσετε πριν την αποθήκευση οποιασδήποτε αλλαγής στον δίσκο''' διότι υπάρχει κίνδυνος απώλειας δεδομένων. Δείτε το http://www.rodsbooks.com/gdisk/mbr2gpt.html για περισσότερες πληροφορίες. Μετά το πέρας της διαδικασίας μετατροπής, οι bootloaders θα πρέπει να επανεγκατασταθούν ώστε να ρυθμιστούν για εκκίνηση από GPT.<br />
<br />
{{Note|Θυμηθείτε ότι το GPT αποθηκεύει εναν δευτερεύοντα πίνακα στο τέλος του δίσκου. Πρέπει να βεβαιωθείτε πως τουλάχιστον 1 [[Wikipedia:MiB|MiB]] του δίσκου δεν έχει εκχωρηθεί σε καμία κατάτμηση.}}<br />
<br />
{{Note|Έχετε υπόψη ότι αν χρησιμοποιείτε τον GRUB, τότε χρειάζεται μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot]]. Αν ο σχεδιασμός MBR κατατμήσεων σας δεν είναι ιδιαίτερα παλιός, υπάρχει μεγάλη πιθανότητα η πρώτη κατάτμηση να ξεκινά στον τομέα 2048 για λόγους στοίχισης. Το οποίο σημαίνει ότι στην αρχή θα υπάρχουν 1007 [[Wikipedia:KiB|KiB]] άδειου χώρου όπου η κατάτμηση bios-boot μπορεί να δημιουργηθεί. Για να επιτευχθεί αυτό, Αρχικά πραγματοποιήστε την μετατροπή mbr->gpt με το gdisk όπως περιγράφηκε παραπάνω. Έπειτα, δημιουργήστε χειροκίνητα μια νέα κατάτμηση με το gdisk και ορίστε την θέση της στους τομείς 34 - 2047, και θέστε τον τύπο {{ic|EF02}} ως τύπο της εν λόγω κατάτμησης.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==Δείτε επίσης==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272660GUID Partition Table (Ελληνικά)2013-08-26T17:30:48Z<p>Zapman: /* Μετατροπή από MBR σε GPT */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions| BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk και την σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] απαιτεί η κατάτμηση που περιέχει το {{ic|/boot/syslinux/ldlinux.sys}} (Ανεξάρτητα αν ο κατάλογος {{ic|/boot}} αποτελεί ξεχωριστή κατάτμηση ή όχι) να επισημανθεί με το χαρακτηριστικό "Legacy BIOS Bootable" του GPT (''legacy_boot'' για το GNU Parted) ώστε να αναγνωριστεί πως περιέχει τα αρχεία εκκίνησης του Syslinux απο τον κώδικα εκκίνησης MBR, των 440-byte {{ic|gptmbr.bin}}. Δείτε το [[Syslinux#GUID Partition Table aka GPT]] για περισσότερες πληροφορίες. Είναι αντίστοιχο της σήμανσης "boot" στους δίσκους MBR.<br />
<br />
* [[GRUB Legacy]], δεν υποστηρίζει δίσκους GPT. Η διανομή Fedora έχει ενημερώσει σε μεγάλο βαθμό την διακλάδωση GRUB Legacy {{AUR|grub-legacy-fedora-git}} η οποία περιέχει τις ενημερώσεις GPT της Intel (δοκιμασμένες στην διανομή Fedora, αλλά όχι στην διανομή Arch). Η διακλάδωση αυτή δεν ενημερώνεται πλέον καθώς η διανομή Fedora ήδη χρησιμοποιεί τον GRUB σαν τον προεπιλεγμένο φορτωτή εκκίνησης (bootloader) στα συστήματα BIOS από την έκδοση F16. Προτείνεται οι χρήστες να μεταβούν στον GRUB ή τον Syslinux αντίστοιχα.<br />
<br />
{{Note|Κάποιες μητρικές πλακέτες επιτραπέζιων συστημάτων θα εκκινήσουν από ενα δίσκο GPT μόνο αν η κατάτμηση protective MBR έχει επισημανθεί ως Boot. Αυτό μπορεί να επιτευχθεί ασφαλώς με τα εργαλεία fdisk/cfdisk χωρίς την αλλοίωση του GPT (καλή είναι η τήρηση αντιγράφων ασφαλείας / και ο έλεγχος της ακεραιότητας του GPT μετά το πέρας της διαδικασίας).}}<br />
<br />
* [[LILO]] Η υποστήριξη του GPT δεν έχει δοκιμαστεί μέχρι στιγμής οπότε δεν είναι ξεκάθαρο εάν υπάρχουν προβλήματα εκκίνησης από δίσκους GPT.<br />
<br />
== Εργαλεία Κατάτμησης ==<br />
=== GPT fdisk ===<br />
<br />
Το πακέτο GPT fdisk απαρτίζεται από ενα σύνολο εργαλείων κελύφους για την επεξεργασία δίσκων GPT. Αποτελείται από τα gdisk, sgdisk και cgdisk κατ' αντιστοιχία με τα εργαλεία fdisk του πακέτου util-linux (Χρησιμοποιείται σε δίσκους MBR). Είναι διαθέσιμο στο αποθετήριο [extra] ως {{Pkg|gptfdisk}}.<br />
<br />
{{Note|Τα εργαλεία κατάτμησης fdisk από το util-linux (π.χ. fdisk, cfdisk and sfdisk) δεν υποστηρίζουν το GPT, ενω μπορεί να αλλοώσουν την κεφαλίδα GPT και τον πίνακα κατατμήσεων εάν χρησιμοποιηθούν σε ενα δίσκο GPT.}}<br />
<br />
==== Μετατροπή από MBR σε GPT ====<br />
<br />
Ενα από τα καλύτερα χαρακτηριστικά του gdisk (όπως επίσης του sgdisk και του cgdisk) είναι η ικανότητά του να μετατρέπει ετικέτες δίσκου MBR και BSD σε GPT χωρίς απώλεια δεδομένων. Κατά την μετατροπή, όλες οι πρωτεύουσες και λογικές κατατμήσεις γίνονται κατατμήσεις GPT με τα σωστά αναγνωριστικά τύπου κατάτμησης GUIDs και τα Μοναδικά αναγνωριστικά κατάτμησης GUIDs να δημιουργούνται για κάθε κατάτμηση. <br />
<br />
Απλά επεξεργαστείτε τον δίσκο MBR χρησιμοποιώντας την επιλογή "w" για να αποθηκεύσετε τις αλλαγές (αντίστοιχα με το fdisk) για να μετατρέψετε τον δίσκο MBR σε GPT. '''Προσοχή για τυχόντα σφάλματα τα οποία θα πρέπει να διορθώσετε πριν την αποθήκευση οποιασδήποτε αλλαγής στον δίσκο''' διότι υπάρχει κίνδυνος απώλειας δεδομένων. Δείτε το http://www.rodsbooks.com/gdisk/mbr2gpt.html για περισσότερες πληροφορίες. Μετά το πέρας της διαδικασίας μετατροπής, οι bootloaders θα πρέπει να επανεγκατασταθούν ώστε να ρυθμιστούν για εκκίνηση από GPT.<br />
<br />
{{Note|Θυμηθείτε ότι το GPT αποθηκεύει εναν δευτερεύοντα πίνακα στο τέλος του δίσκου. Πρέπει να βεβαιωθείτε πως τουλάχιστον 1 [[Wikipedia:MiB|MiB]] του δίσκου δεν έχει εκχωρηθεί σε καμία κατάτμηση.}}<br />
<br />
{{Note|Έχετε υπόψη ότι αν χρησιμοποιείτε τον GRUB, τότε χρειάζεται μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot]]. Αν ο σχεδιασμός MBR κατατμήσεων σας δεν είναι ιδιαίτερα παλιός, υπάρχει μεγάλη πιθανότητα η πρώτη κατάτμηση να ξεκινά στον τομέα 2048 για λόγους στοίχισης. Το οποίο σημαίνει ότι στην αρχή θα υπάρχουν 1007 [[Wikipedia:KiB|KiB]] άδειου χώρου όπου η κατάτμηση bios-boot μπορεί να δημιουργηθεί. Για να επιτευχθεί αυτό, Αρχικά πραγματοποιήστε την μετατροπή mbr->gpt με το gdisk όπως περιγράφηκε παραπάνω. Έπειτα, δημιουργήστε χειροκίνητα μια νέα κατάτμηση με το gdisk και ορίστε την θέση της στους τομείς 34 - 2047, και θέστε τον τύπο {{ic|EF02}} ως τύπο της εν λόγω κατάτμησης.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272659GUID Partition Table (Ελληνικά)2013-08-26T17:29:31Z<p>Zapman: /* Μετατροπή από MBR σε GPT */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions| BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk και την σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] απαιτεί η κατάτμηση που περιέχει το {{ic|/boot/syslinux/ldlinux.sys}} (Ανεξάρτητα αν ο κατάλογος {{ic|/boot}} αποτελεί ξεχωριστή κατάτμηση ή όχι) να επισημανθεί με το χαρακτηριστικό "Legacy BIOS Bootable" του GPT (''legacy_boot'' για το GNU Parted) ώστε να αναγνωριστεί πως περιέχει τα αρχεία εκκίνησης του Syslinux απο τον κώδικα εκκίνησης MBR, των 440-byte {{ic|gptmbr.bin}}. Δείτε το [[Syslinux#GUID Partition Table aka GPT]] για περισσότερες πληροφορίες. Είναι αντίστοιχο της σήμανσης "boot" στους δίσκους MBR.<br />
<br />
* [[GRUB Legacy]], δεν υποστηρίζει δίσκους GPT. Η διανομή Fedora έχει ενημερώσει σε μεγάλο βαθμό την διακλάδωση GRUB Legacy {{AUR|grub-legacy-fedora-git}} η οποία περιέχει τις ενημερώσεις GPT της Intel (δοκιμασμένες στην διανομή Fedora, αλλά όχι στην διανομή Arch). Η διακλάδωση αυτή δεν ενημερώνεται πλέον καθώς η διανομή Fedora ήδη χρησιμοποιεί τον GRUB σαν τον προεπιλεγμένο φορτωτή εκκίνησης (bootloader) στα συστήματα BIOS από την έκδοση F16. Προτείνεται οι χρήστες να μεταβούν στον GRUB ή τον Syslinux αντίστοιχα.<br />
<br />
{{Note|Κάποιες μητρικές πλακέτες επιτραπέζιων συστημάτων θα εκκινήσουν από ενα δίσκο GPT μόνο αν η κατάτμηση protective MBR έχει επισημανθεί ως Boot. Αυτό μπορεί να επιτευχθεί ασφαλώς με τα εργαλεία fdisk/cfdisk χωρίς την αλλοίωση του GPT (καλή είναι η τήρηση αντιγράφων ασφαλείας / και ο έλεγχος της ακεραιότητας του GPT μετά το πέρας της διαδικασίας).}}<br />
<br />
* [[LILO]] Η υποστήριξη του GPT δεν έχει δοκιμαστεί μέχρι στιγμής οπότε δεν είναι ξεκάθαρο εάν υπάρχουν προβλήματα εκκίνησης από δίσκους GPT.<br />
<br />
== Εργαλεία Κατάτμησης ==<br />
=== GPT fdisk ===<br />
<br />
Το πακέτο GPT fdisk απαρτίζεται από ενα σύνολο εργαλείων κελύφους για την επεξεργασία δίσκων GPT. Αποτελείται από τα gdisk, sgdisk και cgdisk κατ' αντιστοιχία με τα εργαλεία fdisk του πακέτου util-linux (Χρησιμοποιείται σε δίσκους MBR). Είναι διαθέσιμο στο αποθετήριο [extra] ως {{Pkg|gptfdisk}}.<br />
<br />
{{Note|Τα εργαλεία κατάτμησης fdisk από το util-linux (π.χ. fdisk, cfdisk and sfdisk) δεν υποστηρίζουν το GPT, ενω μπορεί να αλλοώσουν την κεφαλίδα GPT και τον πίνακα κατατμήσεων εάν χρησιμοποιηθούν σε ενα δίσκο GPT.}}<br />
<br />
==== Μετατροπή από MBR σε GPT ====<br />
<br />
Ενα από τα καλύτερα χαρακτηριστικά του gdisk (όπως επίσης του sgdisk και του cgdisk) είναι η ικανότητά του να μετατρέπει ετικέτες δίσκου MBR και BSD σε GPT χωρίς απώλεια δεδομένων. Κατά την μετατροπή, όλες οι πρωτεύουσες και λογικές κατατμήσεις γίνονται κατατμήσεις GPT με τα σωστά αναγνωριστικά τύπου κατάτμησης GUIDs και τα Μοναδικά αναγνωριστικά κατάτμησης GUIDs να δημιουργούνται για κάθε κατάτμηση. <br />
<br />
Απλά επεξεργαστείτε τον δίσκο MBR χρησιμοποιώντας την επιλογή "w" για να αποθηκεύσετε τις αλλαγές (αντίστοιχα με το fdisk) για να μετατρέψετε τον δίσκο MBR σε GPT. '''Προσοχή για τυχόντα σφάλματα τα οποία θα πρέπει να διορθώσετε πριν την αποθήκευση οποιασδήποτε αλλαγής στον δίσκο''' διότι υπάρχει κίνδυνος απώλειας δεδομένων. Δείτε το http://www.rodsbooks.com/gdisk/mbr2gpt.html για περισσότερες πληροφορίες. Μετά το πέρας της διαδικασίας μετατροπής, οι bootloaders θα πρέπει να επανεγκατασταθούν ώστε να ρυθμιστούν για εκκίνηση από GPT.<br />
<br />
{{Note|Θυμηθείτε ότι το GPT αποθηκεύει εναν δευτερεύοντα πίνακα στο τέλος του δίσκου. Πρέπει να βεβαιωθείτε πως τουλάχιστον 1 [[Wikipedia:MiB|MiB]] του δίσκου δεν έχει εκχωρηθεί σε καμία κατάτμηση.}}<br />
<br />
{{Note|Έχετε υπόψη ότι αν χρησιμοποιείτε τον GRUB, τότε χρειάζεται μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot]]. Αν ο σχεδιασμός MBR κατατμήσεων σας δεν είναι ιδιαίτερα παλιός, υπάρχει μεγάλη πιθανότητα η πρώτη κατάτμηση να ξεκινά στον τομέα 2048 για λόγους στοίχισης. Το οποίο σημαίνει ότι στην αρχή θα υπάρχουν 1007 [[Wikipedia:KiB|KiB]] άδειου χώρου όπου η κατάτμηση bios-boot μπορεί να δημιουργηθεί. Για να επιτευχθεί αυτό, Αρχικά πραγματοποιήστε την μετατροπή mbr->gpt με το gdisk όπως περιγράφηκε παραπάνω. Έπειτα, δημιουργήστε χειροκίνητα μια νέα κατάτμηση με το gdisk και ορίστε την θέση του στους τομείς 34 - 2047, και θέστε τον τύπο {{ic|EF02}} ως τύπο της εν λόγω κατάτμησης.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272657GUID Partition Table (Ελληνικά)2013-08-26T17:02:45Z<p>Zapman: /* Partitioning Utilities */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions| BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk και την σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] απαιτεί η κατάτμηση που περιέχει το {{ic|/boot/syslinux/ldlinux.sys}} (Ανεξάρτητα αν ο κατάλογος {{ic|/boot}} αποτελεί ξεχωριστή κατάτμηση ή όχι) να επισημανθεί με το χαρακτηριστικό "Legacy BIOS Bootable" του GPT (''legacy_boot'' για το GNU Parted) ώστε να αναγνωριστεί πως περιέχει τα αρχεία εκκίνησης του Syslinux απο τον κώδικα εκκίνησης MBR, των 440-byte {{ic|gptmbr.bin}}. Δείτε το [[Syslinux#GUID Partition Table aka GPT]] για περισσότερες πληροφορίες. Είναι αντίστοιχο της σήμανσης "boot" στους δίσκους MBR.<br />
<br />
* [[GRUB Legacy]], δεν υποστηρίζει δίσκους GPT. Η διανομή Fedora έχει ενημερώσει σε μεγάλο βαθμό την διακλάδωση GRUB Legacy {{AUR|grub-legacy-fedora-git}} η οποία περιέχει τις ενημερώσεις GPT της Intel (δοκιμασμένες στην διανομή Fedora, αλλά όχι στην διανομή Arch). Η διακλάδωση αυτή δεν ενημερώνεται πλέον καθώς η διανομή Fedora ήδη χρησιμοποιεί τον GRUB σαν τον προεπιλεγμένο φορτωτή εκκίνησης (bootloader) στα συστήματα BIOS από την έκδοση F16. Προτείνεται οι χρήστες να μεταβούν στον GRUB ή τον Syslinux αντίστοιχα.<br />
<br />
{{Note|Κάποιες μητρικές πλακέτες επιτραπέζιων συστημάτων θα εκκινήσουν από ενα δίσκο GPT μόνο αν η κατάτμηση protective MBR έχει επισημανθεί ως Boot. Αυτό μπορεί να επιτευχθεί ασφαλώς με τα εργαλεία fdisk/cfdisk χωρίς την αλλοίωση του GPT (καλή είναι η τήρηση αντιγράφων ασφαλείας / και ο έλεγχος της ακεραιότητας του GPT μετά το πέρας της διαδικασίας).}}<br />
<br />
* [[LILO]] Η υποστήριξη του GPT δεν έχει δοκιμαστεί μέχρι στιγμής οπότε δεν είναι ξεκάθαρο εάν υπάρχουν προβλήματα εκκίνησης από δίσκους GPT.<br />
<br />
== Εργαλεία Κατάτμησης ==<br />
=== GPT fdisk ===<br />
<br />
Το πακέτο GPT fdisk απαρτίζεται από ενα σύνολο εργαλείων κελύφους για την επεξεργασία δίσκων GPT. Αποτελείται από τα gdisk, sgdisk και cgdisk κατ' αντιστοιχία με τα εργαλεία fdisk του πακέτου util-linux (Χρησιμοποιείται σε δίσκους MBR). Είναι διαθέσιμο στο αποθετήριο [extra] ως {{Pkg|gptfdisk}}.<br />
<br />
{{Note|Τα εργαλεία κατάτμησης fdisk από το util-linux (π.χ. fdisk, cfdisk and sfdisk) δεν υποστηρίζουν το GPT, ενω μπορεί να αλλοώσουν την κεφαλίδα GPT και τον πίνακα κατατμήσεων εάν χρησιμοποιηθούν σε ενα δίσκο GPT.}}<br />
<br />
==== Μετατροπή από MBR σε GPT ====<br />
<br />
Ενα από τα καλύτερα χαρακτηριστικά του gdisk (όπως επίσης του sgdisk και του cgdisk) είναι η ικανότητά του να μετατρέπει ετικέτες δίσκου MBR και BSD σε GPT χωρίς απώλεια δεδομένων. Κατλα την μετρατροπή, όλες οι πρωτεύουσες και λογικές κατατμήσεις γίνονται κατατμήσεις GPT με τα σωστά αναγνωριστικά τύπου κατάτμησης GUIDs και τα Μοναδικά αναγνωριστικά κατάτμησης GUIDs να δημιουργούνται για κάθε κατάτμηση. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272613GUID Partition Table (Ελληνικά)2013-08-26T08:55:01Z<p>Zapman: /* Συστήματα BIOS */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions| BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk και την σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] απαιτεί η κατάτμηση που περιέχει το {{ic|/boot/syslinux/ldlinux.sys}} (Ανεξάρτητα αν ο κατάλογος {{ic|/boot}} αποτελεί ξεχωριστή κατάτμηση ή όχι) να επισημανθεί με το χαρακτηριστικό "Legacy BIOS Bootable" του GPT (''legacy_boot'' για το GNU Parted) ώστε να αναγνωριστεί πως περιέχει τα αρχεία εκκίνησης του Syslinux απο τον κώδικα εκκίνησης MBR, των 440-byte {{ic|gptmbr.bin}}. Δείτε το [[Syslinux#GUID Partition Table aka GPT]] για περισσότερες πληροφορίες. Είναι αντίστοιχο της σήμανσης "boot" στους δίσκους MBR.<br />
<br />
* [[GRUB Legacy]], δεν υποστηρίζει δίσκους GPT. Η διανομή Fedora έχει ενημερώσει σε μεγάλο βαθμό την διακλάδωση GRUB Legacy {{AUR|grub-legacy-fedora-git}} η οποία περιέχει τις ενημερώσεις GPT της Intel (δοκιμασμένες στην διανομή Fedora, αλλά όχι στην διανομή Arch). Η διακλάδωση αυτή δεν ενημερώνεται πλέον καθώς η διανομή Fedora ήδη χρησιμοποιεί τον GRUB σαν τον προεπιλεγμένο φορτωτή εκκίνησης (bootloader) στα συστήματα BIOS από την έκδοση F16. Προτείνεται οι χρήστες να μεταβούν στον GRUB ή τον Syslinux αντίστοιχα.<br />
<br />
{{Note|Κάποιες μητρικές πλακέτες επιτραπέζιων συστημάτων θα εκκινήσουν από ενα δίσκο GPT μόνο αν η κατάτμηση protective MBR έχει επισημανθεί ως Boot. Αυτό μπορεί να επιτευχθεί ασφαλώς με τα εργαλεία fdisk/cfdisk χωρίς την αλλοίωση του GPT (καλή είναι η τήρηση αντιγράφων ασφαλείας / και ο έλεγχος της ακεραιότητας του GPT μετά το πέρας της διαδικασίας).}}<br />
<br />
* [[LILO]] Η υποστήριξη του GPT δεν έχει δοκιμαστεί μέχρι στιγμής οπότε δεν είναι ξεκάθαρο εάν υπάρχουν προβλήματα εκκίνησης από δίσκους GPT.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272612GUID Partition Table (Ελληνικά)2013-08-26T08:36:53Z<p>Zapman: /* Συστήματα BIOS */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions| BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk καιτην σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] απαιτεί η κατάτμηση που περιέχει το {{ic|/boot/syslinux/ldlinux.sys}} (Ανεξάρτητα αν ο κατάλογος {{ic|/boot}} αποτελεί ξεχωριστή κατάτμηση ή όχι) να επισημανθεί με το χαρακτηριστικό "Legacy BIOS Bootable" του GPT (''legacy_boot'' για το GNU Parted) ώστε να αναγνωριστεί πως περιέχει τα αρχεία εκκίνησης του Syslinux απο τον κώδικα εκκίνησης MBR, των 440-byte {{ic|gptmbr.bin}}. Δείτε το [[Syslinux#GUID Partition Table aka GPT]] για περισσότερες πληροφορίες. Είναι αντίστοιχο της σήμανσης "boot" στουε δίσκους MBR.<br />
<br />
* [[GRUB Legacy]], δεν υποστηρίζει δίσκους GPT. Η διανομή Fedora έχει ενημερώσει σε μεγάλο βαθμό τον GRUB Legacy {{AUR|grub-legacy-fedora-git}} που περιέχει τις ενημερώσεις GPT της Intel (δοκιμασμένες στην διανομή Fedora, αλλά όχη στην διανομή Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272610GUID Partition Table (Ελληνικά)2013-08-26T08:15:45Z<p>Zapman: /* Συστήματα BIOS */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια κατάτμηση [[GRUB#GUID Partition Table (GPT) specific instructions| BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk καιτην σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272609GUID Partition Table (Ελληνικά)2013-08-26T08:14:56Z<p>Zapman: /* Συστήματα BIOS */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Μερικά συστήματα BIOS μπορεί να μην εκκινήσουν απο δίσκους GPT. Δείτε τα http://mjg59.dreamwidth.org/8035.html και http://rodsbooks.com/gdisk/bios.html για πείσσότερες πληροφορίες και λύσεις.}}<br />
<br />
* [[GRUB]] απαιτεί μια [[GRUB#GUID Partition Table (GPT) specific instructions| κατάτμηση BIOS Boot]] των 1007 [[Wikipedia:KiB|KiB]] τύπου ({{ic|EF02}} στο gdisk καιτην σήμανση bios_grub στο GNU Parted) στα συστήματα BIOS ώστε να προσαρτήσει το αρχείο {{ic|core.img}} λόγω έλλειψης του περιθωρίου προσάρτησης μετά τον MBR στους δίσκους. Η υποστήριξη GPT στον GRUB παρέχεται μέσω του αρθρώματος {{ic|part_gpt}}.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272599GUID Partition Table (Ελληνικά)2013-08-26T07:18:14Z<p>Zapman: /* Bootloader Support */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Υποστήριξη Bootloader ==<br />
<br />
=== Συστήματα UEFI ===<br />
<br />
Όλοι οι UEFI Bootloaders υποστηρίζουν δίσκους GPT disks μιας και το GPT είναι μέρος της προδιαγραφής UEFI και ως εκ τούτου υποχρεωτική για την εκκίνηση συστημάτων UEFI. Δείτε το [[UEFI_Bootloaders]] για περισσότερες πληροφορίες.<br />
<br />
=== Συστήματα BIOS ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272503GUID Partition Table (Ελληνικά)2013-08-25T15:56:04Z<p>Zapman: /* Υποστήριξη Kernel */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). Η επιλογή αυτή πρέπει να συμπεριληφθεί ως μέρος του πυρήνα και όχι να μεταγλωττιστεί σαν άρθρωμα το οποίο μπορεί να φορτωθεί. Η ενεργοποίηση της επιλογής αυτής απαιτείται ακόμη και στην περίπτωση που οι δίσκοι GPT χρησιμοποιούνται μόνο για αποθήκευση δεδομένων και όχι για εκκίνηση συστήματος. Η επιλογή αυτή είναι ήδη ενεργοποιημένη στου πυρήνες {{Pkg|linux}} και {{Pkg|linux-lts}} του Arch που περιλαμβάνονται στο αποθετήριο [core] . Στην περίπτωση παραμετροποιημένου πυρήνα ενεργοποιείστε την επιλογή αυτή ορίζοντας {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=272108GUID Partition Table (Ελληνικά)2013-08-22T14:27:26Z<p>Zapman: /* Πλεονεκτήματα του GPT */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Χρήση GUIDs (UUIDs) για την αναγνώριση των τύπων καταμήσεων - Αποφυγή διενέξεων.<br />
# Παροχή ενός μοναδικού αναγνωριστiκού GUID δίσκου και ενός μοναδικού αναγνωριστiκού GUID για κάθε κατάτμηση - Ενας καλος τρόπος αναφοράς σε κατατμήσεις και δίσκους ανεξαρτήτως συστήματος αρχείων.<br />
# Ακαθόριστος αριθμός κατατμήσεων - εξαρτάται απο τον χλωρο που έχει εκχωρηθεί στον πίνακα κατατμήσεων - Καμία ανάγκη χρήσης εκτεταμένων και λογικών κατατμήσεων. Εξ'ορισμού ο πίνακας GPT περιέχει χώρο για τον ορισμό 128 κατατμήσεων. Παρόλα αυτά αν ο χρήστης επιθυμεί να ορίσει περισσότερες κατατμήσεις, μπορεί να εκχωρήσει περισσότερο χώρο στον πίνακα κατατμήσεων (προς το παρόν μόνο το gdisk είναι γνωστό ότι υποστηρίζει το χαρακτηριστικό αυτό).<br />
# Χρήση 64-bit LBA για την αποθήκευση αριθμών τομέων - ο μέγιστος διευθυνσιοδοτούμενος χώρος είναι τα 2 [[Wikipedia:ZiB|ZiB]].<br />
# Αποθήκευση ενός αντιγραφου ασφαλείας της κεφαλίδας και του πίνακα κατατμήσεων στο τέλος του δίσκου το οποίο βοηθά στην ανάκαμψη σε περίπτωση που τα πρωτότυπα καταστραφούν.<br />
# Χρήση αθροισμάτων ελέγχου CRC32 για τον εντοπισμό σφαλμάτων και αλλοιώσεων της κεφαλίδας και του πίνακα κατατμήσεων.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271894GUID Partition Table (Ελληνικά)2013-08-20T20:22:19Z<p>Zapman: /* Kernel Support */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Υποστήριξη Kernel ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271893GUID Partition Table (Ελληνικά)2013-08-20T20:21:31Z<p>Zapman: /* Kernel Support */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
Ο ορισμός της επιλογής {{ic|CONFIG_EFI_PARTITION}} κατα την ρύθμιση του πυρήνα (kernel) ενεργοποιεί την υποστήριξη GPT σε επίπεδο πυρήνα (παρά το όνομα EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271892GUID Partition Table (Ελληνικά)2013-08-20T20:15:35Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR με την διαφορά ότι το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντος Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271891GUID Partition Table (Ελληνικά)2013-08-20T20:09:04Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Πρωτεύοντος Πίνακα. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντα Πίνακα Κατατμήσεων, την τοποθεσία της Πρωτεύουσας Κεφαλίδας GPT. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271890GUID Partition Table (Ελληνικά)2013-08-20T20:04:21Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header (Πρωτεύουσα Κεφαλίδα GPT) - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύουσας (ή εφεδρικού αντιγράφου) Κεφαλίδας GPT<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table (Πρωτεύων Πίνακας GPT) - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table (Δευτερεύων Πίνακας GPT) - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Primary table. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header (Δευτερεύουσα Κεφαλίδα GPT) - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Πρωτεύοντος GPT Header. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης της πρωτεύουσας κεφαλίδας.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271889GUID Partition Table (Ελληνικά)2013-08-20T19:55:02Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύοντος (ή εφεδρικού αντιγράφου) GPT Header<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως as 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Primary table. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα ελέγχου CRC32 του εαυτού του και του Δευτερεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Πρωτεύοντος GPT Header. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης του primary header.<br />
|}<br />
<br />
=== Πλεονεκτήματα του GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271888GUID Partition Table (Ελληνικά)2013-08-20T19:52:21Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Όπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και του Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύοντος (ή εφεδρικού αντιγράφου) GPT Header<br />
|-<br />
| 16 KiB (εξ’ ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία από τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως as 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ’ ορισμού) πριν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Primary table. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πίνακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και του Δευτερεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Πρωτεύοντος GPT Header. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης του primary header.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271887GUID Partition Table (Ελληνικά)2013-08-20T19:49:36Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Ώπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και του Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύοντος (ή εφεδρικού αντιγράφου) GPT Header<br />
|-<br />
| 16 KiB (εξ'ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία απο τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως as 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ'ορισμού) πρίν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table - Αποτελεί ενα byte-προς-byte πανομοιότυπο αντίγραφο του Primary table. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και του Δευτερεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Πρωτεύοντος GPT Header. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης του primary header.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271886GUID Partition Table (Ελληνικά)2013-08-20T19:48:57Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Ώπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και του Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύοντος (ή εφεδρικού αντιγράφου) GPT Header<br />
|-<br />
| 16 KiB (εξ'ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία απο τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως as 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ'ορισμού) πρίν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table - Αποτελεί ενα byte-προς-byte πανομοιότυπα αντίγραφο του Primary table. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και του Δευτερεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Πρωτεύοντος GPT Header. Η κεφαλίδα αυτή μπορεί να χρησιμοποιηθεί για επαναφορά των πληροφοριών GPT σε περίπτωση αλλοίωσης του primary header.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271885GUID Partition Table (Ελληνικά)2013-08-20T19:43:54Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Ώπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και τον Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύοντος (ή εφεδρικού αντιγράφου) GPT Header<br />
|-<br />
| 16 KiB (εξ'ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία απο τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως as 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ'ορισμού) πρίν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table - Αποτελεί ενα byte-προς-byte πανομοιότυπα αντίγραφο του Primary table. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Τελευταίος λογικός τομέας του δίσκου ή τα τελευταία 512 bytes || Secondary GPT Header - το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Δευτερεύοντος Πίνακα Κατατμήσεων, τον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και τον Δευτερεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Πρωτεύοντος GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271884GUID Partition Table (Ελληνικά)2013-08-20T19:37:06Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Ώπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, ρον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και τον Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύοντος (ή εφεδρικού αντιγράφου) GPT Header<br />
|-<br />
| 16 KiB (εξ'ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία απο τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως as 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (εξ'ορισμού) πρίν τον τελευταίο λογικό τομέα του δίσκου || Secondary GPT table - Αποτελεί ενα byte-προς-byte πανομοιότυπα αντίγραφο του Primary table. Χρησιμοποιείται κυρίως για λόγους ανάκαμψης σε περίπτωση αλλοίωσης του πρωτεύοντος πίνακα κατατμήσεων.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271882GUID Partition Table (Ελληνικά)2013-08-20T19:26:09Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Ώπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, ρον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και τον Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύοντος (ή εφεδρικού αντιγράφου) GPT Header<br />
|-<br />
| 16 KiB (εξ'ορισμού) ακολουθουν τον δεύτερο λογικό τομέα του δίσκου<br />
| Primary GPT Table - 128 εγγραφές κατατμήσεων (εξ'ορισμού, μπορεί να είναι περισσότερες), καθεμία απο τις οποίες περιέχει μια καταχώριση μεγέθους 128 bytes (ως εκ τούτου συνολικά 16 KiB για 128 καταχωρίσεις κατατμήσεων). Οι αριθμοί των τομέων αποθηκεύονται ως as 64-bit LBA και κάθε κατάτμηση έχει ενα μοναδικό αναγνωριστικό τύπου κατάτμησης (GUID) και ενα μοναδικό αναγνωριστικό κατάτμησης (GUID).<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271871GUID Partition Table (Ελληνικά)2013-08-20T17:33:24Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή τα πρώτα 512 bytes || Protective MBR - Ώπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE η οποία καταλαμβάνει όλο τον διαθέσιμο χώρο στον δίσκο, ή στην περίπτωση > των 2 [[Wikipedia:TiB|TiB]], καταλαμβάνει χώρο μεγέθους 2 TiB.<br />
|-<br />
| Δεύτερος λογικός τομέας του δίσκου ή τα επόμενα 512 bytes || Primary GPT Header - Περιέχει το μοναδικό αναγνωριστικό δίσκου GUID, την τοποθεσία του Πρωτεύοντος Πίνακα Κατατμήσεων, ρον αριθμό των πιθανών εγγραφών στον πινακα κατατμήσεων, τα αθροίσματα αυτο-ελέγχου CRC32 και τον Πρωτεύοντα Πίνακα Κατατμήσεων, την τοποθεσία του Δευτερεύοντος (ή εφεδρικού αντιγράφου) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271868GUID Partition Table (Ελληνικά)2013-08-20T17:05:23Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| Πρώτος λογικός τομέας του δίσκου ή Πρώτα 512 bytes || Protective MBR - Ώπως και ο κοινός MBR αλλά το τμήμα των 64-byte περιέχει μια μεμονωμένη εγγραφή πρωτεύουσας κατάτμησης τύπου 0xEE defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271742GUID Partition Table (Ελληνικά)2013-08-19T13:32:17Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής Unified Extensible Firmware Interface, και κάνει χρήση του καθολικά μοναδικού αναγνωριστικού συσκευών. Διαφέρει από το Master Boot Record (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονωμένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω από τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών κατατμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμησης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται από 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποιοσδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται από:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271739GUID Partition Table (Ελληνικά)2013-08-19T13:22:49Z<p>Zapman: /* GUID Partition Table */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω απο τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών καταμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμήσης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται απο 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποισδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
Ο Πίνακας Κατατμήσεων GUID (GPT) χρησιμοποιεί τα GUIDs (ή UUIDs κατα linux) ώστε να ορίσει κατατμήσεις και τους τύπους των, εξ 'ου και το ονομά του. Ο GPT αποτελείται απο:<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Σκοπός<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271738GUID Partition Table (Ελληνικά)2013-08-19T13:16:09Z<p>Zapman: /* Τα προβλήματα του MBR */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω απο τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών καταμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# Ο MBR αποθηκεύει τις πληροφορίες τομέα κατάτμήσης κάνοντας χρήση 32-bit LBA τιμών. Το μήκος LBA μαζί με το μέγεθος τομέα που αποτελείται απο 512 bytes (που χρησιμοποιείται συνήθως) περιορίζει το μέγιστο μέγεθος δίσκου που μπορεί να διευθυνσιοδοτηθει στα 2 [[Wikipedia:TiB|TiB]]. Οποισδήποτε χώρος πέραν των 2 TiB δεν μπορεί να οριστεί ως κατάτμηση αν χρησιμοποιηθεί ο MBR.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271701GUID Partition Table (Ελληνικά)2013-08-19T09:21:27Z<p>Zapman: /* Τα προβλήματα του MBR */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, και υπάρχει ελεύθερος χώρος έξω απο τα όρια του χώρου που καταλαμβάνει η εκτεταμένη κατάτμηση, δεν μπορεί να δημιουργηθεί μια νέα κατάτμηση η οποία να εκμεταλλεύεται τον χώρο αυτό.<br />
# Στο εσωτερικό της εκτεταμένης κατάτμησης, τα μετα-δεδομένα των λογικών καταμήσεων αποθηκεύονται σε μία δομή συνδεδεμένης λίστας. Αν ενας σύνδεσμος χαθεί, όλες οι λογικές κατατμήσεις οι οποίες ακολουθούν τα μεταδεδομένα αυτά χάνονται.<br />
# Ο MBR υποστηρίζει κωδικούς ορισμού τύπου κατάτμησης οι οποίοι καταλαμβάνουν μόνο ενα byte κάτι που οδηγεί σε πολλές διενέξεις.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271700GUID Partition Table (Ελληνικά)2013-08-19T09:09:28Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για την κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271699GUID Partition Table (Ελληνικά)2013-08-19T09:07:39Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για τν κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και εκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι εκτεταμένες κατατμήσεις. Μια εκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 εκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 εκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 εκτεταμένη κατάτμηση, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271698GUID Partition Table (Ελληνικά)2013-08-19T09:06:13Z<p>Zapman: /* Τα προβλήματα του MBR */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για τν κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και επεκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι επεκτεταμένες κατατμήσεις. Μια επεκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 επεκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Μπορούν να οριστούν μόνο 4 πρωτεύουσες κατατμήσεις ή 3 πρωτεύουσες κατατμήσεις + 1 επεκτεταμένη κατάτμηση (με ακαθόριστο αριθμό λογικών κατατμήσεων να εμπεριέχονται σε αυτή). Εάν έχουμε 3 πρωτεύουσες + 1 επεκτεταμένη κατάτμηση, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271696GUID Partition Table (Ελληνικά)2013-08-19T07:52:47Z<p>Zapman: /* Master Boot Record */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για τν κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και επεκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι επεκτεταμένες κατατμήσεις. Μια επεκτεταμένη κατάτμηση είναι απλά μια πρωτεύουσα κατάτμηση στον MBR η οποία περιλαμβάνει άλλες κατατμήσεις οι οποίες καλούνται λογικές κατατμήσεις. Λαμβάνοντας υπόψη τα προηγούμενα αντιλαμβάνεται κανείς τον περιορισμό χρήσης 4 πρωτευουσών κατατμήσεων, ή 3 πρωτευουσών και 1 επεκτεταμένης κατάτμησης με πολλές λογικές κατατμήσεις στο εσωτερικό της.<br />
<br />
=== Τα προβλήματα του MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271695GUID Partition Table (Ελληνικά)2013-08-19T07:40:51Z<p>Zapman: /* Master Boot Record */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για τν κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και επεκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
Όλες οι πληροφορίες σχετικά με τις πρωτεύουσες κατατμήσεις περιορίζονται στα 64 bytes που έχουν εκχωρηθεί. Για να ξεπεραστεί ο περιορισμός αυτός, χρησιμοποιήθηκαν οι επεκτεταμένες κατατμήσεις. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271608GUID Partition Table (Ελληνικά)2013-08-18T17:00:04Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (ο συνήθης τρόπος κατάτμησης) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για τν κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και επεκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271600GUID Partition Table (Ελληνικά)2013-08-18T14:49:44Z<p>Zapman: /* Master Boot Record */</p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (the more commonly used partitioning style) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για τν κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
Ο πίνακας κατατμήσεων MBR αποθηκεύει τις πληροφορίες των κατατμήσεων στον πρώτο τομέα του σκληρού δίσκου ως εξής<br />
<br />
{| border="1"<br />
! Τοποθεσία στον Σκληρό Δίσκο !! Λειτουργία Κώδικα<br />
|-<br />
| Πρώτα 440 bytes || Κώδικας εκκίνησης του MBR που εκτελείται απο το BIOS.<br />
|-<br />
| 441-446 bytes || Αναγνωριστικό δίσκου MBR.<br />
|-<br />
| 447-510 bytes || Πραγματικός πίνακας κατατμήσεων με πληροφορίες για τις πρωτεύουσες και επεκτεταμένες κατατμήσεις. (Σημειώστε οτι οι λογικές κατατμήσεις δεν καταγράφονται εδώ)<br />
|-<br />
| 511-512 bytes || Αναγνωριστικό εκκίνησης MBR 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271586GUID Partition Table (Ελληνικά)2013-08-18T12:43:38Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. Διαφέρει απο το [[Master Boot Record]] (the more commonly used partitioning style) σε πολλές πτυχές και έχει πολλά πλεονεκτήματα.<br />
<br />
Για τν κατανόηση του GPT, είναι σημαντικό να κατανοήσει κανείς τι είναι το MBR και ποιά είναι τα μειονεκτήματά του.<br />
<br />
Σε κάθε τρόπο κατάτμησης, ο αριθμός των κατατμήσεων οι οποίες μπορούν να οριστούν βασίζεται στο συνολικό χώρο που καταλαμβάνει ο πίνακας κατατμήσεων και στον χώρο που απαιτείται για την αποθήκευση των πληροφοριών μιας μεμονομένης κατάτμησης.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271585GUID Partition Table (Ελληνικά)2013-08-18T12:30:58Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what MBR is and what its disadvantages are.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271574GUID Partition Table (Ελληνικά)2013-08-18T11:13:49Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Επισκόπηση}}<br />
{{Article summary text|{{Επισκόπηση της διαδικασίας εκκίνησης}}}}<br />
{{Article summary heading|Συναφή Άρθρα}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Διαδικασία Κατάτμησης}}<br />
{{Article summary wiki|Διαδικασία Εκκίνησης του Arch}}<br />
{{Article summary end}}<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], και κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what MBR is and what its disadvantages are.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271573GUID Partition Table (Ελληνικά)2013-08-18T11:12:02Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|Μια επισκόπηση του Πίνακα Κατατμήσεων GUID.}}<br />
{{Article summary heading|Επισκόπηση}}<br />
{{Article summary text|{{Επισκόπηση της διαδικασίας εκκίνησης}}}}<br />
{{Article summary heading|Συναφή Άρθρα}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Διαδικασία Κατάτμησης}}<br />
{{Article summary wiki|Διαδικασία Εκκίνησης του Arch}}<br />
{{Article summary end}}<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], ο οποίος κάνει χρήση του [[Wikipedia:Globally unique identifier | καθολικά μοναδικού αναγνωριστικού]] συσκευών. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what MBR is and what its disadvantages are.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271571GUID Partition Table (Ελληνικά)2013-08-18T10:35:29Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|An overview of the GUID Partition Table.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
Ο πίνακας κατατμήσεων GUID (GPT) είναι ενας νέος τρόπος κατάτμησης ο οποίος αποτελεί μέρος της προδιαγραφής [[Unified Extensible Firmware Interface]], Χρησιμοποιώντας [[Wikipedia:Globally unique identifier | globally unique identifier]] for devices. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what MBR is and what its disadvantages are.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271570GUID Partition Table (Ελληνικά)2013-08-18T10:29:50Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Ελληνικά)]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|An overview of the GUID Partition Table.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
GUID Partition Table (GPT) is a new style of partitioning which is part of the [[Unified Extensible Firmware Interface]] Specification, using the [[Wikipedia:Globally unique identifier | globally unique identifier]] for devices. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what MBR is and what its disadvantages are.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=271569GUID Partition Table (简体中文)2013-08-18T10:29:10Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (简体中文)]]<br />
[[el:Πίνακας Κατατμήσεων GUID]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
{{Article summary start}}<br />
{{Article summary text|An overview of the GUID Partition Table.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
{{Translateme (简体中文)|翻译前请重新从英文页面复制最新版本。}} <br />
GUID Partition Table (GPT) is a new style of partitioning which is part of the [[Unified Extensible Firmware Interface]] Specification, using the [[Wikipedia:Globally unique identifier | globally unique identifier]] for devices. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what is MBR and what are its disadvantages.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
存储在硬盘的第一个扇区的MBR分区表分区信息如下<br />
<br />
{| border="1"<br />
! HDD的位置 !! 作用<br />
|-<br />
| 前 440 个字节 || 由BIOS锁存的MBR启动代码<br />
|-<br />
| 441-446 字节 || MBR盘标识<br />
|-<br />
| 447-510 字节 || 实际的主分区和扩展分区的分区表信息 。(注,此处未列出逻辑分区)<br />
|-<br />
| 511-512 字节 || MBR 启动标识 0xAA55。<br />
|}<br />
<br />
有64字节的空间用来描述主分区的信息。为了扩展它,启用了扩展分区的概念。 An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== MBR 带来的问题 ===<br />
#一块磁盘只能存在 4 个主分区或者是最多 3 个主分区加上 1 个扩展分区(扩展分区里面可以建立任意数量的逻辑分区)。 如果你已经有 3 个主分区加上一个扩展分区,就算硬盘上还存在一些自由空间,你也不能在上面新建任何的分区。<br />
# 扩展分区中的逻辑分区的元数据被存储在一个链表结构。如果一条链路丢失,所有的逻辑分区后的元数据都将丢失。<br />
# MBR只支持1字节的分区类型代码,从而导致一些冲突。<br />
# MBR分区扇区存储信息使用32位LBA值。LBA 使用扇区为 512 比特(较常用)导致 2 TiB 为的磁盘的最大寻址。如果使用 MBR 超过 2 TiB 的磁盘便不能被识别或者是分区。<br />
<br />
== GUID Partition Table(GPT 分区表) ==<br />
GUID 分区表(GPT)使用 GUID 分区定义及其类型(Linux中叫做 UUID ),因此得名。GPT 分区表包括:<br />
{| border="1"<br />
! 硬盘上的位置 !! 作用<br />
|-<br />
| 磁盘的第一逻辑扇区或前 512 字节 || 保护MBR-与MBR相像,只是64字节区域包含一个单个0XEE类型的主分区入口,这个入口支持>2TiB的空间,分区大小高达2TiB<br />
|-<br />
| 磁盘的第二个逻辑扇区或下一个 512 直接 || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| 最后一个逻辑扇区或最后 512 字节 || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitary number of partitions - depends on space allocated for the partition table (maximum of 128 partitions) - No need for extended and logical partitions.<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 ZiB.<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== 引导支持 ==<br />
<br />
=== UEFI 系统 ===<br />
<br />
自从 GPT 成为 UEFI 规范的一部分且强制其为UEFI的引导,所有 UEFI 引导程序都支持GPT磁盘。 阅读 [[UEFI_Bootloaders]] 可以获得更多的信息。<br />
<br />
=== BIOS 系统 ===<br />
<br />
* [[GRUB2]] 需要一个2 MiB 的“BIOS引导分区” (在 gdisk 中分区代码为 EF02,在 GNU Parted 中使用 bios_grub 标志)。in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB2 is provided by the {{ic|part_gpt}} module. See [[GRUB2#GPT specific instructions]] for more info.<br />
<br />
* [[Syslinux]] requires the {{ic|/boot}} partition to be marked as "Legacy BIOS Bootable" GPT attribute (legacy_boot flag in GNU Parted) to identify the partition containing the syslinux boot files by its MBR boot code {{ic|gptmbr.bin}} . See [[Syslinux#GUID_Partition_Table_aka_GPT]] for more info.<br />
<br />
* [[GRUB Legacy]], present in the AUR as {{AUR|grub-legacy}}, does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested in Arch).<br />
<br />
{{Note|Fedora developers have mentioned that after the release of Fedora 17, grub-legacy-fedora development will stop. Fedora already uses GRUB2 as its default BIOS bootloader since F16. Users are recommended to switch to GRUB2 or Syslinux instead.}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(Espa%C3%B1ol)&diff=271568GUID Partition Table (Español)2013-08-18T10:28:18Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems (Español)]]<br />
[[el:Πίνακας Κατατμήσεων GUID]]<br />
[[en:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start|Sumario}}<br />
{{Article summary text|Una descripción sobre la GUID Partition Table.}}<br />
{{Article summary heading|Descripción}}<br />
{{Article summary text|Para iniciar Arch Linux, es necesario tener instalado en el [[Master_Boot_Record_(Español)|Master Boot Record (MBR)]] o en la '''GUID Partition Table (GPT)''' un gestor de arranque compatible con Linux como [[GRUB2_(Español)|GRUB(2)]], [[Syslinux_(Español)|Syslinux]], [[LILO|LILO]] o [[GRUB_Legacy|GRUB Legacy]]. El gestor de arranque es responsable de cargar el kernel y el [[Mkinitcpio (Español)|ramdisk inicial]] antes de iniciar el [[Arch_Boot_Process_(Español)|proceso de arranque]].}}<br />
{{Article summary heading|Relacionado}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface (Español)}}<br />
{{Article summary wiki|Master Boot Record (Español)}}<br />
{{Article summary wiki|Initscripts (Español)}}<br />
{{Article summary end}}<br />
<br />
GUID Partition Table (GPT) es un nuevo formato de particionado integrante de la especificación [[Unified Extensible Firmware Interface]], que usa un [[Wikipedia:Globally unique identifier|identificador único global]] para los dispositivos. Es diferente del [[Master Boot Record]] (el estilo más comúnmente utilizado de partición) en muchos aspectos y tiene muchas ventajas.<br />
<br />
Para entender GPT, es importante entender lo que es MBR y cuáles son sus desventajas.<br />
<br />
Para cualquier estilo de particionado, el número de particiones que pueden ser definidas se basa en el espacio total asignado por la tabla de particiones y en el espacio necesario para almacenar la información de una sola partición.<br />
<br />
== Master Boot Record ==<br />
<br />
La tabla de particiones MBR almacena la información de las particiones en el primer sector de un disco duro de la siguiente manera:<br />
<br />
{| border="1"<br />
! Ubicación en el disco duro !! Propósito del Código<br />
|-<br />
| Primeros 440 bytes || código de arranque de MBR que es lanzado por la BIOS.<br />
|-<br />
| 441-446 bytes || firma de disco MBR.<br />
|-<br />
| 447-510 bytes || tabla de particiones vigente con información acerca de las particiones primarias y extendidas. (Tenga en cuenta que las particiones lógicas no están listadas aquí)<br />
|-<br />
| 511-512 bytes || firma de arranque MBR 0xAA55.<br />
|}<br />
<br />
La información completa acerca de las particiones primarias se limita a los 64 bytes asignados. Para ampliar ésto, fueron utilizadas particiones extendidas. Una partición extendida es simplemente una partición primaria en el MBR, que actúa como un contenedor para otras particiones llamadas particiones lógicas. Así que un disco duro queda limitado a 4 particiones primarias, o 3 primarias y 1 partición extendida con un número variable de particiones lógicas en su interior.<br />
<br />
===Problemas con MBR === <br />
<br />
# Sólo pueden ser definidas 4 particiones primarias o 3 primarias + 1 partición extendida (con un número arbitrario de particiones lógicas dentro de la partición extendida). Si tiene 3 particiones primarias + 1 partición extendida, y tiene algo de espacio libre fuera del área de la partición extendida, no se puede crear una nueva partición en ese espacio libre.<br />
# Dentro de la partición extendida, los metadatos de las particiones lógicas se almacenan en una estructura de lista enlazada. Si un enlace se pierde, todas las particiones lógicas existentes, después de los metadatos, se pierden.<br />
# MBR sólo admite 1 byte para códigos de tipo de partición, lo que conlleva muchas colisiones.<br />
# MBR almacena la información del sector de la partición con valores LBA de 32 bits. Esta longitud de LBA junto con los 512 byte del tamaño del sector (más comúnmente utilizados) limita el tamaño máximo manejable del disco hasta 2 [[Wikipedia:es:TiB|TiB]]. Cualquier espacio superior a 2 TiB supone que no puede ser definido como una partición si se utiliza MBR para particionarlo.<br />
<br />
==GUID Partition Table==<br />
<br />
GUID Partition Table (GPT) utiliza GUIDs (o UUIDs en el mundo linux) para definir particiones y sus tipos, de ahí el nombre. La GPT se compone de:<br />
{| border="1"<br />
! Ubicación en el disco duro !! Propósito<br />
|-<br />
| Primer sector lógico del disco o Primeros 512 bytes || Protective MBR - Igual que un MBR normal, pero el área de 64 bytes contiene una sola Partición Primaria del tipo 0xEE entrada definida sobre el tamaño total del disco o en caso de >2 [[Wikipedia:es:TiB|TiB]], hasta un tamaño de partición de 2 TiB.<br />
|-<br />
| Segundo sector lógico del disco o Siguientes 512 bytes || Cabecera GPT Principal - Contiene el Unique Disk GUID (GUID Único del Disco), Ubicación de la Tabla de la Partición Primaria, Número de posibles entradas en la tabla de particiones, las sumas de comprobación CRC32 de sí mismo y de la Tabla de Partición Primaria, Localización de la Segunda Cabecera (o Backup) GPT<br />
|-<br />
| 16 KiB (por defecto), tras el segundo sector lógico del disco<br />
| Tabla GPT Principal - 128 entradas de partición (por defecto, aunque puede ser más alto), cada una con una entrada de 128 bytes de tamaño (de ahí el total de 16 Kb para 128 entradas de partición). Los números del sector se almacenan en 64-bit LBA y cada partición tiene un tipo GUID de partición y un único GUID por partición .<br />
|-<br />
| 16 KiB (por defecto) antes del último sector lógico del disco || Tabla GPT Secundaria - Es byte por byte idéntica a la tabla Principal. Se utiliza principalmente para la recuperación en caso de que la tabla de partición principal esté dañada.<br />
|-<br />
| Último sector lógico del disco o Últimos 512 bytes || Cabecera GPT Secundaria - Contiene la GUID Única del Disco, lugar de la tabla de la partición secundaria, el número de entradas posibles en la tabla de particiones, las sumas de comprobación CRC32 de sí mismo y la Tabla de Partición Secundaria, Localización de la Principal Cabecera GPT. Esta cabecera se puede utilizar para recuperar información de la GPT en caso de que la cabecera principal esté dañada.<br />
|}<br />
<br />
===Ventajas de GPT===<br />
<br />
# Utiliza GUID (UUID) para identificar los tipos de particiones - Sin colisiones.<br />
# Proporciona un GUID único de disco y un GUID único de partición para cada partición - Un buen sistema de archivos independiente referenciando a las particiones y discos.<br />
# Número arbitrarios de particiones -depende del espacio asignado por la tabla de particiones-. No hay necesidad de particiones extendidas y lógicas. Por defecto, la tabla GPT contiene espacio para la definición de 128 particiones. Sin embargo, si el usuario desea definir más particiones, se puede asignar más espacio (actualmente se sabe que solo gdisk soporta esta característica).<br />
# Utiliza 64-bit LBA para almacenar números del Sector - tamaño máximo del disco manejable es de 2 [[Wikipedia:es:ZiB|ZiB]].<br />
# Almacena una copia de seguridad del encabezado y de la tabla de particiones al final del disco que ayuda en la recuperación en el caso de que los primeros están dañados.<br />
# Checksum CRC32 para detectar errores y daños de la cabecera y en la tabla de particiones.<br />
<br />
===Soporte del Kernel===<br />
<br />
La opción {{ic|CONFIG_EFI_PARTITION}} en la configuración del kernel permite el soporte GPT en el kernel (a pesar del nombre PARTICIÓN EFI). Esta opción debe ser incorporada en el kernel y no compilada como un módulo cargable. La misma es necesaria incluso si los discos GPT solo se utilizan para el almacenamiento de datos y no para el arranque. Esta opción está activada por defecto en el kernel de Arch {{Pkg|linux}} y {{Pkg|linux-lts}} contenido en el repositorio [core]. Para el caso de un kernel personalizado, esta opción se habilita estableciendo {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
==Soporte del Bootloader==<br />
<br />
===Sistemas UEFI===<br />
<br />
Todos los gestores de arranque UEFI admiten discos GPT desde el momento en que GPT es una parte de la especificación UEFI y, por lo tanto, obligatorio para el arranque UEFI. Consulte [[UEFI_Bootloaders]] para más información.<br />
<br />
===Sistemas BIOS===<br />
{{Nota|Algunos sistemas BIOS no pueden arrancar desde discos GPT. Véase http://mjg59.dreamwidth.org/8035.html y http://rodsbooks.com/gdisk/bios.html para obtener más información y posibles soluciones.}}<br />
<br />
* [[GRUB]](2) requiere de 2 MiB de "Partition Boot BIOS" (código tipo EF02 en gdisk y el indicador bios_grub en GNU Parted) en los sistemas BIOS para incrustar su archivo {{ic|core.img}} debido a la falta de espacio post-MBR para poder insertar discos GPT. Entre tanto, la compatibilidad GPT en GRUB(2) es proporcionada por el módulo {{ic|part_gpt}}. Consulte [[GRUB#GPT_specific_instructions|instrucciones específicas GPT para GRUB]] para más información.<br />
<br />
* [[Syslinux]] requiere que la partición {{ic|/boot}} sea marcada como "Legacy BIOS Bootable" atributo GPT ( indicador ''legacy_boot'' en GNU Parted) para identificar la partición que contiene los archivos de arranque Syslinux para su código de arranque MBR {{ic|gptmbr.bin}}. Consulte [[Syslinux#GUID_Partition_Table_aka_GPT|Syslinux:GPT]] para más información.<br />
<br />
* [[GRUB Legacy]], no admite discos GPT. Fedora tiene modificado el fork GRUB Legacy: {{AUR|grub-legacy-fedora-git}}, conteniendo parches para GPT con Intel (probado en Fedora, aunque no en Arch). Este fork ya no es mantenido por Fedora que utiliza GRUB como su gestor de arranque de la BIOS por defecto desde F16. Se recomienda a los usuarios cambiar a GRUB o Syslinux en su lugar.<br />
<br />
{{Nota|En algunas placas base Intel solo se iniciará un disco GPT si la partición protective MBR tiene establecido el arranque. Esto se puede hacer de manera segura con fdisk/cfdisk sin dañar la GPT (pero de todos modos haga backups y, luego, vuelva a verificar la integridad de la GPT).}}<br />
<br />
* No se ha probado la compatibilidad de [[LILO]] con GPT, por lo que no está claro si tiene problemas de arranque en los discos particionados con GPT.<br />
<br />
==Utilidades de Partición ==<br />
<br />
===GPT fdisk === <br />
<br />
GPT fdisk es un conjunto de utilidades en modo texto para la edición de los discos GPT. Éstas consisten en gdisk, sgdisk y cgdisk que son equivalentes a las herramientas respectivas de fdisk desde util-linux (utilizadas para discos MBR). {{pkg|gptfdisk}} está disponible en el repositorio [extra].<br />
<br />
{{Nota|La utilidades de particionado de fdisk desde util-linux (por ejemplo, fdisk, cfdisk y sfdisk) no admiten GPT, y pueden dañar el encabezado GPT y la tabla de particiones si se utiliza en un disco GPT.}}<br />
<br />
====Conversión de MBR a GPT====<br />
<br />
Una de las mejores características de gdisk (y sgdisk y cgdisk también) es su capacidad para convertir MBR y etiquetas de disco BSD a GPT sin pérdida de datos. Tras la conversión, todas las particiones MBR primarias y las particiones lógicas quedarán convertidas en particiones GPT con los tipos GUID de partición correctos y GUID únicos de partición creados para cada partición.<br />
<br />
Sólo tiene que abrir el disco MBR usando gdisk y salir con "w" para escribir los cambios en el disco (similar a fdisk) para convertir el disco MBR a GPT. '''¡Cuidado con los errores y de corregirlos antes de escribir cualquier cambio en el disco!''', ya que corre el riesgo de perder datos. Consulte http://www.rodsbooks.com/gdisk/mbr2gpt.html para más información. Después de la conversión, el gestor de arranque tendrá que ser reinstalado para configurarlo a fin de que arranque desde GPT.<br />
<br />
{{Nota|Recuerde que GPT almacena una tabla secundaria al final del disco. Puede que tenga que asegurarse de que tiene 1 MiB al final del disco que no se utiliza por ninguna partición.}}<br />
{{Nota|Tenga en cuenta que si el gestor de arranque es Grub, se necesita una [[GRUB2_(Español)#Instrucciones_espec.C3.ADficas_para_GUID_Partition_Table_.28GPT.29|BIOS Boot Partition]]. Si la configuración del particionado MBR no es demasiado antiguo, es posible que la primera partición comience en el sector 2048 por razones de alineación. Eso significa que al principio habŕa 1007KiB de espacio vacío donde poder ubicar la partición bios de arranque creada. Para ello, en primer lugar, realice la conversión de mbr->gpt con gdisk como se ha descrito anteriormente. A continuación, cree una nueva partición con gdisk y especifique su posición entre los sectores 34 a 2047, y establezca el tipo de partición como {{ic | EF02}}.}}<br />
<br />
===GNU Parted=== <br />
<br />
En GNU Parted >=3,0, la utilidad de línea de comandos {{ic|parted}} no es compatible con cualquier operación relacionada con sistema de archivos, y la mayor parte del código relacionado con FS ha sido eliminado de libparted, dejando sólo el código mínimo requerido por las aplicaciones externas como gparted. Upstream recomienda el uso de las herramientas específicas del sistema de archivos o una de las utilidades que contienen GUI como gparted (que llama a estas herramientas externas) para las operaciones relacionadas con el sistema de archivos.<br />
<br />
== Véase también ==<br />
<br />
# Página de Wikipedia sobre [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] y [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# Página de Rod Smith sobre [http://rodsbooks.com/gdisk/ la herramienta fdisk GPT] y página del proyecto [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net - gptfdisk]<br />
# Página Rod Smith's sobre [http://rodsbooks.com/gdisk/mbr2gpt.html conversión de MBR a GPT] y arranque de sistemas operativos [http://rodsbooks.com/gdisk/booting.html~~HEAD=NNS desde GPT]<br />
# Página Rod Smith's sobre la [http://www.rodsbooks.com/linux-fs-code/index.html Nueva Partición Tipo GUID] para datos de particiones Linux<br />
# Presentación página [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout CD's de Recuperación del Sistema en GPT]<br />
# Página de Wikipedia sobre [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# Aproveche al máximo de unidades de gran tamaño con [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 GPT y Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx FAQ de Microsoft Windows y GPT]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271567GUID Partition Table (Ελληνικά)2013-08-18T10:26:45Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems]]<br />
[[en:GUID Partition Table]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|An overview of the GUID Partition Table.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
GUID Partition Table (GPT) is a new style of partitioning which is part of the [[Unified Extensible Firmware Interface]] Specification, using the [[Wikipedia:Globally unique identifier | globally unique identifier]] for devices. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what MBR is and what its disadvantages are.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=271566GUID Partition Table (Ελληνικά)2013-08-18T10:22:47Z<p>Zapman: Created page with "Category:File systems el:Πίνακας Κατατμήσεων GUID es:GUID Partition Table tr:Guid_Bölümledirme_Tablosu zh-CN:GUID Partition Table {{Art..."</p>
<hr />
<div>[[Category:File systems]]<br />
[[el:Πίνακας Κατατμήσεων GUID]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|An overview of the GUID Partition Table.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
GUID Partition Table (GPT) is a new style of partitioning which is part of the [[Unified Extensible Firmware Interface]] Specification, using the [[Wikipedia:Globally unique identifier | globally unique identifier]] for devices. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what MBR is and what its disadvantages are.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=GUID_Partition_Table&diff=271565GUID Partition Table2013-08-18T10:22:23Z<p>Zapman: </p>
<hr />
<div>[[Category:File systems]]<br />
[[el:Πίνακας Κατατμήσεων GUID]]<br />
[[es:GUID Partition Table]]<br />
[[tr:Guid_Bölümledirme_Tablosu]]<br />
[[zh-CN:GUID Partition Table]]<br />
{{Article summary start}}<br />
{{Article summary text|An overview of the GUID Partition Table.}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Boot process overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Unified Extensible Firmware Interface}}<br />
{{Article summary wiki|Master Boot Record}}<br />
{{Article summary wiki|Partitioning}}<br />
{{Article summary wiki|Arch Boot Process}}<br />
{{Article summary end}}<br />
<br />
GUID Partition Table (GPT) is a new style of partitioning which is part of the [[Unified Extensible Firmware Interface]] Specification, using the [[Wikipedia:Globally unique identifier | globally unique identifier]] for devices. It is different from the [[Master Boot Record]] (the more commonly used partitioning style) in many aspects and has many advantages.<br />
<br />
To understand GPT, it is important to understand what MBR is and what its disadvantages are.<br />
<br />
For any partitioning style, the number of partitions that can be defined is based on the total space allotted for the partition table and the space required for storing the information of a single partition.<br />
<br />
== Master Boot Record ==<br />
The MBR partition table stores the partitions info in the first sector of a hard disk as follows<br />
<br />
{| border="1"<br />
! Location in the HDD !! Purpose of the Code<br />
|-<br />
| First 440 bytes || MBR boot code that is launched by the BIOS.<br />
|-<br />
| 441-446 bytes || MBR disk signature.<br />
|-<br />
| 447-510 bytes || Actual partition table with info about primary and extended partitions. (Note that logical partitions are not listed here)<br />
|-<br />
| 511-512 bytes || MBR boot signature 0xAA55.<br />
|}<br />
<br />
The entire information about the primary partitions is limited to the 64 bytes allotted. To extend this, extended partitions were used. An extended partition is simply a primary partition in the MBR which acts like a container for other partitions called logical partitions. So one is limited to either 4 primary partitions, or 3 primary and 1 extended partitions with many logical partitions inside it.<br />
<br />
=== Problems with MBR ===<br />
# Only 4 primary partitions or 3 primary + 1 extended partitions (with arbitrary number of logical partitions within the extended partition) can be defined. If you have 3 primary + 1 extended partitions, and you have some free space outside the extended partition area, you cannot create a new partition over that free space.<br />
# Within the extended partition, the logical partitions' meta-data is stored in a linked-list structure. If one link is lost, all the logical partitions following that metadata are lost.<br />
# MBR supports only 1 byte partition type codes which leads to many collisions.<br />
# MBR stores partition sector information using 32-bit LBA values. This LBA length along with 512 byte sector size (more commonly used) limits the maximum addressable size of the disk to be 2 [[Wikipedia:TiB|TiB]]. Any space beyond 2 TiB cannot be defined as a partition if MBR partitioning is used.<br />
<br />
== GUID Partition Table ==<br />
GUID Partition Table (GPT) uses GUIDs (or UUIDs in linux world) to define partitions and its types, hence the name. The GPT consists of:<br />
{| border="1"<br />
! Location in the HDD !! Purpose<br />
|-<br />
| First logical sector of the disk or First 512 bytes || Protective MBR - Same as a normal MBR but the 64-byte area contains a single 0xEE type Primary partition entry defined over the entire size of the disk or in case of >2 [[Wikipedia:TiB|TiB]], upto a partition size of 2 TiB.<br />
|-<br />
| Second logical sector of the disk or Next 512 bytes || Primary GPT Header - Contains the Unique Disk GUID, Location of the Primary Partition Table, Number of possible entries in partition table, CRC32 checksums of itself and the Primary Partition Table, Location of the Secondary (or Backup) GPT Header<br />
|-<br />
| 16 KiB (by default) following the second logical sector of the disk<br />
| Primary GPT Table - 128 Partition entries (by default, can be higher), each with an entry of size 128 bytes (hence total of 16 KiB for 128 partition entries). Sector numbers are stored as 64-bit LBA and each partition has a Partition Type GUID and a Unique Partition GUID.<br />
|-<br />
| 16 KiB (by default) before the last logical sector of the disk || Secondary GPT table - It is byte-for-byte identical to the Primary table. Used mainly for recovery in case the primary partition table is damaged.<br />
|-<br />
| Last logical sector of the disk or Last 512 bytes || Secondary GPT Header - Contains the Unique Disk GUID, Location of the Secondary Partition Table, Number of possible entries in the partition table, CRC32 checksums of itself and the Secondary Partition Table, Location of the Primary GPT Header. This header can be used to recover GPT info in case the primary header is corrupted.<br />
|}<br />
<br />
=== Advantages of GPT ===<br />
# Uses GUIDs (UUIDs) to identify partition types - No collisions.<br />
# Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks.<br />
# Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature).<br />
# Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 [[Wikipedia:ZiB|ZiB]].<br />
# Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged.<br />
# CRC32 checksums to detect errors and corruption of the header and partition table.<br />
<br />
=== Kernel Support ===<br />
<br />
{{ic|CONFIG_EFI_PARTITION}} option in the kernel config enables GPT support in the kernel (despite the name EFI PARTITION). This options must be built-in the kernel and not compiled as a loadable module. This option is required even if GPT disks are used only for data storage and not for booting. This option is enabled by default in Arch's {{Pkg|linux}} and {{Pkg|linux-lts}} kernels in [core] repo. In case of a custom kernel enable this option by doing {{ic|1=CONFIG_EFI_PARTITION=y}}.<br />
<br />
== Bootloader Support ==<br />
<br />
=== UEFI systems ===<br />
<br />
All UEFI Bootloaders support GPT disks since GPT is a part of UEFI Specification and thus mandatory for UEFI boot. See [[UEFI_Bootloaders]] for more info.<br />
<br />
=== BIOS systems ===<br />
<br />
{{Note|Some BIOS systems may not boot from GPT disks. See http://mjg59.dreamwidth.org/8035.html and http://rodsbooks.com/gdisk/bios.html for more info and possible workarounds.}}<br />
<br />
* [[GRUB]] requires a 1007 [[Wikipedia:KiB|KiB]] [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]] ({{ic|EF02}} type code in gdisk and bios_grub flag in GNU Parted) in BIOS systems to embed its {{ic|core.img}} file due to lack of post-MBR embed gap in GPT disks. Runtime GPT support in GRUB is provided by the {{ic|part_gpt}} module.<br />
<br />
* [[Syslinux]] requires the partition containing {{ic|/boot/syslinux/ldlinux.sys}} (irrespective whether {{ic|/boot}} is a separate partition or not) to be marked as "Legacy BIOS Bootable" GPT attribute (''legacy_boot'' flag in GNU Parted) to identify the partition containing the Syslinux boot files by its 440-byte MBR boot code {{ic|gptmbr.bin}}. See [[Syslinux#GUID Partition Table aka GPT]] for more information. It is equivalent to "boot" flag in MBR disks.<br />
<br />
* [[GRUB Legacy]], does not support GPT disks. Fedora's heavily patched GRUB Legacy fork {{AUR|grub-legacy-fedora-git}} contains GPT patches from Intel (tested in Fedora, not tested on Arch). This fork is no longer maintained since Fedora already uses GRUB as its default BIOS bootloader since version F16. Users are recommended to switch to GRUB or Syslinux instead.<br />
<br />
{{Note|Some Intel Desktop Board motherboards will only boot a GPT disk if the protective MBR partition has its Boot flag set. This can be done safely with fdisk/cfdisk without damaging the GPT (but have backups / double-check the integrity of the GPT afterwards anyway).}}<br />
<br />
* [[LILO]]'s GPT support has not been tested so it is unclear whether it has issues booting in GPT disks.<br />
<br />
== Partitioning Utilities ==<br />
=== GPT fdisk ===<br />
<br />
GPT fdisk is a set of text-mode utilities for editing GPT disks. It consists of gdisk, sgdisk and cgdisk which are equivalent to respective tools from util-linux fdisk (used for MBR disks). It is available in the [extra] repository as {{Pkg|gptfdisk}}.<br />
<br />
{{Note|The fdisk partitioning utilities from util-linux (i.e. fdisk, cfdisk and sfdisk) do not support GPT, and may damage the GPT header and partition table if used on a GPT disk.}}<br />
<br />
==== Convert from MBR to GPT ====<br />
<br />
One of the best features of gdisk (and sgdisk and cgdisk too) is its ability to convert MBR and BSD disklabels to GPT without data loss. Upon conversion, all the MBR primary partitions and the logical partitions become GPT partitions with the correct partition type GUIDs and Unique partition GUIDs created for each partition. <br />
<br />
Just open the MBR disk using gdisk and exit with "w" option to write the changes back to the disk (similar to fdisk) to convert the MBR disk to GPT. '''Watch out for any error and fix them before writing any change to disk''' because you may risk losing data. See http://www.rodsbooks.com/gdisk/mbr2gpt.html for more info. After conversion, the bootloaders will need to be reinstalled to configure them to boot from GPT.<br />
<br />
{{Note|Remember that GPT stores a secondary table at the end of disk. You must make sure that the last 1 [[Wikipedia:MiB|MiB]] of the disk is not used by any partition.}}<br />
<br />
{{Note|Keep in mind that if your Boot-Manager is GRUB, it needs a [[GRUB#GUID Partition Table (GPT) specific instructions|BIOS Boot Partition]]. If your MBR Partitioning Layout isn't too old, there is a good chance that the first partition starts at sector 2048 for alignment reasons. That means at the beginning will be 1007 [[Wikipedia:KiB|KiB]] of empty space where this bios-boot partition can be created. To do this, first do the mbr->gpt conversion with gdisk as described above. Afterwards, create a new partition with gdisk and manually specify its position to be sectors 34 - 2047, and set the {{ic|EF02}} partition type.}}<br />
<br />
=== GNU Parted ===<br />
<br />
In GNU Parted >=3.0, the {{ic|parted}} command-line utility does not support any filesystem related operation, and most of the FS related code has been removed from the libparted, leaving only minimal code required by external applications like gparted. The upstream recommends using the filesystem specific tools or one of the parted's GUI wrappers like gparted (which calls these external tools) for filesystem related operations.<br />
<br />
==See also==<br />
# Wikipedia's Page on [http://en.wikipedia.org/wiki/GUID_Partition_Table GPT] and [http://en.wikipedia.org/wiki/Master_boot_record MBR]<br />
# [http://rodsbooks.com/gdisk/ Homepage of Rod Smith's GPT fdisk tool] and its [http://sourceforge.net/projects/gptfdisk/ Sourceforge.net Project page - gptfdisk]<br />
# Rod Smith's page on [http://rodsbooks.com/gdisk/mbr2gpt.html Converting MBR to GPT] and [http://rodsbooks.com/gdisk/booting.html Booting OSes from GPT]<br />
# Rod Smith's page on the [http://www.rodsbooks.com/linux-fs-code/index.html New Partition Type GUID] for Linux data partitions<br />
# [http://sysresccd.org/Sysresccd-Partitioning-The-new-GPT-disk-layout System Rescue CD's page on GPT]<br />
# Wikipedia page on [http://en.wikipedia.org/wiki/BIOS_Boot_partition BIOS Boot Partition]<br />
# [http://www.ibm.com/developerworks/linux/library/l-gpt/index.html?ca=dgr-lnxw07GPT-Storagedth-lx&S_TACT=105AGY83&S_CMP=grlnxw07 Make the most of large drives with GPT and Linux - IBM Developer Works]<br />
# [http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx Microsoft's Windows and GPT FAQ]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=PKGBUILD_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=210907PKGBUILD (Ελληνικά)2012-06-22T09:10:14Z<p>Zapman: </p>
<hr />
<div>[[Category:About Arch (Ελληνικά)]]<br />
[[Category:Package development (Ελληνικά)]]<br />
[[cs:PKGBUILD]]<br />
[[en:PKGBUILD]]<br />
[[es:PKGBUILD]]<br />
[[fa:PKGBUILD]]<br />
[[fr:PKGBUILD]]<br />
[[pl:PKGBUILD]]<br />
[[pt:PKGBUILD]]<br />
[[sr:PKGBUILD]]<br />
[[zh-CN:PKGBUILD]]<br />
[[zh-TW:PKGBUILD]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Το παρόν άρθρο παρέχει μια επεξήγηση των μεταβλητών του PKGBUILD οί οποίες χρησιμοποιούνται κατά την [[Creating Packages|δημιουργία πακέτων]]. Ενα αρχείο PKGBUILD είναι μια δέσμη εντολών η οποία περιγράφει τον τρόπο με τον οποίο το λογισμικό μεταγλωττίζεται και "συσκευάζεται" σε πακέτο. Η συγγραφή συναρτήσεων εγκατάστασης και οι γενικές πληροφορίες σημιουργίας πακέτων καλύπτονται στο [[Creating Packages]] και σε άλλα [[:Category:Package development|package development]] άρθρα}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Package management overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Arch Packaging Standards}}<br />
{{Article summary wiki|Creating Packages}}<br />
{{Article summary wiki|Custom local repository}}<br />
{{Article summary wiki|pacman Tips}}<br />
{{Article summary heading|Resources}}<br />
{{Article summary link|PKGBUILD(5) Manual Page|https://www.archlinux.org/pacman/PKGBUILD.5.html}}<br />
{{Article summary end}}<br />
<br />
Το '''PKGBUILD''' είναι το αρχείο περιγραφής της διαδικασίας [[Creating Packages|δημιουργίας πακέτων]] του [[Arch Linux]].<br />
<br />
Τα πακέτα στο Arch Linux δημιουργούνται με το εργαλείο [[makepkg]] και οι πληροφορίες για τη δημιουργία τους βρίσκονται στο αρχείο PKGBUILD. Όταν εκτελείται η εντολή '''makepkg''', το πρόγραμμα ψάχνει για ένα αρχείο {{Ic|PKGBUILD}} στον τρέχον κατάλογο και ακολουθεί τις οδηγίες είτε για την μεταγλώττιση είτε για την ανάκτηση των αρχείων που απαιτούνται για τη δημιορυγία του πακέτου ({{ic|''pkgname''.pkg.tar.xz}}) το οποίο τελικά θα περιέχει όλα τα binary αρχεία καθώς και τις οδηγίες εγκατάστασης και μπορεί πλέον να εγκατασταθεί απευθείας μέσω του [[pacman]].<br />
<br />
== Μεταβλητές ==<br />
Οι παρακάτω μεταβλητές μπορούν να συμπληρωθούν στο αρχείο PKGBUILD.<br />
<br />
Είναι συνήθης πρακτική να ορίζει κανείς τις μεταβλητές με την ίδια σειρά με την οποία παρουσιάζονται εδώ. Ωστόσο, αυτό δεν είναι αναγκαστικό, εφόσον χρησιμοποιείται ορθή σύνταξη [[Bash]].<br />
<br />
=== pkgname ===<br />
Το όνομα του πακέτου. Πρέπει να περιέχει ''είτε αλφαριθμητικούς χαρακτήρες και/ή τους χαρακτήρες @ . _ + - (at, τελεία, underscore, συν, παύλα)''. Όλοι οι χαρακτήρες πρέπει να είναι ''πεζοί'' ενώ τα ονόματα ''δεν πρέπει να ξεκινάνε με παύλες''. Για λόγους συνοχής, το {{ic|pkgname}} πρέπει να αντιστοιχεί στο όνομα που χρησιμοποείται στο tarball του πηγαίου κώδικα του προγράμματος για το οποίο προορίζεται το PKGBUILD. Για παράδειγμα, αν ο πηγαίος κώδικας του προγράμματος διαμοιράζεται ως {{ic|foobar-2.5.tar.gz}} τότε η μεταβλητή {{ic|pkgname}} πρέπει να είναι {{Ic|foobar}}. Ο τρέχον ενεργός κατάλογος στον οποίο βρίσκεται το PKGBUILD πρέπει επίσης να ταιριάζει με το {{ic|pkgname}}.<br />
<br />
=== pkgver ===<br />
Η τρέχουσα έκδοση του πακέτου. Αυτή η τιμή πρέπει να είναι ίδια με την έκδοση την οποία δημοσίευσε ο προγραμματιστής του πακέτου. Μπορεί να περιέχει χαρακτήρες, αριθμούς και τελείες αλλά '''δεν''' πρέπει να περιέχει παύλες. Αν ο αρχικός προγραμματιστής χρησιμοποιεί παύλες στην έκδοση του πακέτου, τότε αυτές πρέπει να αντικατασταθούν με underscore. Για παράδειγμα, αν η έκδοση είναι ''0.99-10'' τότε πρέπει να αλλαχτεί σε ''0.99_10''. Αν η μεταβλητή {{ic|pkgver}} χρησιμοποείται μετέπειτα στο PKGBUILD τότε το underscore μπορεί εύκολα να αντικατασταθεί. Για παράδειγμα:<br />
source=($pkgname-${pkgver//_/-}.tar.gz)<br />
<br />
=== pkgrel ===<br />
Ο αριθμός έκδοσης του πακέτου, ο οποίος αφορά το Arch Linux. Αυτή η μεταβλητή επιτρέπει στους χρήστες να διαφοροποιούν συνεχόμενα builds της ίδιας έκδοσης του πακέτου. Όταν βγαίνει μια νέα έκδοση του πακέτου ή ένα πακέτο δημιουργείται πρώτη φορά τότε το {{ic|pkgrel}} '''πρέπει να είναι 1'''. Καθώς βγαίνουν διορθώσεις ή βελτιστοποιήσεις στο PKGBUILD το {{ic|pkgrel}} αυξάνει κατά ένα και το πακέτο επαναδημοσιεύεται.<br />
<br />
=== epoch ===<br />
Μια ακέραια τιμή, ειδική για το Arch Linux, η οποία υπαγορεύει ως προς ποιό 'χρονικό' πρέπει να συγκριθούν οι αριθμοί έκδοσης. Η τιμή αυτή επιτρέπει την παράκαμψη των συνήθων κανόνων σύγκρισης έκδοσης για πακέτα τα οποία έχουν ασυνεπή αρίθμηση έκδοσης, απαιτούν υποβάθμιση, αλλαγή πλαισίου αρίθμησης, κτλ. Εξ'ορισμού, τα πακέτα θεωρείται πως έχουν τιμή epoch ''0''.Μην χρησιμοποιείτε το πεδίο αυτό εκτός και αν γνωρίζετε τι κάνετε.<br />
<br />
=== pkgdesc ===<br />
Περιγραφή του πακέτου. Η έκταση της περιγραφής πρέπει να είναι το πολύ 80 χαρακτήρες και δεν πρέπει να περιλαμβάνει το όνομα του πακέτου με αυτοαναφορικό τρόπο. Για παράδειγμα, "Το Nedit είναι ένας επεξεργαστής κειμένου για το X11" θα έπρεπε να γραφεί ως "ένας επεξεργαστής κειμένου για το X11."<br />
<br />
{{Note|Μην ακολουθείτε αυτόν τον κανόνα αβίαστα όταν υποβάλετε πακέτα στο [[AUR]]. Εάν το όνομα του πακέτου διαφέρει για κάποιο λόγο, απο το όνομα της εφαρμογής, Η ενσωμάτωση του πλήρους ονόματος στην περιγραφή μπορεί να είναι ο μόνος τρόπος να διασφαλιστεί η εύρεση του πακέτου κατά την αναζήτηση.}}<br />
<br />
=== arch ===<br />
Μια σειρά αρχιτεκτονικών στις οποίες είναι γνωστό ότι το αρχείο {{ic|PKGBUILD}} μπορεί να λειτουργήσει. Προς το παρόν, πρέπει να περιέχει {{ic|i686}} ή/και {{ic|x86_64}}, {{ic|1=arch=('i686' 'x86_64')}}. Η τιμή {{ic|any}} μπορεί να χρησιμοποιηθεί για πακέτα ανεξαρτήτου αρχιτεκτονικής.<br />
<br />
Μπορείτε να προσπελάστε την αρχιτεκτονική του συστήματος που απευθύνεστε με την μεταβλητή {{ic|$CARCH}} κατά την διάρκεια της μεταγλώττισης, ακόμα και κατά τον ορισμό μεταβλητών. Δείτε επίσης {{bug|16352}}. Παράδειγμα:<br />
<br />
depends=(foobar)<br />
if test "$CARCH" == x86_64; then<br />
depends+=(lib32-glibc)<br />
fi<br />
<br />
=== url ===<br />
Η διεύθυνση URL της επίσημης ιστοσελίδας του λογισμικού του οποίου το πακέτο δημιουργείται.<br />
<br />
=== license ===<br />
Η άδεια υπό την οποία διανέμεται το λογισμικό. Το πακέτο {{pkg|licenses}} έχει δημιουργηθεί στην ομάδα πακέτων {{ic|[core]}} το οποίο συγκεντρώνει τις κοινά χρησιμοποιούμενες άδειες στον κατάλογο {{ic|/usr/share/licenses/common}}, π.χ. {{ic|/usr/share/licenses/common/GPL}}. Εάν ενα πακέτο έχει διανεμηθεί υπό μιας εκ των προαναφερθέντων αδειών, η τιμή πρέπει να είναι ίση με το όνομα του καταλόγου, π.χ. {{ic|1=license=('GPL')}}. Εαν η ανάλογη άδεια εμπεριέχεται στο επίσημο πακέτο {{Pkg|licenses}}, πρέπει να ακολουθεί η παρακάτω διαδικασία:<br />
<br />
# Το αρχείο(α) άδειας πρέπει να συμπεριληφθεί στο κατάλογο: {{ic|/usr/share/licenses/''pkgname''/}}, π.χ. {{ic|/usr/share/licenses/foobar/LICENSE}}.<br />
# Αν το πηγαίο αρχείο tarball ΔΕΝ περιέχει τις λεπτομέριες αδείας και η άδεια εμφανίζεται μόνο σε κάποια άλλη τοποθεσία, π.χ. μια ιστοσελίδα, τότε θα πρέπει να αντιγράψετε την άδεια σε ένα αρχείο και να το συμπεριλάβετε.<br />
# Προσθέστε το ενδεικτικό {{ic|custom}} στο πεδίο {{ic|license}}. Προαιρετικά, μπορείτε να αντικαταστήσετε το ενδεικτικό {{ic|custom}} με το {{ic|custom:όνομα αδείας}}. Όταν μια άδεια χρησιμοποιηθεί σε δύο ή περισσότερα πακέτα σε επίσημο repository (συμπεριλαμβανομένου του {{ic|[community]}}), προστίθεται στο πακέτο {{Pkg|licenses}}.<br />
* Οι άδειες [[Wikipedia:BSD License|BSD]], [[Wikipedia:MIT License|MIT]], [[Wikipedia:ZLIB license|zlib/png]] και [[Wikipedia:Python License|Python]] είναι ειδικές περιπτώσεις και δεν ήταν δυνατό να συμπεριληφθούν στο πακέτο {{pkg|licenses}}. για την διατήρηση της απλότητας του πεδίου {{ic|license}}, αντιμετωπίζονται σαν κοινή άδεια ({{ic|1=license=('BSD')}}, {{ic|1=license=('MIT')}}, {{ic|1=license=('ZLIB')}} και {{ic|1=license=('Python')}}) αλλά τεχνικά μιλώντας, κάθε μια είναι μια κοινή άδεια διότι κάθε μια ακολουθεί την δική της γραμμή πνευματικών δικαιωμάτων. Οποιαδήποτε πακέτα έχουν αδειοδοτηθεί υπό μια εκ των τεσσάρων αδειών θα πρέπει να έχουν την δική τους μοναδική άδεια αποθηκευμένη στον κατάλογο {{ic|/usr/share/licenses/''pkgname''}}. Κάποια πακέτα μπορεί να μην καλύπτονται απο μια και μόνο άδεια. Σε αυτές τις περιπτώσεις, μπορούν να γίνουν πολλαπλές καταχωρήσεις στο πεδίο license, π.χ. {{ic|1=license=('GPL' 'custom:όνομα αδείας')}}.<br />
* Επιπροσθέτως, η (L)GPL έχει πολλές εκδόσεις και παραλλαγές αυτών. Όσον αφορά το λογισμικό (L)GPL, η σύμβαση είναι:<br />
** (L)GPL - (L)GPLv2 ή οποιαδήποτε μεταγεννέστερη έκδοση<br />
** (L)GPL2 - (L)GPL2 μόνο<br />
** (L)GPL3 - (L)GPL3 ή οποιαδήποτε μεταγεννέστερη έκδοση<br />
* Εάν έπειτα από διερεύνηση του θέματος δεν μπορεί να προσδιοριστεί κάποια άδεια, το {{ic|PKGBUILD.proto}} προτείνει την χρήση του ενδεικτικού {{ic|unknown}}. Παρόλα αυτά, το upstream πρέπει να ειδοποιηθεί για τους όρους υπό τους οποίους το λογισμικό είναι ( και δεν είναι) διαθέσιμο.<br />
<br />
{{Tip|Μερικοί προγραμματιστές δεν παρέχουν ξεχωριστο αρχείο και περιγράφουν τους όρους διαμοιρασμού σε τμήμα του κοινώς χρησιμοποιούμενου αρχείου ReadMe.txt. Οι πληροφορίες αυτές μπορουν να εξαχθουν σε ξεχωριστό αρχείο κατά την διάρκεια της φάσης {{Ic|μεταγλώττισης}} με την χρήση άνάλογης εντολής με την: {{Ic|sed -n '/'''This software'''/,/''' thereof.'''/p' ReadMe.txt > LICENSE}}.}}<br />
<br />
=== groups ===<br />
Η ομάδα στη οποία ανήκει το πακέτο. Για παράδειγμα, όταν εγκαταστήσετε το πακέτο {{Pkg|kdebase}}, εγκαθίστανται όλα τα πακέτα τα οποία ανήκουν στην ομάδα {{Grp|kde}.<br />
<br />
=== depends ===<br />
Μια σειρά ονομάτων πακέτων τα ιποία πρέπει να εγκατασταθούν πριν να μπορέσει το εν λόγω λογισμικό να εκτελεστεί. Αν κάποιο λογισμικό απαιτεί την ύπαρξη μιας ελάχιστης έκδοσης κάποιας εξάρτησης, ο τελεστής {{ic|1=>=}} θα πρέπει να χρησιμοποιηθεί για να υποδείξει αυτήν την απαίτηση, π.χ. {{ic|1=depends=('foobar>=1.8.0')}}. δεν χρειάζεται να παραθέσετε τα πακέτα απο τα οποία εξαρτάται το λογισμικό σας εάν άλλα πακέτα από τα οποία εξαρτάται το λογισμικό σας έχουν ήδη ορίσει τα πακέτα αυτά ως εξαρτήσεις τους. Επί παραδείγματι, το πακέτο {{pkg|gtk2}} εξαρτάται από το πακέτο {{pkg|glib2}} και το πακέτο {{pkg|glibc}}. Όμως, το πακέτο {{pkg|glibc}} δεν χρειάζεται να παρατεθεί ως εξάρτηση για το πακέτο {{pkg|gtk2}} διότι είναι μια εκ των εξαρτήσεων του πακέτου {{pkg|glib2}}.<br />
<br />
===makedepends===<br />
Μια σειρά ονομάτων πακέτων τα οποία πρέπει να εγκατασταθούν για να είναι δυνατή η μεταγλώττιση του λογισμικού αλλά δεν είναι απαραίτητα για την χρήση του μετά την εγκατάσταση. Μπορείτε να ορίσετε την ελάχιστη έκδοση εξάρτησης των πακέτων με τον ίδιο τρόπο που περιγράφηκε στην παράγραφο {{ic|depends}}.<br />
<br />
{{Warning|Η ομάδα πακέτων {{Grp|base-devel}} θεωρείται εγκατεστημένη κατά την μεταγλώττιση με το makepkg . Τα μέλη της ομάδας πακέτων "base-devel" '''δεν θα πρέπει''' να συμπεριλαμβάνονται στο πεδίο {{ic|makedepends}}}}.<br />
<br />
=== checkdepends ===<br />
Μια σειρά πακέτων από τα οποία εξαρτάται το εν λόγω πακέτο ώστε να εκτελέσει την σειρά δοκιμών του τα οποία όμως δεν χρειάζονται κατά τον χρόνο εκτέλεσης. Τα πακέτα που παραθέτονται σε αυτή την λίστα ακολουθούν το ίδιο πρότυπο με το πεδίο depends. Αυτές οι εξαρτήσεις λαμβάνονται υπόψη μόνο όταν η συνάρτηση [[Creating Packages#The check() function|check()]] είναι παρούσα και πρόκειται να εκτελεστεί από το makepkg.<br />
<br />
=== optdepends ===<br />
Μια σειρά ονομάτων πακέτων τα οποία δεν χρειάζονται για την λειτουργικότητα του λογισμικού αλλά παρέχουν επιπρόσθετα χαρακτηριστικά. Μια σύντομη περιγραφή του τι παρέχει το κάθε πακέτο πρέπει επίσης να σημειωθεί. Ένα πεδίο {{ic|optdepends}} μπορεί να έχει την εξής μορφή:<br />
optdepends=('cups: printing support'<br />
'sane: scanners support'<br />
'libgphoto2: digital cameras support'<br />
'alsa-lib: sound support'<br />
'giflib: GIF images support'<br />
'libjpeg: JPEG images support'<br />
'libpng: PNG images support')<br />
<br />
=== provides ===<br />
Μια σειρά ονομάτων πακέτων (ή ενα εικονικό πακέτο όπως το {{Ic|cron}} η το {{Ic|sh}}) των οποίων τα χαρακτηριστικά παρέχει το τρέχον πακέτο. Πακέτα τα οποία παρέχουν τα ίδια πράγματα μπορούν να εγκατασταθούν ταυτόχρονα εκτός εάν συγκρούονται μεταξύ τους (δείτε παρακάτω). Εάν χρησιμοποιήσετε την μεταβλητή αυτή, θα πρέπει να προσθέσετε την έκδοση ({{ic|pkgver}} και ίσως την {{ic|pkgrel}}) την οποία θα παράσχει αυτό το πακέτο εαν οι εξαρτήσεις επηρρεαζονται από αυτό. Για παράδειγμα, Αν παρέχετε μια προσαρμοσμένη έκδοση του πακέτου ''qt'' με όνομα ''qt-foobar'' έκδοση 3.3.8 η οποία παρέχει το πακέτο ''qt'' τότε το πεδίο {{ic|provides}} θα πρέπει να είναι κάπως έτσι {{ic|1=provides=('qt=3.3.8')}}. Εαν χρησιμοποιούσαμε το {{ic|1=provides=('qt')}} θα αποτύγχαναν να ικανοποιηθούν εκείνες οι εξαρτήσεις οι οποίες απαιτούν μια συγκεκριμένη έκδοση του ''qt''. Μην προσθέσετε το πεδίο {{ic|pkgname}} στο πεδίο provides , διότι γίνεται αυτόματα.<br />
<br />
=== conflicts ===<br />
Μία σειρά ονομάτων πακέτων τα οποία μπορεί να δημιουργήσουν προβλήματα με το τρέχον πακέτο εάν εγκατασταθεί. Το Πακέτο με αυτό το όνομα και όλα τα πακέτα που {{Ic|παρέχει}} όπως εκονικά πακέτα με αυτό το όνομα, θα αφαιρεθούν. Μπορείτε να ορίσετε τις ιδιότητες έκδοσης των συγκρουόμενων πακέτων όπως και στο πεδίο {{ic|depends}}.<br />
<br />
=== replaces ===<br />
Μια σειρά παρωχημένων ονομάτων πακέτων τα οποία αντικαθίστανται από το τρέχον πακέτο, π.χ. {{ic|1=replaces=('ethereal')}} αντικαθίσταται με το πακέτο {{pkg|wireshark}}. μετά τον συγχρονισμό η εντολή {{ic|pacman -Sy}}, θα αντικαταστήσει άμεσα ένα εγκατεστημένο πακέτο μόλις εντοπίσει κάποιο άλλο πακέτο με την κατάλληλη ετικέτα {{ic|replaces}} στα αποθετήρια. Αν παρέχετε μια εναλλακτική έκδοση για ένα ήδη υπάρχον ένα άλλο πακέτο, Χρησιμοποιείστε την μεταβλητή {{ic|conflicts}} η οποία λαμβάνεται υπόψη μόνο κατά την εγκατάσταση του συγκρουόμενου πακέτου.<br />
<br />
=== backup ===<br />
Μια σειρά αρχείων τα οποία περιέχουν τροποποιήσεις των χρηστών του συστήματος και θα πρέπει να διατηρηθούν κατά την αναβάθμιση η την απομάκρυνση ενός πακέτου, αποσκοπεί κυρίως σε αρχεία ρυθμίσεων στον κατάλογο {{ic|/etc}}.<br />
<br />
Κατά την αναβάθμιση, η νέα έκδοση μπορεί να αποθηκευτεί ως {{ic|file.pacnew}} ώστε να αποφευχθεί η αντικατάσταση ενός αρχείου που υπάρχει ήδη και έχει τροποποιηθεί απο τον χρήστη. Ομοίως, όταν το πακέτο απομακρύνεται, το τροποποιημένο από το χρήστη αρχείο θα διατηρηθεί ως {{ic|file.pacsave}} εκτός και αν το πακέτο απομακρύνθηκε με την εντολή {{ic|pacman -Rn}}. <br />
<br />
Οι διαδρομές των αρχείων σε αυτό το πεδίο θα πρέπει να είναι σχετικές διαδρομές (π.χ. {{ic|etc/pacman.conf}}) και όχι απόλυτες (π.χ. {{ic|/etc/pacman.conf}}). Δείτε επίσης [[Pacnew and Pacsave Files]].<br />
<br />
=== options ===<br />
Αυτό το πεδίο σας επιτρέπει να παρακάμψετε ένα μέρος της προκαθορισμένης συμπεριφοράς του makepkg, ορισμένη στο αρχείο /etc/makepkg.conf. Για να ορίσετε μια επιλογή, προσθέστε το όνομα της επιλογής στο πεδίο. Για να αντιστρέψετε την προκαθορισμένη επιλογή , εισάγετε ένα ! στην αρχή της επιλογής. Οι ακόλουθες επιλογές μπορούν να προστεθούν στο πεδίο:<br />
<br />
* '''''strip''''' - Αφαιρεί σύμβολα από εκτελέσιμα αρχεία και βιβλιοθήκες. Αν χρησιμοποιείτε συχνά έναν εντοπιστή σφαλμάτων σε προγράμματα η βιβλιοθήκες, ίσως είναι σκόπιμο να απενεργοποιήσετε την επιλογή αυτή.<br />
* '''''docs''''' - Αποθηκεύει καταλόγους {{ic|/doc}}.<br />
* '''''libtool''''' - Διατηρεί τα αρχεία ''libtool'' ({{ic|.la}}) στα πακέτα.<br />
* '''''emptydirs''''' - Διατηρεί τους κενούς καταλόγους στα πακέτα.<br />
* '''''zipman''''' - Συμπιέζει τις σελίδες ''man'' και ''info'' με την εφαρμογή ''gzip''.<br />
* '''''ccache''''' - Επιτρέπει την χρήση {{ic|ccache}} κατά την δημιουργία του πακέτου. Χρησιμεύει περισσότερο στη αρνητική του μορφή {{ic|!ccache}} με συγκεκριμένα πακέτα που αντιμετωπίζουν προβλήματα κατα την δημιουργία τους με την επιλογή {{ic|ccache}} ενεργή.<br />
* '''''distcc''''' - Επιτρέπει την χρήση {{ic|distcc}} κατά την δημιουργία του πακέτου. Χρησιμεύει περισσότερο στη αρνητική του μορφή {{ic|!distcc}} με συγκεκριμένα πακέτα που αντιμετωπίζουν προβλήματα κατα την δημιουργία τους με την επιλογή {{ic|distcc}} ενεργή.<br />
* '''''buildflags''''' - Επιτρέπει την χρήση ορισμένων από τον χρήστη {{ic|buildflags}} (CFLAGS, CXXFLAGS, LDFLAGS) κατά την δημιουργία του πακέτου. Χρησιμεύει περισσότερο στη αρνητική του μορφή {{ic|!buildflags}} με συγκεκριμένα πακέτα που αντιμετωπίζουν προβλήματα κατα την δημιουργία τους με τροποποιημένες {{ic|buildflags}}.<br />
* '''''makeflags''''' - Επιτρέπει την χρήση ορισμένων από τον χρήστη {{ic|makeflags}} κατά την δημιουργία του πακέτου. Χρησιμεύει περισσότερο στη αρνητική του μορφή {{ic|!makeflags}} με συγκεκριμένα πακέτα που αντιμετωπίζουν προβλήματα κατα την δημιουργία τους με τροποποιημένες {{ic|makeflags}}.<br />
<br />
=== install ===<br />
Το όνομα της δέσμης εντολών {{ic|.install}} η οποία θα συμπεριληφθεί στο πακέτο. Το pacman έχει την δυνατότητα να αποθηκεύει και να εκτελεί μια δέσμη εντολών ανά πακέτο κατά την εγκατάσταση, την απομάκρυνση η την αναβάθμιση ενός πακέτου. Η δέσμη εντολών περιέχει τις ακόλουθες συναρτήσεις οι οποίες εκτελούνται σε διάφορες χρονικές στιγμές:<br />
<br />
* '''''pre_install''''' - Η δέσμη εντολών εκτελείται ακριβώς πρίν εξαχθούν τα αρχεία. Δέχεται ένα όρισμα: η νέα έκδοση του πακέτου.<br />
* '''''post_install''''' - Η δέσμη εντολών εκτελείται ακριβώς μετά την εξαγωγή των αρχείων. Δέχεται ένα όρισμα: η νέα έκδοση του πακέτου.<br />
* '''''pre_upgrade''''' - Η δέσμη εντολών εκτελείται πρίν εξαχθούν τα αρχεία. Δέχεται δύο ορίσματα κατά σειρά: η νέα έκδοση του πακέτου, η παλαιά έκδοση του πακέτου.<br />
* '''''post_upgrade''''' - Η δέσμη εντολών εκτελείται μετά την εξαγωγή των αρχείων. Δέχεται δύο ορίσματα κατά σειρά: η νέα έκδοση του πακέτου, η παλαιά έκδοση του πακέτου.<br />
* '''''pre_remove''''' - Η δέσμη εντολών εκτελείται ακριβώς πρίν απομακρυνθούν τα αρχεία. Δέχεται ένα όρισμα: η παλαιά έκδοση του πακέτου.<br />
* '''''post_remove''''' - Η δέσμη εντολών εκτελείται ακριβώς μετά την απομάκρυνση των αρχείων. Δέχεται ένα όρισμα: η παλαιά έκδοση του πακέτου.<br />
<br />
Κάθε συνάρτηση εκτελείται υπό αλλάγή ριζικού καταλόγου (chroot) μέσα στον κατάλογο εγκατάστασης του pacman. Δείτε [https://bbs.archlinux.org/viewtopic.php?pid=913891 το νήμα].<br />
<br />
{{Tip|Ένα πρότυπο αρχείο {{ic|.install}} παρέχεται στην διαδρομή {{ic|/usr/share/pacman/proto.install}}.}}<br />
<br />
=== changelog ===<br />
Το όνομα του αρχείου καταγραφής αλλάγών του πακέτου. Για να δείτε το αρχείο καταγραφής εγκατεστημένων πακέτων (δεδομένου οτι παρέχουν τέτοιο αρχείο):<br />
pacman -Qc ''pkgname''<br />
<br />
{{Tip|Ένα πρότυπο αρχείου κατάγραφής αλλαγών παρέχεται στην διαδρομή {{ic|/usr/share/pacman/ChangeLog.proto}}.}}<br />
<br />
=== source ===<br />
Μια σειρά αρχείων τα οποία χρειάζονται για την δημιουργία του πακέτου. Πρέπει να περιέχει την τοποθεσία των πηγαίων αρχείων του λογισμικού, τα οποία συνήθως βρίσκονται σε μια πλήρη διεύθυνση HTTP ή FTP. Οι μεταβλητές που ορίστηκαν προηγουμένως {{ic|pkgname}} και {{ic|pkgver}} μπορούν να χρησιμοποιηθούν εδώ (π.χ. {{ic|<nowiki>source=(http://example.com/$pkgname-$pkgver.tar.gz)</nowiki>}})<br />
<br />
{{Note|Αν πρέπει να παράσχετε αρχεία τα οποία δεν είναι άμεσα διαθέσιμα προς μεταφόρτωση, π.χ. ιδιόχειρες διορθώσεις, απλά τοποθετήστε τα στον ίδιο κατάλογο που βρίσκεται το αρχείο {{ic|PKGBUILD}} και προσθέστε το όνομα αρχείου στο πεδίο αυτό. Οποιεσδήποτε διαδρομές προστεθούν εδώ επιλύονται σε σχέση με τον κατάλογο που βρίσκεται το αρχείο {{ic|PKGBUILD}}. Πριν ξεκινήσει η πραγματική διαδικασία δημιουργίας του πακέτου, όλα τα αρχεία που αναφέρονται στο πεδίο αυτό θα μεταφορτωθούν ή θα ελεγχθεί η ύπαρξη τους, και το {{ic|makepkg}} δεν θα συνεχίσει εάν λείπουν.}}<br />
<br />
{{Tip|Μπορείτε να ορίσετε κάποιο διαφορετικό όνομα για το αρχείο που μεταφορτώθηκε - Αν το αρχείο που μεταφορτώθηκε για κάποιο λόγο έχει διαφορετικό όνομα όπως, το URL να έχει μια GET παράμετρο - ακολουθώντας την παρακάτω σύνταξη: {{Ic|''filename''::''fileuri''}}, για παράδειγμα {{Ic|$pkgname-$pkgver.zip::<nowiki>http://199.91.152.193/7pd0l2tpkidg/jg2e1cynwii/Warez_collection_16.4.exe</nowiki>}}}}<br />
<br />
=== noextract ===<br />
Μια σειρά αρχείων τα οποία παραθέτονται στο πεδίο {{ic|source}}, δεν πρέπει να εξαχθούν από την συμπιεσμένη τους μορφή με το {{ic|makepkg}}. Εφαρμόζεται κυρίως σε συγκεκριμένα αρχεία zip τα οποία δεν μπορεί να χειριστεί το {{ic|/usr/bin/bsdtar}} διότι το {{Pkg|libarchive}} αντιμετωπίζει όλα τα αρχεία ως ροές σε αντίθεση με το {{Pkg|unzip}} που ακολουθεί την λογική της τυχαίας προσπέλασης. Σε αυτές τις περιπτώσεις το {{ic|unzip}} πρέπει να παρατίθεται στο πεδίο {{ic|makedepends}} και η πρώτη γραμμή της συνάρτησης [[Creating Packages#The build() function|build()]] πρέπει να περιέχει:<br />
<br />
cd "$srcdir/$pkgname-$pkgver"<br />
unzip [source].zip<br />
<br />
Ας σημειωθεί ότι ενώ το πεδίο {{ic|source}} δέχεται URLs, το {{ic|noextract}} αντιπροσωπεύει '''απλά''' το κομμάτι του ονόματος αρχείου . Επί παραδείγματι, θα κάνατε κάτι σαν αυτό (απλοποιημένο από το αρχείο [https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/grub2&id=f054e33a0b5cbdfe7d81e91a8c4c807a9bfaa124 PKGBUILD] του grub2 ):<br />
<br />
source=(<nowiki>"http://ftp.archlinux.org/other/grub2/grub2_extras_lua_r20.tar.xz"</nowiki>)<br />
noextract=("grub2_extras_lua_r20.tar.xz")<br />
<br />
Για να μην εξάγετε ''τίποτα'', μπορείτε να κάνετε κάτι έξυπνο όπως (υιοθετημένο από το αρχείο [https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/firefox-i18n&id=cb10a40aeda9b444285d1ae6959c344110b4c936 firefox-i18n]):<br />
<br />
noextract=(${source[@]##*/})<br />
<br />
{{Note|Μια πιο συντηρητική υποκατάσταση Bash θα περιελάμβανε εισαγωγικά, η πιθανώς ένα βρόγχο ο οποίος καλεί την {{ic|basename}}. Εάν έχετε διαβάσει ως εδώ θα πρέπει να αντιλαμβάνεστε το νόημα.}}<br />
<br />
=== md5sums ===<br />
Μια σειρά από MD5 checksums των αρχείων που παραθέτονται στο πεδίο {{ic|source}}. Μόλις όλα τα αρχεία του πεδίου {{ic|source}} είναι διαθέσιμα, Ενα MD5 hash για κάθε αρχείο θα παραχθεί αυτόματα και θα συγκριθεί με τις τιμές αυτού του πεδίου μετην ίδια σειρά που εμφανίζονται στο πεδίο {{ic|source}}. Ενώ η σειρά των πηγαίων αρχείων δεν έχει σημασία, είναι σημαντικό να ακoλουθεί την σειρά αυτού του πεδίου μιας και το {{ic|makepkg}} δεν μπορεί να μαντέψει ποιό checksum ανήκει σε ποιό πηγαίο αρχείο. Μπορείτε γρήγορα και εύκολα να παράγετε τις τιμές του πεδίου αυτού εκτελώντας την εντολή {{ic|makepkg -g}} στον κατάλογο τον οποίο βρίσκεται το αρχείο {{ic|PKGBUILD}}. Ας σημειωθεί ότι ο αλγόριθμος MD5 έχει γνωστές αδυναμίες, οπότε θα πρέπει να σκεφτείτε την χρήση ενός ισχυρότερου εναλλακτικού.<br />
<br />
=== sha1sums ===<br />
Μια σειρά από SHA-1 160-bit checksums. Αποτελεί εναλλακτικό των {{ic|md5sums}} που περιγράφονται παραπάνω, όμως είναι επίσης γνωστό ότι έχει αδυναμίες, οπότε θα πρέπει να σκεφτείτε την χρήση ενός ισχυρότερου εναλλακτικού. Για να ενεργοποιήσετε την χρήση και την παραγωγή αυτών των checksums, σιγουρευτείτε ότι ρυθμίσατε την επιλογή {{ic|INTEGRITY_CHECK}} στο αρχείο {{ic|/etc/makepkg.conf}}. Δείτε τις σελίδες {{ic|man makepkg.conf}}.<br />
<br />
=== sha256sums, sha384sums, sha512sums ===<br />
Μια σειρά από SHA-2 checksums με ακολουθίες των 256, 384 και 512 bits αντίστοιχα. Αποτελούν εναλλακτικές των {{ic|md5sums}} που περιγράφηκαν παραπάνω και γενικά πιστεύεται ότι είναι ισχυρότερες. Για να ενεργοποιήσετε την χρήση και την παραγωγή αυτών των checksums, σιγουρευτείτε ότι ρυθμίσατε την επιλογή {{ic|INTEGRITY_CHECK}} στο αρχείο {{ic|/etc/makepkg.conf}}. Δείτε τις σελίδες man {{ic|man makepkg.conf}}.<br />
<br />
== Δείτε επίσης ==<br />
*[http://pastebin.com/MeXiLDV9 Υπόδειγμα αρχείου PKGBUILD]<br />
*[http://seberm.pastebin.com/gP0tBqvs Υπόδειγμα αρχείου .install]</div>Zapmanhttps://wiki.archlinux.org/index.php?title=PKGBUILD_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&diff=210906PKGBUILD (Ελληνικά)2012-06-22T09:05:45Z<p>Zapman: </p>
<hr />
<div>[[Category:About Arch (Ελληνικά)]]<br />
[[Category:Package development (Ελληνικά)]]<br />
[[cs:PKGBUILD]]<br />
[[en:PKGBUILD]]<br />
[[es:PKGBUILD]]<br />
[[fa:PKGBUILD]]<br />
[[fr:PKGBUILD]]<br />
[[pl:PKGBUILD]]<br />
[[pt:PKGBUILD]]<br />
[[sr:PKGBUILD]]<br />
[[zh-CN:PKGBUILD]]<br />
[[zh-TW:PKGBUILD]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text|Το παρόν άρθρο παρέχει μια επεξήγηση των μεταβλητών του PKGBUILD οί οποίες χρησιμοποιούνται κατά την [[Creating Packages|δημιουργία πακέτων]]. Ενα αρχείο PKGBUILD είναι μια δέσμη εντολών η οποία περιγράφει τον τρόπο με τον οποίο το λογισμικό μεταγλωττίζεται και "συσκευάζεται" σε πακέτο. Η συγγραφή συναρτήσεων εγκατάστασης και οι γενικές πληροφορίες σημιουργίας πακέτων καλύπτονται στο [[Creating Packages]] και σε άλλα [[:Category:Package development|package development]] άρθρα}}<br />
{{Article summary heading|Overview}}<br />
{{Article summary text|{{Package management overview}}}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Arch Packaging Standards}}<br />
{{Article summary wiki|Creating Packages}}<br />
{{Article summary wiki|Custom local repository}}<br />
{{Article summary wiki|pacman Tips}}<br />
{{Article summary heading|Resources}}<br />
{{Article summary link|PKGBUILD(5) Manual Page|https://www.archlinux.org/pacman/PKGBUILD.5.html}}<br />
{{Article summary end}}<br />
<br />
<br />
Το '''PKGBUILD''' είναι το αρχείο περιγραφής της διαδικασίας [[Creating Packages|δημιουργίας πακέτων]] του [[Arch Linux]].<br />
<br />
Τα πακέτα στο Arch Linux δημιουργούνται με το εργαλείο [[makepkg]] και οι πληροφορίες για τη δημιουργία τους βρίσκονται στο αρχείο PKGBUILD. Όταν εκτελείται η εντολή '''makepkg''', το πρόγραμμα ψάχνει για ένα αρχείο {{Ic|PKGBUILD}} στον τρέχον κατάλογο και ακολουθεί τις οδηγίες είτε για την μεταγλώττιση είτε για την ανάκτηση των αρχείων που απαιτούνται για τη δημιορυγία του πακέτου ({{ic|''pkgname''.pkg.tar.xz}}) το οποίο τελικά θα περιέχει όλα τα binary αρχεία καθώς και τις οδηγίες εγκατάστασης και μπορεί πλέον να εγκατασταθεί απευθείας μέσω του [[pacman]].<br />
<br />
== Μεταβλητές ==<br />
Οι παρακάτω μεταβλητές μπορούν να συμπληρωθούν στο αρχείο PKGBUILD.<br />
<br />
Είναι συνήθης πρακτική να ορίζει κανείς τις μεταβλητές με την ίδια σειρά με την οποία παρουσιάζονται εδώ. Ωστόσο, αυτό δεν είναι αναγκαστικό, εφόσον χρησιμοποιείται ορθή σύνταξη [[Bash]].<br />
<br />
=== pkgname ===<br />
Το όνομα του πακέτου. Πρέπει να περιέχει ''είτε αλφαριθμητικούς χαρακτήρες και/ή τους χαρακτήρες @ . _ + - (at, τελεία, underscore, συν, παύλα)''. Όλοι οι χαρακτήρες πρέπει να είναι ''πεζοί'' ενώ τα ονόματα ''δεν πρέπει να ξεκινάνε με παύλες''. Για λόγους συνοχής, το {{ic|pkgname}} πρέπει να αντιστοιχεί στο όνομα που χρησιμοποείται στο tarball του πηγαίου κώδικα του προγράμματος για το οποίο προορίζεται το PKGBUILD. Για παράδειγμα, αν ο πηγαίος κώδικας του προγράμματος διαμοιράζεται ως {{ic|foobar-2.5.tar.gz}} τότε η μεταβλητή {{ic|pkgname}} πρέπει να είναι {{Ic|foobar}}. Ο τρέχον ενεργός κατάλογος στον οποίο βρίσκεται το PKGBUILD πρέπει επίσης να ταιριάζει με το {{ic|pkgname}}.<br />
<br />
=== pkgver ===<br />
Η τρέχουσα έκδοση του πακέτου. Αυτή η τιμή πρέπει να είναι ίδια με την έκδοση την οποία δημοσίευσε ο προγραμματιστής του πακέτου. Μπορεί να περιέχει χαρακτήρες, αριθμούς και τελείες αλλά '''δεν''' πρέπει να περιέχει παύλες. Αν ο αρχικός προγραμματιστής χρησιμοποιεί παύλες στην έκδοση του πακέτου, τότε αυτές πρέπει να αντικατασταθούν με underscore. Για παράδειγμα, αν η έκδοση είναι ''0.99-10'' τότε πρέπει να αλλαχτεί σε ''0.99_10''. Αν η μεταβλητή {{ic|pkgver}} χρησιμοποείται μετέπειτα στο PKGBUILD τότε το underscore μπορεί εύκολα να αντικατασταθεί. Για παράδειγμα:<br />
source=($pkgname-${pkgver//_/-}.tar.gz)<br />
<br />
=== pkgrel ===<br />
Ο αριθμός έκδοσης του πακέτου, ο οποίος αφορά το Arch Linux. Αυτή η μεταβλητή επιτρέπει στους χρήστες να διαφοροποιούν συνεχόμενα builds της ίδιας έκδοσης του πακέτου. Όταν βγαίνει μια νέα έκδοση του πακέτου ή ένα πακέτο δημιουργείται πρώτη φορά τότε το {{ic|pkgrel}} '''πρέπει να είναι 1'''. Καθώς βγαίνουν διορθώσεις ή βελτιστοποιήσεις στο PKGBUILD το {{ic|pkgrel}} αυξάνει κατά ένα και το πακέτο επαναδημοσιεύεται.<br />
<br />
=== epoch ===<br />
Μια ακέραια τιμή, ειδική για το Arch Linux, η οποία υπαγορεύει ως προς ποιό 'χρονικό' πρέπει να συγκριθούν οι αριθμοί έκδοσης. Η τιμή αυτή επιτρέπει την παράκαμψη των συνήθων κανόνων σύγκρισης έκδοσης για πακέτα τα οποία έχουν ασυνεπή αρίθμηση έκδοσης, απαιτούν υποβάθμιση, αλλαγή πλαισίου αρίθμησης, κτλ. Εξ'ορισμού, τα πακέτα θεωρείται πως έχουν τιμή epoch ''0''.Μην χρησιμοποιείτε το πεδίο αυτό εκτός και αν γνωρίζετε τι κάνετε.<br />
<br />
=== pkgdesc ===<br />
Περιγραφή του πακέτου. Η έκταση της περιγραφής πρέπει να είναι το πολύ 80 χαρακτήρες και δεν πρέπει να περιλαμβάνει το όνομα του πακέτου με αυτοαναφορικό τρόπο. Για παράδειγμα, "Το Nedit είναι ένας επεξεργαστής κειμένου για το X11" θα έπρεπε να γραφεί ως "ένας επεξεργαστής κειμένου για το X11."<br />
<br />
{{Note|Μην ακολουθείτε αυτόν τον κανόνα αβίαστα όταν υποβάλετε πακέτα στο [[AUR]]. Εάν το όνομα του πακέτου διαφέρει για κάποιο λόγο, απο το όνομα της εφαρμογής, Η ενσωμάτωση του πλήρους ονόματος στην περιγραφή μπορεί να είναι ο μόνος τρόπος να διασφαλιστεί η εύρεση του πακέτου κατά την αναζήτηση.}}<br />
<br />
=== arch ===<br />
Μια σειρά αρχιτεκτονικών στις οποίες είναι γνωστό ότι το αρχείο {{ic|PKGBUILD}} μπορεί να λειτουργήσει. Προς το παρόν, πρέπει να περιέχει {{ic|i686}} ή/και {{ic|x86_64}}, {{ic|1=arch=('i686' 'x86_64')}}. Η τιμή {{ic|any}} μπορεί να χρησιμοποιηθεί για πακέτα ανεξαρτήτου αρχιτεκτονικής.<br />
<br />
Μπορείτε να προσπελάστε την αρχιτεκτονική του συστήματος που απευθύνεστε με την μεταβλητή {{ic|$CARCH}} κατά την διάρκεια της μεταγλώττισης, ακόμα και κατά τον ορισμό μεταβλητών. Δείτε επίσης {{bug|16352}}. Παράδειγμα:<br />
<br />
depends=(foobar)<br />
if test "$CARCH" == x86_64; then<br />
depends+=(lib32-glibc)<br />
fi<br />
<br />
=== url ===<br />
Η διεύθυνση URL της επίσημης ιστοσελίδας του λογισμικού του οποίου το πακέτο δημιουργείται.<br />
<br />
=== license ===<br />
Η άδεια υπό την οποία διανέμεται το λογισμικό. Το πακέτο {{pkg|licenses}} έχει δημιουργηθεί στην ομάδα πακέτων {{ic|[core]}} το οποίο συγκεντρώνει τις κοινά χρησιμοποιούμενες άδειες στον κατάλογο {{ic|/usr/share/licenses/common}}, π.χ. {{ic|/usr/share/licenses/common/GPL}}. Εάν ενα πακέτο έχει διανεμηθεί υπό μιας εκ των προαναφερθέντων αδειών, η τιμή πρέπει να είναι ίση με το όνομα του καταλόγου, π.χ. {{ic|1=license=('GPL')}}. Εαν η ανάλογη άδεια εμπεριέχεται στο επίσημο πακέτο {{Pkg|licenses}}, πρέπει να ακολουθεί η παρακάτω διαδικασία:<br />
<br />
# Το αρχείο(α) άδειας πρέπει να συμπεριληφθεί στο κατάλογο: {{ic|/usr/share/licenses/''pkgname''/}}, π.χ. {{ic|/usr/share/licenses/foobar/LICENSE}}.<br />
# Αν το πηγαίο αρχείο tarball ΔΕΝ περιέχει τις λεπτομέριες αδείας και η άδεια εμφανίζεται μόνο σε κάποια άλλη τοποθεσία, π.χ. μια ιστοσελίδα, τότε θα πρέπει να αντιγράψετε την άδεια σε ένα αρχείο και να το συμπεριλάβετε.<br />
# Προσθέστε το ενδεικτικό {{ic|custom}} στο πεδίο {{ic|license}}. Προαιρετικά, μπορείτε να αντικαταστήσετε το ενδεικτικό {{ic|custom}} με το {{ic|custom:όνομα αδείας}}. Όταν μια άδεια χρησιμοποιηθεί σε δύο ή περισσότερα πακέτα σε επίσημο repository (συμπεριλαμβανομένου του {{ic|[community]}}), προστίθεται στο πακέτο {{Pkg|licenses}}.<br />
* Οι άδειες [[Wikipedia:BSD License|BSD]], [[Wikipedia:MIT License|MIT]], [[Wikipedia:ZLIB license|zlib/png]] και [[Wikipedia:Python License|Python]] είναι ειδικές περιπτώσεις και δεν ήταν δυνατό να συμπεριληφθούν στο πακέτο {{pkg|licenses}}. για την διατήρηση της απλότητας του πεδίου {{ic|license}}, αντιμετωπίζονται σαν κοινή άδεια ({{ic|1=license=('BSD')}}, {{ic|1=license=('MIT')}}, {{ic|1=license=('ZLIB')}} και {{ic|1=license=('Python')}}) αλλά τεχνικά μιλώντας, κάθε μια είναι μια κοινή άδεια διότι κάθε μια ακολουθεί την δική της γραμμή πνευματικών δικαιωμάτων. Οποιαδήποτε πακέτα έχουν αδειοδοτηθεί υπό μια εκ των τεσσάρων αδειών θα πρέπει να έχουν την δική τους μοναδική άδεια αποθηκευμένη στον κατάλογο {{ic|/usr/share/licenses/''pkgname''}}. Κάποια πακέτα μπορεί να μην καλύπτονται απο μια και μόνο άδεια. Σε αυτές τις περιπτώσεις, μπορούν να γίνουν πολλαπλές καταχωρήσεις στο πεδίο license, π.χ. {{ic|1=license=('GPL' 'custom:όνομα αδείας')}}.<br />
* Επιπροσθέτως, η (L)GPL έχει πολλές εκδόσεις και παραλλαγές αυτών. Όσον αφορά το λογισμικό (L)GPL, η σύμβαση είναι:<br />
** (L)GPL - (L)GPLv2 ή οποιαδήποτε μεταγεννέστερη έκδοση<br />
** (L)GPL2 - (L)GPL2 μόνο<br />
** (L)GPL3 - (L)GPL3 ή οποιαδήποτε μεταγεννέστερη έκδοση<br />
* Εάν έπειτα από διερεύνηση του θέματος δεν μπορεί να προσδιοριστεί κάποια άδεια, το {{ic|PKGBUILD.proto}} προτείνει την χρήση του ενδεικτικού {{ic|unknown}}. Παρόλα αυτά, το upstream πρέπει να ειδοποιηθεί για τους όρους υπό τους οποίους το λογισμικό είναι ( και δεν είναι) διαθέσιμο.<br />
<br />
{{Tip|Μερικοί προγραμματιστές δεν παρέχουν ξεχωριστο αρχείο και περιγράφουν τους όρους διαμοιρασμού σε τμήμα του κοινώς χρησιμοποιούμενου αρχείου ReadMe.txt. Οι πληροφορίες αυτές μπορουν να εξαχθουν σε ξεχωριστό αρχείο κατά την διάρκεια της φάσης {{Ic|μεταγλώττισης}} με την χρήση άνάλογης εντολής με την: {{Ic|sed -n '/'''This software'''/,/''' thereof.'''/p' ReadMe.txt > LICENSE}}.}}<br />
<br />
=== groups ===<br />
Η ομάδα στη οποία ανήκει το πακέτο. Για παράδειγμα, όταν εγκαταστήσετε το πακέτο {{Pkg|kdebase}}, εγκαθίστανται όλα τα πακέτα τα οποία ανήκουν στην ομάδα {{Grp|kde}.<br />
<br />
=== depends ===<br />
Μια σειρά ονομάτων πακέτων τα ιποία πρέπει να εγκατασταθούν πριν να μπορέσει το εν λόγω λογισμικό να εκτελεστεί. Αν κάποιο λογισμικό απαιτεί την ύπαρξη μιας ελάχιστης έκδοσης κάποιας εξάρτησης, ο τελεστής {{ic|1=>=}} θα πρέπει να χρησιμοποιηθεί για να υποδείξει αυτήν την απαίτηση, π.χ. {{ic|1=depends=('foobar>=1.8.0')}}. δεν χρειάζεται να παραθέσετε τα πακέτα απο τα οποία εξαρτάται το λογισμικό σας εάν άλλα πακέτα από τα οποία εξαρτάται το λογισμικό σας έχουν ήδη ορίσει τα πακέτα αυτά ως εξαρτήσεις τους. Επί παραδείγματι, το πακέτο {{pkg|gtk2}} εξαρτάται από το πακέτο {{pkg|glib2}} και το πακέτο {{pkg|glibc}}. Όμως, το πακέτο {{pkg|glibc}} δεν χρειάζεται να παρατεθεί ως εξάρτηση για το πακέτο {{pkg|gtk2}} διότι είναι μια εκ των εξαρτήσεων του πακέτου {{pkg|glib2}}.<br />
<br />
===makedepends===<br />
Μια σειρά ονομάτων πακέτων τα οποία πρέπει να εγκατασταθούν για να είναι δυνατή η μεταγλώττιση του λογισμικού αλλά δεν είναι απαραίτητα για την χρήση του μετά την εγκατάσταση. Μπορείτε να ορίσετε την ελάχιστη έκδοση εξάρτησης των πακέτων με τον ίδιο τρόπο που περιγράφηκε στην παράγραφο {{ic|depends}}.<br />
<br />
{{Warning|Η ομάδα πακέτων {{Grp|base-devel}} θεωρείται εγκατεστημένη κατά την μεταγλώττιση με το makepkg . Τα μέλη της ομάδας πακέτων "base-devel" '''δεν θα πρέπει''' να συμπεριλαμβάνονται στο πεδίο {{ic|makedepends}}}}.<br />
<br />
=== checkdepends ===<br />
Μια σειρά πακέτων από τα οποία εξαρτάται το εν λόγω πακέτο ώστε να εκτελέσει την σειρά δοκιμών του τα οποία όμως δεν χρειάζονται κατά τον χρόνο εκτέλεσης. Τα πακέτα που παραθέτονται σε αυτή την λίστα ακολουθούν το ίδιο πρότυπο με το πεδίο depends. Αυτές οι εξαρτήσεις λαμβάνονται υπόψη μόνο όταν η συνάρτηση [[Creating Packages#The check() function|check()]] είναι παρούσα και πρόκειται να εκτελεστεί από το makepkg.<br />
<br />
=== optdepends ===<br />
Μια σειρά ονομάτων πακέτων τα οποία δεν χρειάζονται για την λειτουργικότητα του λογισμικού αλλά παρέχουν επιπρόσθετα χαρακτηριστικά. Μια σύντομη περιγραφή του τι παρέχει το κάθε πακέτο πρέπει επίσης να σημειωθεί. Ένα πεδίο {{ic|optdepends}} μπορεί να έχει την εξής μορφή:<br />
optdepends=('cups: printing support'<br />
'sane: scanners support'<br />
'libgphoto2: digital cameras support'<br />
'alsa-lib: sound support'<br />
'giflib: GIF images support'<br />
'libjpeg: JPEG images support'<br />
'libpng: PNG images support')<br />
<br />
=== provides ===<br />
Μια σειρά ονομάτων πακέτων (ή ενα εικονικό πακέτο όπως το {{Ic|cron}} η το {{Ic|sh}}) των οποίων τα χαρακτηριστικά παρέχει το τρέχον πακέτο. Πακέτα τα οποία παρέχουν τα ίδια πράγματα μπορούν να εγκατασταθούν ταυτόχρονα εκτός εάν συγκρούονται μεταξύ τους (δείτε παρακάτω). Εάν χρησιμοποιήσετε την μεταβλητή αυτή, θα πρέπει να προσθέσετε την έκδοση ({{ic|pkgver}} και ίσως την {{ic|pkgrel}}) την οποία θα παράσχει αυτό το πακέτο εαν οι εξαρτήσεις επηρρεαζονται από αυτό. Για παράδειγμα, Αν παρέχετε μια προσαρμοσμένη έκδοση του πακέτου ''qt'' με όνομα ''qt-foobar'' έκδοση 3.3.8 η οποία παρέχει το πακέτο ''qt'' τότε το πεδίο {{ic|provides}} θα πρέπει να είναι κάπως έτσι {{ic|1=provides=('qt=3.3.8')}}. Εαν χρησιμοποιούσαμε το {{ic|1=provides=('qt')}} θα αποτύγχαναν να ικανοποιηθούν εκείνες οι εξαρτήσεις οι οποίες απαιτούν μια συγκεκριμένη έκδοση του ''qt''. Μην προσθέσετε το πεδίο {{ic|pkgname}} στο πεδίο provides , διότι γίνεται αυτόματα.<br />
<br />
=== conflicts ===<br />
Μία σειρά ονομάτων πακέτων τα οποία μπορεί να δημιουργήσουν προβλήματα με το τρέχον πακέτο εάν εγκατασταθεί. Το Πακέτο με αυτό το όνομα και όλα τα πακέτα που {{Ic|παρέχει}} όπως εκονικά πακέτα με αυτό το όνομα, θα αφαιρεθούν. Μπορείτε να ορίσετε τις ιδιότητες έκδοσης των συγκρουόμενων πακέτων όπως και στο πεδίο {{ic|depends}}.<br />
<br />
=== replaces ===<br />
Μια σειρά παρωχημένων ονομάτων πακέτων τα οποία αντικαθίστανται από το τρέχον πακέτο, π.χ. {{ic|1=replaces=('ethereal')}} αντικαθίσταται με το πακέτο {{pkg|wireshark}}. μετά τον συγχρονισμό η εντολή {{ic|pacman -Sy}}, θα αντικαταστήσει άμεσα ένα εγκατεστημένο πακέτο μόλις εντοπίσει κάποιο άλλο πακέτο με την κατάλληλη ετικέτα {{ic|replaces}} στα αποθετήρια. Αν παρέχετε μια εναλλακτική έκδοση για ένα ήδη υπάρχον ένα άλλο πακέτο, Χρησιμοποιείστε την μεταβλητή {{ic|conflicts}} η οποία λαμβάνεται υπόψη μόνο κατά την εγκατάσταση του συγκρουόμενου πακέτου.<br />
<br />
=== backup ===<br />
Μια σειρά αρχείων τα οποία περιέχουν τροποποιήσεις των χρηστών του συστήματος και θα πρέπει να διατηρηθούν κατά την αναβάθμιση η την απομάκρυνση ενός πακέτου, αποσκοπεί κυρίως σε αρχεία ρυθμίσεων στον κατάλογο {{ic|/etc}}.<br />
<br />
Κατά την αναβάθμιση, η νέα έκδοση μπορεί να αποθηκευτεί ως {{ic|file.pacnew}} ώστε να αποφευχθεί η αντικατάσταση ενός αρχείου που υπάρχει ήδη και έχει τροποποιηθεί απο τον χρήστη. Ομοίως, όταν το πακέτο απομακρύνεται, το τροποποιημένο από το χρήστη αρχείο θα διατηρηθεί ως {{ic|file.pacsave}} εκτός και αν το πακέτο απομακρύνθηκε με την εντολή {{ic|pacman -Rn}}. <br />
<br />
Οι διαδρομές των αρχείων σε αυτό το πεδίο θα πρέπει να είναι σχετικές διαδρομές (π.χ. {{ic|etc/pacman.conf}}) και όχι απόλυτες (π.χ. {{ic|/etc/pacman.conf}}). Δείτε επίσης [[Pacnew and Pacsave Files]].<br />
<br />
=== options ===<br />
Αυτό το πεδίο σας επιτρέπει να παρακάμψετε ένα μέρος της προκαθορισμένης συμπεριφοράς του makepkg, ορισμένη στο αρχείο /etc/makepkg.conf. Για να ορίσετε μια επιλογή, προσθέστε το όνομα της επιλογής στο πεδίο. Για να αντιστρέψετε την προκαθορισμένη επιλογή , εισάγετε ένα ! στην αρχή της επιλογής. Οι ακόλουθες επιλογές μπορούν να προστεθούν στο πεδίο:<br />
<br />
* '''''strip''''' - Αφαιρεί σύμβολα από εκτελέσιμα αρχεία και βιβλιοθήκες. Αν χρησιμοποιείτε συχνά έναν εντοπιστή σφαλμάτων σε προγράμματα η βιβλιοθήκες, ίσως είναι σκόπιμο να απενεργοποιήσετε την επιλογή αυτή.<br />
* '''''docs''''' - Αποθηκεύει καταλόγους {{ic|/doc}}.<br />
* '''''libtool''''' - Διατηρεί τα αρχεία ''libtool'' ({{ic|.la}}) στα πακέτα.<br />
* '''''emptydirs''''' - Διατηρεί τους κενούς καταλόγους στα πακέτα.<br />
* '''''zipman''''' - Συμπιέζει τις σελίδες ''man'' και ''info'' με την εφαρμογή ''gzip''.<br />
* '''''ccache''''' - Επιτρέπει την χρήση {{ic|ccache}} κατά την δημιουργία του πακέτου. Χρησιμεύει περισσότερο στη αρνητική του μορφή {{ic|!ccache}} με συγκεκριμένα πακέτα που αντιμετωπίζουν προβλήματα κατα την δημιουργία τους με την επιλογή {{ic|ccache}} ενεργή.<br />
* '''''distcc''''' - Επιτρέπει την χρήση {{ic|distcc}} κατά την δημιουργία του πακέτου. Χρησιμεύει περισσότερο στη αρνητική του μορφή {{ic|!distcc}} με συγκεκριμένα πακέτα που αντιμετωπίζουν προβλήματα κατα την δημιουργία τους με την επιλογή {{ic|distcc}} ενεργή.<br />
* '''''buildflags''''' - Επιτρέπει την χρήση ορισμένων από τον χρήστη {{ic|buildflags}} (CFLAGS, CXXFLAGS, LDFLAGS) κατά την δημιουργία του πακέτου. Χρησιμεύει περισσότερο στη αρνητική του μορφή {{ic|!buildflags}} με συγκεκριμένα πακέτα που αντιμετωπίζουν προβλήματα κατα την δημιουργία τους με τροποποιημένες {{ic|buildflags}}.<br />
* '''''makeflags''''' - Επιτρέπει την χρήση ορισμένων από τον χρήστη {{ic|makeflags}} κατά την δημιουργία του πακέτου. Χρησιμεύει περισσότερο στη αρνητική του μορφή {{ic|!makeflags}} με συγκεκριμένα πακέτα που αντιμετωπίζουν προβλήματα κατα την δημιουργία τους με τροποποιημένες {{ic|makeflags}}.<br />
<br />
=== install ===<br />
Το όνομα της δέσμης εντολών {{ic|.install}} η οποία θα συμπεριληφθεί στο πακέτο. Το pacman έχει την δυνατότητα να αποθηκεύει και να εκτελεί μια δέσμη εντολών ανά πακέτο κατά την εγκατάσταση, την απομάκρυνση η την αναβάθμιση ενός πακέτου. Η δέσμη εντολών περιέχει τις ακόλουθες συναρτήσεις οι οποίες εκτελούνται σε διάφορες χρονικές στιγμές:<br />
<br />
* '''''pre_install''''' - Η δέσμη εντολών εκτελείται ακριβώς πρίν εξαχθούν τα αρχεία. Δέχεται ένα όρισμα: η νέα έκδοση του πακέτου.<br />
* '''''post_install''''' - Η δέσμη εντολών εκτελείται ακριβώς μετά την εξαγωγή των αρχείων. Δέχεται ένα όρισμα: η νέα έκδοση του πακέτου.<br />
* '''''pre_upgrade''''' - Η δέσμη εντολών εκτελείται πρίν εξαχθούν τα αρχεία. Δέχεται δύο ορίσματα κατά σειρά: η νέα έκδοση του πακέτου, η παλαιά έκδοση του πακέτου.<br />
* '''''post_upgrade''''' - Η δέσμη εντολών εκτελείται μετά την εξαγωγή των αρχείων. Δέχεται δύο ορίσματα κατά σειρά: η νέα έκδοση του πακέτου, η παλαιά έκδοση του πακέτου.<br />
* '''''pre_remove''''' - Η δέσμη εντολών εκτελείται ακριβώς πρίν απομακρυνθούν τα αρχεία. Δέχεται ένα όρισμα: η παλαιά έκδοση του πακέτου.<br />
* '''''post_remove''''' - Η δέσμη εντολών εκτελείται ακριβώς μετά την απομάκρυνση των αρχείων. Δέχεται ένα όρισμα: η παλαιά έκδοση του πακέτου.<br />
<br />
Κάθε συνάρτηση εκτελείται υπό αλλάγή ριζικού καταλόγου (chroot) μέσα στον κατάλογο εγκατάστασης του pacman. Δείτε [https://bbs.archlinux.org/viewtopic.php?pid=913891 το νήμα].<br />
<br />
{{Tip|Ένα πρότυπο αρχείο {{ic|.install}} παρέχεται στην διαδρομή {{ic|/usr/share/pacman/proto.install}}.}}<br />
<br />
=== changelog ===<br />
Το όνομα του αρχείου καταγραφής αλλάγών του πακέτου. Για να δείτε το αρχείο καταγραφής εγκατεστημένων πακέτων (δεδομένου οτι παρέχουν τέτοιο αρχείο):<br />
pacman -Qc ''pkgname''<br />
<br />
{{Tip|Ένα πρότυπο αρχείου κατάγραφής αλλαγών παρέχεται στην διαδρομή {{ic|/usr/share/pacman/ChangeLog.proto}}.}}<br />
<br />
=== source ===<br />
Μια σειρά αρχείων τα οποία χρειάζονται για την δημιουργία του πακέτου. Πρέπει να περιέχει την τοποθεσία των πηγαίων αρχείων του λογισμικού, τα οποία συνήθως βρίσκονται σε μια πλήρη διεύθυνση HTTP ή FTP. Οι μεταβλητές που ορίστηκαν προηγουμένως {{ic|pkgname}} και {{ic|pkgver}} μπορούν να χρησιμοποιηθούν εδώ (π.χ. {{ic|<nowiki>source=(http://example.com/$pkgname-$pkgver.tar.gz)</nowiki>}})<br />
<br />
{{Note|Αν πρέπει να παράσχετε αρχεία τα οποία δεν είναι άμεσα διαθέσιμα προς μεταφόρτωση, π.χ. ιδιόχειρες διορθώσεις, απλά τοποθετήστε τα στον ίδιο κατάλογο που βρίσκεται το αρχείο {{ic|PKGBUILD}} και προσθέστε το όνομα αρχείου στο πεδίο αυτό. Οποιεσδήποτε διαδρομές προστεθούν εδώ επιλύονται σε σχέση με τον κατάλογο που βρίσκεται το αρχείο {{ic|PKGBUILD}}. Πριν ξεκινήσει η πραγματική διαδικασία δημιουργίας του πακέτου, όλα τα αρχεία που αναφέρονται στο πεδίο αυτό θα μεταφορτωθούν ή θα ελεγχθεί η ύπαρξη τους, και το {{ic|makepkg}} δεν θα συνεχίσει εάν λείπουν.}}<br />
<br />
{{Tip|Μπορείτε να ορίσετε κάποιο διαφορετικό όνομα για το αρχείο που μεταφορτώθηκε - Αν το αρχείο που μεταφορτώθηκε για κάποιο λόγο έχει διαφορετικό όνομα όπως, το URL να έχει μια GET παράμετρο - ακολουθώντας την παρακάτω σύνταξη: {{Ic|''filename''::''fileuri''}}, για παράδειγμα {{Ic|$pkgname-$pkgver.zip::<nowiki>http://199.91.152.193/7pd0l2tpkidg/jg2e1cynwii/Warez_collection_16.4.exe</nowiki>}}}}<br />
<br />
=== noextract ===<br />
Μια σειρά αρχείων τα οποία παραθέτονται στο πεδίο {{ic|source}}, δεν πρέπει να εξαχθούν από την συμπιεσμένη τους μορφή με το {{ic|makepkg}}. Εφαρμόζεται κυρίως σε συγκεκριμένα αρχεία zip τα οποία δεν μπορεί να χειριστεί το {{ic|/usr/bin/bsdtar}} διότι το {{Pkg|libarchive}} αντιμετωπίζει όλα τα αρχεία ως ροές σε αντίθεση με το {{Pkg|unzip}} που ακολουθεί την λογική της τυχαίας προσπέλασης. Σε αυτές τις περιπτώσεις το {{ic|unzip}} πρέπει να παρατίθεται στο πεδίο {{ic|makedepends}} και η πρώτη γραμμή της συνάρτησης [[Creating Packages#The build() function|build()]] πρέπει να περιέχει:<br />
<br />
cd "$srcdir/$pkgname-$pkgver"<br />
unzip [source].zip<br />
<br />
Ας σημειωθεί ότι ενώ το πεδίο {{ic|source}} δέχεται URLs, το {{ic|noextract}} αντιπροσωπεύει '''απλά''' το κομμάτι του ονόματος αρχείου . Επί παραδείγματι, θα κάνατε κάτι σαν αυτό (απλοποιημένο από το αρχείο [https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/grub2&id=f054e33a0b5cbdfe7d81e91a8c4c807a9bfaa124 PKGBUILD] του grub2 ):<br />
<br />
source=(<nowiki>"http://ftp.archlinux.org/other/grub2/grub2_extras_lua_r20.tar.xz"</nowiki>)<br />
noextract=("grub2_extras_lua_r20.tar.xz")<br />
<br />
Για να μην εξάγετε ''τίποτα'', μπορείτε να κάνετε κάτι έξυπνο όπως (υιοθετημένο από το αρχείο [https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/firefox-i18n&id=cb10a40aeda9b444285d1ae6959c344110b4c936 firefox-i18n]):<br />
<br />
noextract=(${source[@]##*/})<br />
<br />
{{Note|Μια πιο συντηρητική υποκατάσταση Bash θα περιελάμβανε εισαγωγικά, η πιθανώς ένα βρόγχο ο οποίος καλεί την {{ic|basename}}. Εάν έχετε διαβάσει ως εδώ θα πρέπει να αντιλαμβάνεστε το νόημα.}}<br />
<br />
=== md5sums ===<br />
Μια σειρά από MD5 checksums των αρχείων που παραθέτονται στο πεδίο {{ic|source}}. Μόλις όλα τα αρχεία του πεδίου {{ic|source}} είναι διαθέσιμα, Ενα MD5 hash για κάθε αρχείο θα παραχθεί αυτόματα και θα συγκριθεί με τις τιμές αυτού του πεδίου μετην ίδια σειρά που εμφανίζονται στο πεδίο {{ic|source}}. Ενώ η σειρά των πηγαίων αρχείων δεν έχει σημασία, είναι σημαντικό να ακoλουθεί την σειρά αυτού του πεδίου μιας και το {{ic|makepkg}} δεν μπορεί να μαντέψει ποιό checksum ανήκει σε ποιό πηγαίο αρχείο. Μπορείτε γρήγορα και εύκολα να παράγετε τις τιμές του πεδίου αυτού εκτελώντας την εντολή {{ic|makepkg -g}} στον κατάλογο τον οποίο βρίσκεται το αρχείο {{ic|PKGBUILD}}. Ας σημειωθεί ότι ο αλγόριθμος MD5 έχει γνωστές αδυναμίες, οπότε θα πρέπει να σκεφτείτε την χρήση ενός ισχυρότερου εναλλακτικού.<br />
<br />
=== sha1sums ===<br />
Μια σειρά από SHA-1 160-bit checksums. Αποτελεί εναλλακτικό των {{ic|md5sums}} που περιγράφονται παραπάνω, όμως είναι επίσης γνωστό ότι έχει αδυναμίες, οπότε θα πρέπει να σκεφτείτε την χρήση ενός ισχυρότερου εναλλακτικού. Για να ενεργοποιήσετε την χρήση και την παραγωγή αυτών των checksums, σιγουρευτείτε ότι ρυθμίσατε την επιλογή {{ic|INTEGRITY_CHECK}} στο αρχείο {{ic|/etc/makepkg.conf}}. Δείτε τις σελίδες {{ic|man makepkg.conf}}.<br />
<br />
=== sha256sums, sha384sums, sha512sums ===<br />
Μια σειρά από SHA-2 checksums με ακολουθίες των 256, 384 και 512 bits αντίστοιχα. Αποτελούν εναλλακτικές των {{ic|md5sums}} που περιγράφηκαν παραπάνω και γενικά πιστεύεται ότι είναι ισχυρότερες. Για να ενεργοποιήσετε την χρήση και την παραγωγή αυτών των checksums, σιγουρευτείτε ότι ρυθμίσατε την επιλογή {{ic|INTEGRITY_CHECK}} στο αρχείο {{ic|/etc/makepkg.conf}}. Δείτε τις σελίδες man {{ic|man makepkg.conf}}.<br />
<br />
== Δείτε επίσης ==<br />
*[http://pastebin.com/MeXiLDV9 Υπόδειγμα αρχείου PKGBUILD]<br />
*[http://seberm.pastebin.com/gP0tBqvs Υπόδειγμα αρχείου .install]</div>Zapman