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/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

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, 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.

  • informatique/linux_gdisk.txt
  • Dernière modification: 2018/10/28 19:33
  • par Cedric ABONNEL