Ubuntu on VMware is recommended for building a file system larger than 2 TB, ubuntu2tb
1
. The partition where Ubuntu is located, that is, the/dev/sda disk (if you want to see it intuitively, search for gparted In the Ubuntu application market. The most popular one is that after the installation, click the super/win key and search for gparted. You can check it out.) You must install it on the SSD hard disk. Because this is much faster, and then prepare the HDD hard disk to store data.
2. I originally had a 40g image in my laptop (win10) and inserted a 4.5T external hard drive. I wanted to resize Ubuntu, and I had a detour. I tried to expand the capacity of the hard disk and then used the built-in expansion tool. Then, an error occurred. Because the original Partition Table is from MBR, but after T is exceeded, the partition table should be changed to GPT (or GUID), otherwise it cannot be expanded to that large. However, the methods found on the Internet are not easy to use, because after the partition table format is modified, the BIOS cannot find where your system is.
The best way is to add a new hard disk in the hardware and select the independent mode.
After adding the device, you can see the new device (/dev/sdb) in gparted, but it has not been connected to your system yet. At this time, you need to use the mount command to map the hard disk to a directory.
Then I will create a folder named ai In the root directory:
Sudo mkdir/ai
After the creation is complete, continue:
Sudo mount/dev/sdb2/ai
The above sdb2 may be sdb1. Try to select the mobile hard disk in gparted-> devices, and then you can see which one corresponds to the 4.5T:
In this way, you can map the new hard disk to the/ai directory. In this directory, You can put down the 4.5T content. However, if you look at the capacity in the system's Details, the capacity remains unchanged.
(You can also press df-h in the command line)
But now there is another problem, that is, after the mounting is successful, you need to re-mount it again after the restart. Therefore, we will briefly teach you how to set the NTFS hard disk to automatic (every time the system starts)
First, use vim to open a file:
Sudo vim/etc/fstab
Create a new row at the bottom and write
UUID = 583435A6343587D0/ai ntfs defaults 0 0
Note that the string corresponding to your "UUID =" is different for each partition. You can query your UUID:
Lsblk-o NAME, FSTYPE, UUID
Then we can see that we can replace the UUID. /Ai fill in the mounted directory. Ntfs is a hard disk format or another format.