Home » Centos/RHEL » Creating a partition size larger than 2TB using GPARTED.

Creating a partition size larger than 2TB using GPARTED.

Normally if partitions are created using fdisk, it uses msdos partition table which does not allows size of a single partition to be greater than 2.0TB. To support partitions greater than 2.0TB gpt partition tables should be used.
So Creating a partition size larger than 2TB using gparted use the following steps.

First of all find Out Current disk size.

#fdisk –l /dev/sdb
WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdb’! The util fdisk doesn’t support GPT. Use GNU Parted.
Disk /dev/sdb: 4000.8 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Create 4TB Linux partition size

#parted /dev/sdb

Creates a new GPT disklabel partition table:

(parted)mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes


Then set the default unit to TB

(parted) unit TB

To create a 4TB partition size

(parted) mkpart primary 0 0


(parted)mkpart primary 0.00TB 4.00TB

Print current partition

(parted) print
Disk /dev/sdb: 4.00TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 0.00TB 4.00TB 4.00TB ext4 primary
(parted) quit

Information: You may need to update /etc/fstab.

#mkfs.ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=1 blocks, Stripe width=0 blocks
244195328 inodes, 976754176 blocks
48837708 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
29809 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override

Execute the following commands to mount /dev/sdb1

#mkdir /disk2
#mount -t ext4 /dev/sdb1 /disk2
#df –h

Filesystem Size Used Avail Use% Mounted on
50G 835M 46G 2% /
tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 485M 32M 429M 7% /boot
3.6T 197M 3.4T 1% /home
/dev/sdb1 3.6T 196M 3.4T 1% /disk2

That’s it.


I am founder and webmaster of www.linuxpcfix.com and working as a Sr. Linux Administrator (Expertise on Linux/Unix & Cloud Server) and have been in the industry from last 7 years.

Leave a Reply

Your email address will not be published. Required fields are marked *


Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud