Hard Disk Partitions include mbr and gpt (gpt is an extension of MBR partition) to support larger disk partitions.
The GPT format is required for Disk Partitions larger than 2 TB.
In windows, diskpart supports disk partition conversion. You can use diskpart/s convert gpt.
In linux, The fdisk command is used for partitioning, and only disks smaller than 2 TB can be used. For disks larger than 2 TB, use
Parted partition. Use of parted partitions
Align-check type n check partition N for TYPE (min | opt) alignment
Check NUMBER do a simple check on the file system
Cp [FROM-DEVICE] FROM-number to-NUMBER copy file system to another partition
Help [COMMAND] print general help, or help on COMMAND
Mklabel, mktable LABEL-TYPE create a new disklabel (partition table)
Mkfs NUMBER FS-TYPE make a FS-TYPE file system on partition NUMBER
Mkpart PART-TYPE [FS-TYPE] start end make a partition
Mkpartfs PART-TYPE FS-TYPE start end make a partition with a file system
Move number start end move partition NUMBER
Name number name partition NUMBER as name
Print [devices | free | list, all | NUMBER] display the partition table, available devices, free space, all found partitions, or a participant partition
Quit exit program
Rescue start end rescue a lost partition near START and END
Resize number start end resize partition NUMBER and its file system
Rm NUMBER delete partition NUMBER
Select DEVICE choose the device to edit
Set number flag state change the FLAG on partition NUMBER
Toggle [NUMBER [FLAG] toggle the state of FLAG on partition NUMBER
Unit UNIT set the default unit to UNIT
Version display the version number and copyright information of GNU Parted
The select command selects Block devices.
Mklabel is used to set the disk partition table Type MBR or GPT)
Mkpart is created
Generally, when a block device is smaller than 16 TB, mkpartfs can be used to create a partition and a file system can be created. However, for Block devices larger than 16 TB. You cannot directly create a file system.
Too big to be expressed in 32 bits using a blocksize of 4096.
Solution:
Add/etc/mke2fs. conf
[Fs_types] ext4 = {
Features = has_journal, extent, huge_file, flex_bg, uninit_bg, dir_nlink, extra_isize
Auto_64-bit_support = 1 # Here add
Inode_size = 256
}
Then download e2fsprogs
Git clone git: // git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
After compilation and installation, run the following command to create a file system on the block device.
./Mke2fs-O 64bit, has_journal, extents, huge_file, flex_bg, uninit_bg, dir_nlink, extra_isize-I 4194304 Block devices
Fsck. ext4-f/dev/sdx