Thursday, 10 September 2009

Mounting NTFS Formated drives in RHEL5

One of the flaws in Red Hat EL is the lack of support for NTFS formatted drives. I use RHEL 5.x extensively (even to having to having Internet Explorer run via Wine for when I need to test it). So I will detail how to configure support for rwading NTFS partitions in Red Hat Enterprise Linux Server release 5 (RHEL 5) x86_64 edition.

Mounting NTFS in read only mode is simple (and essential for forensic uses), but it is also of use to be able to mount a drive in read/write mode. After all, you may want to copy something to your drive.

Start by downloading and installing both the fuse & ntfs-3g packages.

Install Fuse
Start by installing the base fuse module. I will not cover the RPM based install, I prefer to download and build source (make your own RPM's if this is a requirement). Besides installing an RPM is simple (rpm -ihv file.rpm) so need not be rehashed here.

The install will require several libraries. These do change over time, so the best thing is to ensure that you have all required packages first (yum ...)

Install fuse-ntfs-3g
The same goes for fuse. Build the source. This is a typical ./configure, make, makeinstall etc process if all of the dependency packages are installed on your build system.

Next Mount a partition
As you can see from the image below, the command to mount the partition is nothing too complex. There is also the ntfs-3g command. So you have options.
There are other options for adding the mount as a particular user, I will leave you to play with these.

ntfs-3g volume mount_point [-o option[,...]]
mount -t ntfs-3g volume mount_point [-o option[,...]]

No comments: