Commandes Linux : gdisk

GDISK

Installé avec le paquet gdisk
Voir aussi : fdisk, cfdisk, gparted et parted

 
La commande gdisk (GPT fdisk) est un outil de manipulation interactif de tables de partition GPT (GUID partition table).

 

Afficher la version de la commande gdisk

gdisk --version --

ou

apt-cache policy gdisk

 

Afficher les tables de partitions des périphériques indiqués puis quitter

gdisk -l device

ex :

# gdisk -l /dev/loop0
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/loop0: 204800 sectors, 100.0 MiB
Logical sector size: 512 bytes
Disk identifier (GUID): D4D7CECF-8CC2-4619-93E8-F7D47BC3A230
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 204766
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          204766   99.0 MiB    8300  Linux filesystem

 

Afficher et manipuler des tables de partition GPT (GUID partition table) intéractivement

gdisk device
b	back up GPT data to a file
c	change a partition's name
d	delete a partition
i	show detailed information on a partition
l	list known partition types
n	add a new partition
o	create a new empty GUID partition table (GPT)
p	print the partition table
q	quit without saving changes
r	recovery and transformation options (experts only)
s	sort partitions
t	change a partition's type code
v	verify disk
w	write table to disk and exit
x	extra functionality (experts only)
?	print this menu
Fermer le menu
%d blogueurs aiment cette page :