Centos7.8 mounts ntfs format USB disk

Centos7.8 does not support the ntfs format by default, so you need to download software to support it.

1. Download the software ntfs-3g;

2. Download steps are as follows:

1) This toolkit is not available in the centos default source. We need to configure a source ourselves:

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

Download a source file of Alibaba to the yum source directory /etc/yum.repo.d and name it epel.repo

2) If a new source is added, the following sources need to be re-established:

yum makecache

3) Install ntfs-3g:

yum install -y ntfs-3g

After the download is successful, you can start to mount the ntfs format USB disk.

 

 

2. Mount the ntfs format USB disk:

1. Check the current Linux system disk status:

fdisk -l

Currently, there is only the first disk sda when installing the system.

2. Insert the USB disk and connect the USB disk option in vmware-virtual machine-removable devices

 3. After the connection is completed, check the system disk status again:

fdisk -l

You can see that there is one more disk sdb, in which the USB disk is the first partition sdb1 of the sdb disk.

4. Mount the USB disk into Linux:

[root@hadoop1 ~]# mkdir /mnt/usb
[root@hadoop1 ~]# 

[root@hadoop1 yum.repos.d]# mount /dev/sdb1 /mnt/usb/
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.

Mounted successfully.

5. The USB disk has been mounted to the /mnt/usb directory. View the contents of the USB disk:

After the mounting is successful, you can see the contents of the USB flash drive, and you can use the USB flash drive normally later.

Guess you like

Origin blog.csdn.net/liuwkk/article/details/110547115