Ians Ramblings Ian's ramblings, daily, ish

19Oct/090

Mount NTFS drive CentOS 5

I came across a problem today mounting an NTFS drive on CentOS 5, previously the NTFS driver seemed to have been compiled into the kernel as standard on CentOS 4.

Firstly ensure that you are root.

su -

Originally I installed fuse-ntfs-3g-2009.4.4-2.el5.rf using yum, unfortunately it resulted in the problem which it seems so many people are having when mounting: -

modprobe: Can't locate module fuse
fusermount: fuse device not found, try 'modprobe fuse' first
pcname:/home/me# modprobe fuse
modprobe: Can't locate module fuse

In the end we realised you also need to have the dkms-fuse package installed as well. So here is my little step by step.

1. List the drives and note the name of the NTFS disk

fdisk -l


Output:

Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 30394 244035382+ 8e Linux LVM

Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 243201 1953512001 7 HPFS/NTFS

2. Install the packages

yum install fuse dkms-fuse

3. Create the directory to mount to

mkdir /ntfs/

4. Mount the disk

mount -t ntfs-3g /dev/sdb1 /ntfs/

   
6 visitors online now
6 guests, 0 members
Max visitors today: 6 at 01:12 am UTC
This month: 6 at 08-01-2010 01:12 am UTC
This year: 48 at 06-10-2010 05:19 am UTC
All time: 48 at 06-10-2010 05:19 am UTC