1. Introduction
The purpose of this article is to provide readers with a step-by-step guide on how to mount NTFS partitioned file systems on a Linux operating system. This article consists of two parts:
- Mount NTFS file system in read-only mode;
- Mount NTFS file system in read-write mode;
2. Read-only mount NTFS file system 2.1. NTFS kernel support
Most Linux distributions now support the NTFS file system. Supporting the NTFS file system is a feature of the Linux kernel module, not the Linux distribution. First determine if the NTFS module is already installed in your system. # ls/lib/modules/2.6.18-128.el5pae/kernel/fs/| grep NTFS if the NTFS module exists, let's identify the NTFS partition. If you do not have an NTFS module, you need to install it first. View kernel version: [[email protected] mnt]# Uname-r2.6.18-128.el5pae search Kernel-module-ntfs 2.6.18-128.el5pae from the Internet. Download the RPM package for installation. # RPM-IVH KERNEL-MODULE-NTFS-2.6.18-128.EL5-2.1.27-0.RR.10.11.I686.RPM If there is no error, the system can now support NTFS. Note: The NTFS module is not found on the web under PAE.
2.2. View the NTFS partition
An easy way to identify NTFS partitions is as follows: # Fdisk-l | The hard drive of grep ntfs/dev/sdb1 2 62016256 1953512032+ 7 hpfs/ntfsntfs partition is:/dev/sdb12.3. The Mount NTFS partition first creates the mount point: # mkdir/mnt/ntfs then simply mounts it with the Mount command: # mount-t NTFS/DEV/SDB1/MNT/NTFS Now we can access the NTFS partition and the files in it, But only Read permissions.
3. Mount NTFS file system in read-write mode
The Mount NTFS file system makes it a bit more complicated to have read and write access. This involves the installation of other software, such as Fuse and ntfs-3g. In both cases you may need to use the Package manager, such as Yum, apt-get,synaptic, and so on, and install it on your standard distribution drive. Check the package ntfs-3g and fuse.
3.1. Install other software 3.1.1. Fuse Installation
Download source code # wget http://easynews.dl.sourceforge.net/sourceforge/fuse/from Http://fuse.sourceforge.net Fuse-2.7.1.tar.gz Extract Source code: # tar zxf fuse-2.7.1.tar.gz compile and install the fuse source code # CD fuse-2.7.1#./configure--exec-prefix=/; Make Make install
3.1.2. ntfs-3g Installation
Download source code from website http://www.tuxera.com/community/ntfs-3g-download/: http://tuxera.com/opensource/ntfs-3g_ NTFSPROGS-2011.4.12.TGZ Unzip installation: # tar zxf ntfs-3g_ntfsprogs-2011.4.12.tgz compile and install ntfs-3g source code. # CD ntfs-3g_ntfsprogs-2011.4.12#./configure# make# Make Install
3.2. Mount NTFS partition
If no errors occur during the installation, NTFS volumes can mount to Linux and have read and write permissions. # Fdisk-l | grep ntfs# mount-t ntfs-3g/dev/sdb1/mnt/ntfs[[email protected] ntfs-3g_ntfsprogs-2011.4.12]# mount-t NTFS-3G/DEV/SDB1 /mnt/ntfsfatal:module fuse not found. (This is due to no fuse module installed) Download URL: http://ftp.riken.go.jp/Linux/cern/slc52test/extras/x86_64/failed/ Find the Kernel-module-fuse-2.6.18-128.el5pae rpm installer on Google, download the installation, and then re-mount.
from:http://blog.csdn.net/fan_hai_ping/article/details/6673318
Mount NTFS partitions on Linux