h1. Oracle Linux NTFS how-to
Author: Dude
Version: B, 22-Jan-2012
h2. Purpose
This document contains instructions how to install NTFS support under Oracle Enterprise Linux version 4, 5 and Oracle Linux version 5 and 6.
h2. Topics
1) Determine Kernel Architecture and Distribution
2) Setup Software Repositories
3) Install the NTFS Kernel Driver and Software
4) Find and Mount a NTFS Device
5) Notes
h3. 1) Determine Kernel Architecture and Distribution
Open a Terminal command prompt and enter the following to check if your system is x86 or x86_64:
# uname -m
x86_64
If you see "i686" or "i386" instead then your system is x86.
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 9)
The above example shows you are running Enterprise Linux version 4.9
h3. 2) Setup Software Repositories
You will need to setup access to two software repositories.
Oracle ULN or public yum:
The installation of RPM software packages can be complex due to software conflicts or package dependencies. It is easier to use a software manager like "yum", which will automatically resolve package dependencies and prompt you to download required software if necessary.
For those who do not have a support subscription and access to Oracle ULN, Oracle provides a public YUM software repository to give you free online access to the standard software distributions. Simply follow the instructions outlined at http://public-yum.oracle.com. You only need to enable the software repository that matches your version according to the previous step.
Reproforge:
The NTFS driver is provided by the Repoforge alias RPMforge software repository. For more information about Repoforge, please see http://repoforge.org/faq. NTFS-3G is a stable, full-featured, read-write NTFS driver for Linux and other operating systems. For more information check http://www.tuxera.com/community/ntfs-3g-download, where you can also download the source code should you prefer to compile your own NTFS driver.
Depending on your current distribution and kernel architecture, you need to install the following:
Oracle Enterprise Linux 4.x x86:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el4.rf.i386.rpm
Oracle Enterprise Linux 4.x x86_64:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el4.rf.x86_64.rpm
Oracle Enterprise Linux / Oracle Linux 5.x x86:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
Oracle Enterprise Linux / Oracle Linux 5.x x86_64:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
Oracle Linux 6.x x86:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.i686.rpm
Oracle Linux 6.x x86_64:
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
h3. 3) Install the NTFS Kernel Driver and Related Software
The software packages required to support NTFS depends on your current Linux distribution:
Oracle Enterprise Linux 4.x:
# yum install dkms dkms-fuse fuse fuse-ntfs-3g
Oracle Enterprise Linux / Oracle Linux 5.0 - 5.2:
# yum install dkms dkms-fuse fuse fuse-ntfs-3g
Oracle Enterprise Linux / Oracle Linux 5.3:
NTFS support under Oracle Enterprise Linux 5.3 is broken and you should consider to upgrade to the 5.4 or later. (https://bugzilla.redhat.com/show_bug.cgi?id=481495)
Oracle Enterprise Linux / Oracle Linux 5.4 - 5.x:
As of Oracle Enterprise Linux 5.4 the the kernel fuse module (dkms, dkms-fuse) is included in the kernel and should not be installed.
# yum install fuse fuse-ntfs-3g
Oracle Enterprise Linux / Oracle Linux 6.x:
# yum install fuse fuse-ntfs-3g
h3. 4) Find and Mount a NTFS Device
You can use the "blkid" command to identify attached devices. For instance:
sudo blkid
/dev/sda1: LABEL="/boot" UUID="73efxxxxxxxxxxxxx_TYPE="ext3" TYPE="ext2"
/dev/dm-0: UUID="22a2d704-f75dxxxxxxx595df" SEC_TYPE="ext3" TYPE="ext2"
/dev/dm-1: TYPE="swap" UUID="3b74fxxxxxx411c-8671-2244b8735866"
/dev/sdb1: TYPE="ntfs"
{code}
In the above example, device "/dev/sdb1" contains a NTFS partition.
To mount the NTFS volume according to above example under the /mnt directory:
{code}
sudo mount.ntfs /dev/sdb1 /mnt
{code}
h3. 6) References
http://wiki.centos.org/TipsAndTricks/NTFS
h3. 6) Notes
<font color="blue">
<font size="2">
If you experience problems with these instructions, please add only a couple of lines with a link to your own thread explaining the details. I spent some time and effort to create this how-to in the hope that it will be useful. If you would like to use these instructions for your own blog or website, please include a link to this source.
Thanks!
</font>
</font>
Kind regards and best of luck!
Dude.