Step One: Unzip the installation ntfs-3g, using the following command.
sudo apt-get install ntfs-3g
Step Two: Configure the mounted NTFS-formatted removable hard disk
1. First get the NTFS partition information
sudo fdisk-l | grep NTFS
[[email protected] klb]# sudo fdisk-l | grep NTFS
/DEV/SDC1 * 1 244 1955776+ 7 Hpfs/ntfs
2. Set the mount point to mount with the following command:
To create the Mount directory first, for example, I mount the/MNT/USBHD1, then:
Cd/mnt
sudo mkdir usbhd1
The Mount command is as follows:
Mount-t ntfs-3g <ntfs partition> <mount point>
For example, the resulting NTFS partition information is/DEV/SDC1, and the mount point is set under/MNT//USBHD1, which can be used
Mount-t NTFS-3G/DEV/SDC1/MNT/USBHD1
or directly with
NTFS-3G NTFS-3G/DEV/SDC1/MNT/USBHD1
3. If you want to automatically mount the boot, you can add the following format statement in the/etc/fstab
<ntfs partition> <mount point> ntfs-3g Silent,umask=0,locale=zh_cn.utf8 0 0
This enables the display of Chinese file names in NTFS partitions.
4. The Unload partition can be implemented with Umount, with
Umount <ntfs partition> or Umount <mount point>
Raspberry Pi mount NTFS USB flash drive