Linux Articles Linux Training

How To Create Partition More Than 2 TB In Linux

How To Create Partition More Than 2 TB In Linux

It is well known that Linux will not create more than 2 TB using fdisk commands and it is okay for the single local users , but come to the large picture server side and expansion storage it is not possible to created 5TB 10 TB using fdisk.

To get the next level of enterprise level of storage GNU parted commands will supports EFI/GPT partition tables.GPT is the standard partition table format for the physical disk. Some of the vendors like IBM and HP giving EFI(Extensible Firmware Interface) which used GPT where MBR uses in BIOS.

GPT Kernal support on 32 bit and 64 bit systems.GPT must be update in the kernal otherwise it will fail to comeup the mount point after the reboot happen.Debian and Ubuntu are not default GPT configure but for Redhat/Centos are defualt enabled in Kernal.

Check the current disk in the system,

#fdisk -l

Findout which one is in raw state and we have to do the partition and mount it in local.


Disk /dev/sdb: 4798.6 GB, 4798552211456 bytes
255 heads, 63 sectors/track, 583390 cylinders, total 9372172288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  4294967295  2147483647+  ee  GPT

Start Creating Partition From Parted:

# parted /dev/sdb


parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.

Created new label for /dev/sdb

(parted) mklabel label01


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

Set The default unit in TB,

(parted) unit TB

Create the partition As your specification,

(parted) mkpart primary 0.00TB 5.00TB

Print the updated Partition Table,

(parted) print


Model: ATA ST33000651AS (scsi)
Disk /dev/sdb: 5.00TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
1      0.00TB  5.00TB  5.00TB  ext4         primary

Now Quit from the Parted terminal,

 (parted) quit

Format the Newly created partition with Ext4 file system,

 # mkfs.ext4 /dev/sdb1

Mount the format partition in local path,

 #mount /dev/sdb1 /opt

Update the perminent mount point in the /etc/fstab

Tags:Linux,partition,Centos,local storage,ext3,ext4,file system,tech news,mytecharticle

About the author


Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.