Thursday, June 14, 2007

How to add USBHDD having NTFS paritions to your RHEL4 box.

In case you are planning to fix up ur USB Drive (NTFS Partitions) on to a RHEL4 with Kernel Version 2.6.9-5.EL.You will need to do the following:

You'll need 2 files:
=============

kernel-module-ntfs-2.6.9-5.EL-2.1.20-0.rr.4.10.i686.rpm --> RPM / Binaries you need to have
NTFS detection.ntfsprogs-1.13.1.tar.gz --> This module is like a driver in windows which will add the related drivers to the kernel.Download using command like, its actually pretty quick:

#wget http://prdownloads.sourceforge.net/linux-ntfs/kernel-module-ntfs-2.6.9-5.EL-2.1.20-0.rr.4.10.i686.rpm
#wget http://prdownloads.sourceforge.net/linux-ntfs/ntfsprogs-1.13.1.tar.gz

You need to remember:
=================

The volume names of USB Drive.

If not are not aware of you can get from "cat /etc/fstab"Run lsusb & lsmod

lsusb - A utility for displaying information about all USB buses in the system and all devices connected to them.

lsmod - A program to show the status of modules in the Linux Kernel.

You need to logon as ROOT user to install both and mount the partitions.

Steps:
====

1) Once you attach the device to the system.

2) Install the "kernel-module-ntfs-2.6.9-5.EL-2.1.20-0.rr.4.10.i686.rpm" & "ntfsprogs-1.13.1.tar.gz" rpm -ivh kernel-module-ntfs-2.6.9-5.EL-2.1.20-0.rr.4.10.i686.rpm modprobe ntfs

3) Check /etc/fstab you'll see something like this:

/dev/sda2 /media/WD_HDD2 ntfs pamconsole,exec,noauto,managed 0 0

/dev/sda5 /media/WD_HDD1 ntfs pamconsole,exec,noauto,managed 0 0

4) In my case I created 2 folders /WD_HDD1 & /WD_HDD2

5) mount /dev/sda5 /WD_HDD1 (HDD Volume Name Partition1)

6) mount /dev/sda2 /WD_HDD2 (HDD Volume Name Partition2)

PS: Always remember to umount / unmount the devices before unplugging or shutting them down.