How to create a partition size larger than 2TB using parted

Linux has a 2TB limit on the partition size.

Find the drive you want to partition

# fdisk -l

To create a partition start GNU parted as follows:

# parted /dev/sdx

Output:

GNU Parted 1.8.1
Using /dev/sdx
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)

Creates a new GPT disklabel i.e. partition table:

mklabel gpt

You can also find the max partition size by using 'fdisk -l'

To Create 5TB partition size:

mkpart primary 0 5000G

Quit and save the changes:

quit

Use mkfs to format file system:

# mkfs.ext3 /dev/sdx1

这个回答有用吗?

 打印这篇文章

继续阅读

How to check drive space

...

重设MySQL root密码

如果忘记了MySQL的root密码,可以用以下方法重新设置: 1. KILL掉系统里的MySQL进程; killall -TERM mysqld 2....

How to install apache on CentOS

Generally for our dedicated servers that come with CentOS the web server, apache 2 is already...

How to change root password

To change the root password you must be logged in as root. Then enter "passwd root" It will...

How to mount ramdisk

创建一个8G的内存文件系统到/var/ram mount -t ramfs -o size=8192m ramfs /var/ram...

Powered by WHMCompleteSolution