I was helping a friend online to mount a disk on CentOS7.9, only to find that I had never mounted a single 4TB disk before. After all, I mostly use VPS and don't need such a large disk. The machine has 1TB+4TB by default, and the 1TB disk was used to install the system. Now I need to mount the 4TB disk on /home as a data disk. Out of inertia, I ran fdisk and found that there was only 2TB... Because the fdisk tool can only create a maximum of 2TB partitions, if it exceeds 2TB, you need to use the parted tool. Record it for convenience when you do it next time. ctrl+c. The following figure shows that the partition was previously mounted using fdisk and only has 2TB. We first cancel the mount and then use the parted tool to recreate the partition. Follow these steps: [root@localhost/]#parted /dev/sdb #Select hard disk (parted) mklabel gpt #Convert gpt partition (parted) mkpart prinmary 1 -1 #Divide into a zone (parted) print #Check partition status (parted) q #Exit***The following steps are the same as fdisk partition**** [root@localhost/]#lsblk #View partitions [root@localhost/]#mkfs.ext4 /dev/sdb1 #Format the disk as ext4 [root@localhost/]#mount /dev/sdb1 /home #Mount to /home [root@localhost/]#vi /etc/fstab #Automatically mount at startup, add the following content /dev/sdb1 /home ext4 defaults 0 0 Or directly: echo "/dev/sdb1 /home ext4 defaults 0 0">> /etc/fstab |
Russia made an incredible decision - abandoning 5...
Kubernetes network is a core concept in Kubernete...
Last month we shared the news that Hosteons was g...
1. Evolution of blockchain development Looking ba...
On October 15, Huawei held a press conference tit...
The famous writer Spencer Johnson once said, &quo...
In our daily life, when we connect our computers,...
PacificRack is a domain name under QN Data Center...
Now everyone is talking about 5G, just like when ...
VMISS has launched a special discount code for th...
We have seen WiFi undergo rapid changes, and in 2...
[51CTO.com original article] On May 17, 2019, the...
[[406693]] The Linkerd 2.10 Chinese manual is bei...
The key technologies of the Internet of Things in...
"As of the end of September, the total numbe...