Friday, February 12, 2010

Mounting USB flash drive with NTFS -f FS on to RHEL 4/5.x

Mounting USB flash drive with NTFS -f FS on to RHEL 4/5.x

First login as "root" and do:

fdisk -l

find whether the device is /dev/sda or /dev/sda1

In the following case, it is /dev/sda1:

Device Boot Start End Blocks Id System
/dev/sda1 1 15740 4029424 c W95 FAT32 (LBA)

Then, create a dir:
mkdir /v03/flash

then, mount it as follows:

mount -t auto /dev/sda1 /v03/flash/

Download the following 2 tar balls:
fuse-2.7.4.tar.gz
ntfsprogs-2.0.0.tar.gz

Then, install fuse first
tar xfz fuse-2.7.4.tar.gz
cd fuse-2.7.4
./configure
make install

Then, install ntfsprogs, next
tar xfz ntfsprogs-2.0.0.tar.gz
cd ntfsprogs-2.0.0
./configure
make install

Then, you should be able to mount the NTFS for READ and WRITE as follows:

ntfsmount /dev/sda1 /mnt -o rw

1 comment: