How to mount an NTFS filesystem

Source: Internet
Author: User

Http://wiki.centos.org/TipsAndTricks/NTFS

 

[Note: If you are running a centosplus kernel, see this section]

Installing required packages
  • While older NTFS drivers were prone to eat your data in R/W-mode, ntfs-3g seems to be r/W safe. See the ntfs-3g QA page for more information.

Make sure you haveRpmforge repo installed. If not, refer to repositories.

Install the following packages.

yum install fuse fuse-ntfs-3g dkms dkms-fuse 

(Dkms and dkms-fuse install the fuseKernel module)

If the rpmforge repo is disabled by default,

yum --enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse 

If you are using the atrpms repository there is no need to installDkmsAndDkms-Fuse(You still needFuse-ntfs-3gFrom rpmforge ).

The line to install from atrpms then is

yum install fuse-kmdl fuse
  • Do not mix from both repositoriesIf you have rpmforge and atrpms installed. Choose one to install fuse from. You might want to take a look at the yum priorities plugin to priorize one repository over the other.

    Make sure that you have the correct kernel-devel package installed-especially having one that matches yourRunning Kernel. Dkms hasKernel-develAs a requirement, but that only pulls inStandardKernel-devel package.

If you are running the xen kernel (kernel-xen), you need

yum install kernel-xen-devel 

If you're running kernel-PAE, you need to install

yum install kernel-PAE-devel 

Same goes for Kernel-SMP and so on.

  • Yum will installLatestKernel-*-devel package. Make sure that it fits the kernel you are using. You might have to reboot to run the latest installed kernel after a "yum Update". The installedRunningKernel and the kernel-*-devel package have to match.

Mounting an NTFS filesystem

Suppose your NTFS filesystem is/Dev/sda1And you are going to mount it on/Mymnt/win, Do the following.

First, create a mount point.

mkdir /mymnt/win 

Next,Edit /Etc/fstabAs follows. To mount read-only:

/dev/sda1       /mymnt/win   ntfs-3g  ro,umask=0222,defaults 0 0 

To mount read-write:

/dev/sda1       /mymnt/win   ntfs-3g  rw,umask=0000,defaults 0 0 

You can now mount it by running:

mount /mymnt/win 

Users of the centosplus Kernel

  • The NTFS module is not enabled in the centoplus kernel starting with CentOS-5.3. This is because NTFS in 5.3 is broken. Please see https://bugzilla.redhat.com/show_bug.cgi? Id = 481495 for details.

In centosplus (repositories/centosplus) Kernels, both NTFs and fuseKernel ModulesAre enabled. the main difference between NTFs and ntfs-3g is that the former is read-only, whilst the latter is read-write. therefore, if you do not need write access to a NTFS filesystem, there is no need to install additional packages. simply add this line/Etc/fstab:

/dev/sda1       /mymnt/win   ntfs  ro,umask=0222,defaults 0 0 

If you wish to have read-write access, you wocould need the fuse-ntfs-3g package. But, because the fuse module is already available in the kernel, you do not need the dkms package:

yum install fuse fuse-ntfs-3g 
  • However, The fuse kernel module has ded in centos 5 (as of August 2007) produces a message: Warning: deficient fuse kernel module detected. it still works, but it is advised that the fuse module from rpmforge (newer) be used instead. also, you shoshould Update to the latest kernel which does not suffer from this issue.

Therefore, run:

yum install fuse fuse-ntfs-3g dkms dkms-fuse 

To replace the existing fuse kernel module with the one from rpmforge.

See also:

Http://wiki.linux-ntfs.org/doku.php? Id = NTFS-en # can_ I _mount_an_ntfs_volume (read-only mounting)

Written and currently maintained by akemiyagi. Comments/improvement welcome.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.