Suggestions for Ubuntu over 2 TB file systems on VMware

Source: Internet
Author: User
Tags gparted

Suggestions for Ubuntu over 2 TB file systems on VMware

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 (Windows 10) 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.

Https://www.bkjia.com/topicnews.aspx? Tid = 2

This article permanently updates link: https://www.bkjia.com/Linux/2018-03/151297.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.