Différences
Ci-dessous, les différences entre deux révisions de la page.
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 : | ||
+ | < | ||
+ | sudo gdisk -l /dev/sdf | ||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Résultat : | ||
+ | |||
+ | < | ||
+ | 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/ | ||
+ | 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 | ||
+ | |||
+ | </ | ||
+ | |||
+ | Pour créer une nouvelle partition, exécutez : | ||
+ | < | ||
+ | sudo gdisk /dev/sdb | ||
+ | </ | ||
+ | |||
+ | puis en interaction | ||
+ | |||
+ | < | ||
+ | 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, | ||
+ | Last sector (256-976754640, | ||
+ | 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. | ||
+ | </ | ||
+ | |||
+ | {{ : | ||