Mount, read and write from NTFS partitions on Linux
Want to access to your existing Windows partition in Linux machine, here is a simple procedure:
1. Download NTFS-3G (which will provide safe and fast handling of the Windows XP, Windows Server 2003, Windows 2000 and Windows Vista file systems) fromhttp://www.ntfs-3g.org/
2. Install the file:
# tar -zxvf ntfs-3g-1.5012.tgz
# cd ntfs-3g-1.5012
# ./configure
# make
# make install
3. Download the specific kernel module rpm from linux-ntfs.org
[to check your current Linux kernel version, use uname -rm: if it returns, for instance, 2.6.18-92.1.13.e15 i686, then you should download kernel-module-ntfs-2.6.18-92.1.13.e15....i686.rpm]
4. Install:
# rpm -ivh kernel-module-ntfs-2.6.18-92.1.13.e15….i686.rpm
5. Now you may check the partitions to be mounted:
# fdisk -l | grep NTFS
6. The listed NTFS partitions can be mountable:
# mkdir /mnt/ntfs
# mount -r -o umask=0222 -t ntfs /dev/hda1 /mnt/ntfs
7. To list the files/directories in the NTFS disk:
# cd /mnt/ntfs
# ls -al
8. To automatically mount the drive during start-up:
# vi /etc/fstab
and add the following line at the bottom of the file:
/dev/hda1 /mnt/ntfs ntfs-3g defaults 0 0
9. Reboot the system.
# reboot
Thanks and it works great!
John
October 16, 2008 at 1:39 pm
I tried your procedure with my CentOS linux but got ‘fuse’ issue. I was able to resolve it by doing the following.
1. Install the rpmforge-release package
$ rpm -Uvh http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/i386/RPMS.rpmforge/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
2. Install fuse and its related components
$ yum install fuse fuse-ntfs-3g dkms dkms-fuse
3. Create an entry in /etc/fstab to mount the drive at boot time
$ vi /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
…
…
# add the following
/dev/hda1 /mnt/Win ntfs-3g auto,users,uid=0,gid=500,umask=000,rw 0 0
4. Reboot the system to allow mount at the boot up time.
Hope this helps anyone who might be using older kernel.
Reg
Reggie
December 10, 2008 at 9:45 am