Home >Operation and Maintenance >Linux Operation and Maintenance >Ubuntu on Linux mounts a 3T hard disk or a disk larger than 2T

Ubuntu on Linux mounts a 3T hard disk or a disk larger than 2T

小云云
小云云Original
2018-03-03 10:25:143741browse

This article mainly introduces you to the method of mounting a 3T hard disk or a disk larger than 2T in Ubuntu. The editor thinks it is quite good. Now I will share it with you and give you a reference. I hope it can help you.

1. Display the hard disk and its partitions. Enter the following command in the terminal window


fdisk -lu

You can see the 3T disk to be mounted

because of the fdisk partition The maximum is only 2T, so parted is used here to partition.

Execute the command parted /dev/sdc

Because the MBR partition table does not support a capacity greater than 2.2TB (2.2 × 1012 bytes) partition, so some BIOS systems use GPT partition tables instead of MBR partition tables in order to support large-capacity hard disks.

Execute fdisk -l, you can see the sdc1 partition

##Format partition

ext4 means formatting the partition into an ext4 file system type


mkfs.ext4 /dev/sdc1

Mount the partition

Specify the hard disk partition file system type as ext4, and mount the /dev/sdc1 partition to the directory /media/sdc1


mkdir /media/sdc1

cat/ etc/fstab


/dev/mapper/ubuntu--vg-root /        ext4  errors=remount-ro 0    1
/dev/mapper/ubuntu--vg-swap_1 none      swap  sw       0    0
/dev/sdb1        /media/sdb1       ext4  rw       0   0
/dev/sdc1        /media/sdc1       ext4  rw       0   0

Restart the server and execute df -h

Related recommendations:

About ubuntu setting up php development environment example tutorial

php Ubuntu server setting method

How to install yaf extension on Ubuntu

The above is the detailed content of Ubuntu on Linux mounts a 3T hard disk or a disk larger than 2T. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn