How do I mount the NTFS hard drive on linux system

  • 2020-05-17 07:29:28
  • OfStack

preface

Data migration is something we often encounter. Sometimes, in order to quickly migrate large data, it is possible to temporarily mount an NTFS hard disk on the Linux server in order to quickly migrate big data. In general, Linux cannot recognize the NTFS hard disk (it needs to recompile the Linux core and add the NTFS partition).
In order for the Linux server to recognize NTFS's external hard drive, the ntfs-3g (Third Generation Read/Write NTFS Driver) package must be installed.

1. NTFS - 3 G is introduced

NTFS-3G is an open source project,

NTFS-3G is for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX, Haiku,

And other operating systems provide a stable, fully functional, read-write NTFS driver.

It provides secure handling of NTFS file systems under Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7 operating systems.

NTFS-3g is an open source software that supports reading and writing NTFS partitions under Linux.

It's very fast and safe at the same time. It supports Windows 2000, XP, 2003, and Vista, as well as all POSIX compliant disk operations.

The purpose of ntfs-3g is for continuous development. Users of various hardware platforms and operating systems need reliable interoperability and support for ntfs drivers.

The ntfs-3g offers a trusted, feature-rich, high-performance solution. After more than 12 years of development, ntfs-3g has gradually stabilized;

Information on

Official site: http: / / www tuxera. com /,

Document manual: http: / / www tuxera. com/community/ntfs - 3 g manual /

Download address: http: / / www tuxera. com/community/ntfs - 3 g download /

2. Install and mount

Step 1: unzip and install NTFS-3G.


# tar -xvzf ntfs-3g_ntfsprogs-2012.1.15.tgz 
# cd ntfs-3g_ntfsprogs-2012.1.15 
# ./configure 
# make 
# make install 

The installation will be prompted as successful, and ntfs-3g will be used to read and write the NTFS partition

Step 2: configure to mount the NTFS removable hard disk

1. Get the information of the NTFS partition first


# sudo fdisk -l | grep NTFS 
[root@DB-Server klb]# sudo fdisk -l | grep NTFS 
/dev/sdc1 * 1 244 1955776+ 7 HPFS/NTFS 

2. Set the mount point and mount it with the following command


# mount -t ntfs-3g 

For example, the resulting NTFS partition information is /dev/sdc1, and the mount point is set under /mnt/usb, which can be used


# mount -t ntfs-3g /dev/sdc1 /mnt/usb 
 Or you can just use  
# ntfs-3g ntfs-3g /dev/sdc1 /mnt/usb 

3. If you want to realize automatic startup mount, you can add the following format statement in /etc/fstab


ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0 

This enables the display of Chinese file names in the NTFS partition.

4. Uninstall partition can be realized by umount


# umount    
 or     
# umount 

conclusion

The above is about linux system mount NTFS mobile hard disk all content, hope the content of this article to your study or work can bring 1 certain help, if you have any questions can leave a message to communicate.


Related articles: