gdisk

From WebHostingNeeds.com
Jump to: navigation, search

gdisk

An fdisk-like partitioning tool for GPT disks

http://www.rodsbooks.com/gdisk/

It is like fdisk, but parted looks easier to use. Initially when i need to partition a disk, i found parted difficult to use, so i went with fdisk, after using parted for some time, i like it better :)


Install gdisk on CentOS 6.4

Install epel repo, then run.

yum install gdisk
[[email protected] ~]# yum info gdisk
Available Packages
Name        : gdisk
Arch        : x86_64
Version     : 0.8.10
Release     : 1.el6
Size        : 167 k
Repo        : epel
Summary     : An fdisk-like partitioning tool for GPT disks
URL         : http://www.rodsbooks.com/gdisk/
License     : GPLv2
Description : An fdisk-like partitioning tool for GPT disks. GPT fdisk features a
            : command-line interface, fairly direct manipulation of partition table
            : structures, recovery tools to help you deal with corrupt partition
            : tables, and the ability to convert MBR disks to GPT format.

[[email protected] ~]#


Print Partition Table

[[email protected] ~]# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.10

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

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 6291456 sectors, 3.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9BFC435F-6602-4EAF-ADBD-7BBD158A9656
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 6291422
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1953791   953.0 MiB   0700  boby
   2         1953792         6289407   2.1 GiB     0700  boby2
[[email protected] ~]#





parted

fdisk

hard disk