How to create partition on 4 TB hard disk on Linux

June 13, 2015 | By | Reply More

I have 2 disks (@2TB) connected to my DELL Server using RAID 1 configuration. So, it has 4 TB in size. I want to create a partition with 4 TB in size. Using fdisk command, it only supports up to 2 TB disk size. So, I can’t use fdisk to partition my 4TB disk. Fortunately there is a simple way to solve this. We need a tool called Parted.

Steps to create partition on 4TB hard disk under Linux

I am using Debian 8 on this tutorial. I want to create a partition with more than 4 TB. Its 4.4 TB actually. All we need is the Parted package to be installed first. On Debian, you may install Parted using this command

su
apt-get install parted

Now we can start using it to partition the hard drive. In this example, my hard drive is recognized as /dev/sdb

parted /dev/sdb

Output:

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

Create a new GPT disklabel

(parted) mklabel gpt

Set unit to TB

(parted) unit TB

Create 4 TB partition

(parted) mkpart primary 0.00TB 4.40TB

Print the partition

(parted) print

Output:

(parted) print
Model: DELL PERC 5/i (scsi)
Disk /dev/sdb: 4397GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Now quit parted

(parted) quit

Next we can start format the new partition. Enjoy

Tags: , , , ,

Category: Server

Leave a Reply