{"uuid":"a8c80d90-6cd6-47a2-ae09-9c182f13b626","slug":"linux-gdisk","title":"gdisk, partitionner un disque GPT","author":"cedric@abonnel.fr","published":true,"published_at":"2023-02-10 22:48:30","created_at":"2023-02-10 22:48:30","updated_at":"2023-02-10 22:48:30","revisions":[],"cover":"","files_meta":[],"external_links":[],"seo_title":"","seo_description":"","og_image":"","category":"Informatique","content":"# gdisk, partitionner un disque GPT\n\nPour afficher un aperçu des partitions d'un disque, exécutez :\n```\nsudo gdisk -l /dev/sdf\n```\n\n![](linux_gpt_l.png)\n\nRésultat :\n\n```\nGPT fdisk (gdisk) version 1.0.3\n\nPartition table scan:\n MBR: protective\n BSD: not present\n APM: not present\n GPT: present\n\nFound valid GPT with protective MBR; using GPT.\nDisk /dev/sdf: 976754646 sectors, 3.6 TiB\nModel: EZRZ-00GXCB0 \nSector size (logical/physical): 4096/4096 bytes\nDisk identifier (GUID): 8C495FA3-6062-4349-BF8B-F0EF55BD1A58\nPartition table holds up to 128 entries\nMain partition table begins at sector 2 and ends at sector 5\nFirst usable sector is 6, last usable sector is 976754640\nPartitions will be aligned on 256-sector boundaries\nTotal free space is 976754635 sectors (3.6 TiB)\n\nNumber Start (sector) End (sector) Size Code Name\n```\n\nPour créer une nouvelle partition, exécutez :\n```\nsudo gdisk /dev/sdb\n```\n\npuis en interaction\n\n```\nGPT fdisk (gdisk) version 1.0.3\n\nPartition table scan:\n MBR: protective\n BSD: not present\n APM: not present\n GPT: present\n\nFound valid GPT with protective MBR; using GPT.\n\nCommand (? for help): n\nPartition number (1-128, default 1): \nFirst sector (6-976754640, default = 256) or {+-}size{KMGTP}: \nLast sector (256-976754640, default = 976754640) or {+-}size{KMGTP}: \nCurrent type is 'Linux filesystem'\nHex code or GUID (L to show codes, Enter = 8300): \nChanged type of partition to 'Linux filesystem'\n\nCommand (? for help): w\n\nFinal checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING\nPARTITIONS!!\n\nDo you want to proceed? (Y/N): Y\nOK; writing new GUID partition table (GPT) to /dev/sdf.\nThe operation has completed successfully.\n```\n\n![](linux_gdisk_n.png)","featured":false,"tags":[]}