且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

解决linux 不能识别ntfs分区问题(linux系统挂载移动硬盘)

更新时间:2021-10-16 02:33:55

客户有个电脑,装了linux系统,准备往电脑里拷文件,自己带过去移动一盘,插上一看,不识别。。。原因是当前linux系统不支持ntfs的分区。。

网上查了下,幸亏有个小工具,叫ntfs-3g

然后就从这里下载了:

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


安装使用也很方便,按照这个步骤就可以了:

NTFS-3G + Ntfsprogs

NTFS-3G is a stable, full-featured, read-write NTFS driver for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX, Haiku, and other operating systems. It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008, Windows 7 and Windows 8 NTFS file systems. A high-performance alternative, called Tuxera NTFS is available for embedded devices and Mac OS X.

The release notes and the software changes can be found on the Release History page. Subscribe here for new release notifications.

Download

The latest stable version is ntfs-3g_ntfsprogs-2014.2.15, released on February 23, 2014.

Availability:

Stable Source Release 2014.2.15 Tuxera NTFS for Mac (fastest)
FreeBSD FreshPorts NTFS-3G for Mac OS X
NetBSD Package Collection Mac OS X Fink Package
Haiku Source Repository Mac OS X MacPorts
QNX Portal  

Installation

Linux: Most distributions include and use NTFS-3G by default. Please use that one unless it’s anold version. If you wish to install NTFS-3G from the source code then make sure you have installed the basic development tools (gcc compiler, libc-dev libraries). Then type:

./configure
make
make install
 # or 'sudo make install' if you aren't root

Non-Linux: Please see the OS specific installation and source packages above.

Usage

If there was no error during installation then the NTFS volume can be mounted in read-write mode for everybody as follows. Unmount the volume if it had already been mounted, replace /dev/sda1 and /mnt/windows, if needed.

mount -t ntfs-3g /dev/sda1 /mnt/windows

Please see the NTFS-3G Manual for more options and examples.

You can also make NTFS to be mounted during boot by adding the following line to the end of the /etc/fstab file:

/dev/sda1 /mnt/windows ntfs-3g defaults 0 0