How to mount NTFS/VFAT file systems under Linux
First of all find which partition is having NTFS on it using “fdisk” command as shown below.
[root@techpulp ~]# fdisk -l | grep NTFS /dev/hda1 1 2125 4283968+ 07 NTFS/HPFS [root@techpulp ~]#
So I have NTFS file system present in the very first partition “/dev/sda1“. Now check if you have
[root@techpulp ~]# rpm -aq | grep ntfs ntfsprogs-2.0.0-9.fc10.i386 ntfs-3g-1.5012-4.fc10.i386 [root@techpulp ~]#
So I already have NTFS related software installed. If don’t have them installed, use “yum” command to get them installed.
[root@techpulp ~]# yum -y install ntfsprogs ntfs-3g
Now just try quickly whether you can mount the NTFS partition or not after creating a directory for mount point. I am using “/c” as mount point. Then use “df” and “mount” commands as shown below to confirm.
[root@techpulp ~]# mkdir /c [root@techpulp ~]# mount /dev/sda1 /c -t ntfs [root@techpulp ~]# df /c Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 34186316 25871268 8315048 76% /c [root@techpulp ~]# mount | grep /c /dev/sda1 on /c type fuseblk (rw,allow_other,default_permissions,blksize=4096) [root@techpulp ~]#
you can place the following entry in “/etc/fstab” file to get the NTFS partition mounted automatically each time system starts.
/dev/sda2 /c ntfs umask=0222 1 2
The above entry ensures that only super user (root) can have write access to the files and other users will have read-only access. However if you want normal users to have write access, use the following entry.
/dev/sda2 /c ntfs defaults 1 2

