Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
informatique:applications:linux_gdisk [2023/02/10 22:48] – supprimée - modification externe (Unknown date) informatique:applications:linux_gdisk [2023/02/10 22:48] (Version actuelle) – ↷ Page déplacée de informatique:linux:applications:linux_gdisk à informatique:applications:linux_gdisk Cédric ABONNEL
Ligne 1: Ligne 1:
 +====== gdisk, partitionner un disque GPT ======
 +
 +Pour afficher un aperçu des partitions d'un disque, exécutez :
 +<code>
 +sudo gdisk -l /dev/sdf
 +</code>
 +
 +{{ :informatique:linux_gpt_l.png?600 |}}
 +
 +Résultat :
 +
 +<code>
 +GPT fdisk (gdisk) version 1.0.3
 +
 +Partition table scan:
 +  MBR: protective
 +  BSD: not present
 +  APM: not present
 +  GPT: present
 +
 +Found valid GPT with protective MBR; using GPT.
 +Disk /dev/sdf: 976754646 sectors, 3.6 TiB
 +Model: EZRZ-00GXCB0    
 +Sector size (logical/physical): 4096/4096 bytes
 +Disk identifier (GUID): 8C495FA3-6062-4349-BF8B-F0EF55BD1A58
 +Partition table holds up to 128 entries
 +Main partition table begins at sector 2 and ends at sector 5
 +First usable sector is 6, last usable sector is 976754640
 +Partitions will be aligned on 256-sector boundaries
 +Total free space is 976754635 sectors (3.6 TiB)
 +
 +Number  Start (sector)    End (sector)  Size       Code  Name
 +
 +</code>
 +
 +Pour créer une nouvelle partition, exécutez :
 +<code>
 +sudo gdisk /dev/sdb
 +</code>
 +
 +puis en interaction
 +
 +<code>
 +GPT fdisk (gdisk) version 1.0.3
 +
 +Partition table scan:
 +  MBR: protective
 +  BSD: not present
 +  APM: not present
 +  GPT: present
 +
 +Found valid GPT with protective MBR; using GPT.
 +
 +Command (? for help): n
 +Partition number (1-128, default 1): 
 +First sector (6-976754640, default = 256) or {+-}size{KMGTP}: 
 +Last sector (256-976754640, default = 976754640) or {+-}size{KMGTP}: 
 +Current type is 'Linux filesystem'
 +Hex code or GUID (L to show codes, Enter = 8300): 
 +Changed type of partition to 'Linux filesystem'
 +
 +Command (? for help): w
 +
 +Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
 +PARTITIONS!!
 +
 +Do you want to proceed? (Y/N): Y
 +OK; writing new GUID partition table (GPT) to /dev/sdf.
 +The operation has completed successfully.
 +</code>
 +
 +{{ :informatique:linux_gdisk_n.png?600 |}}