Friday, August 27, 2010

NTFS File Access Inside FEDORA CORE

Well this is a basic topic on allowing NTFS file access inside Fedora Core. NTFS is a file system used on Windows 2000, and Windows XP mainly. If you wish to access the data on these drives whilst inside Linux, firstly you need to install a module that is the ntfs.ko. This allows the kernel to read the NTFS partitions. Then u will need to locate and download the right RPM (FC users) for your system from http://www.linux-ntfs.org/content/view/187/. Look through the list, and search for your kernel version. To know your kernel version type: uname -r
Newer NTFS RPMs have names like
kernel-module-ntfs-2.6.8-1.541-2.1.17-0.fc.1.2.i586.rpm
When downloading the RPM save it to disk, and do not run using the install package manager. Go to where you saved the RPM, and at the command line (in the directory where the RPM is stored) .To install the RPM: rpm -ihv *.rpm
You should see:
Preparing...      ############################### [100%]
1:kernel-ntfs  ############################### [100%]

/sbin/modprobe ntfs

There should be no output. If there is a lot of error messages see the Help Section on http://www.linux-ntfs.org/content/view/124/60/

Do the following for configuration:

1. Login as root by running from a terminal su followed by typing the root password.

2. Create a directory in your /mnt folder. This can be done by running mkdir /mnt/X where X is the name of the directory where the NTFS partition will be mounted.

3. /sbin/fdisk -l This will output your HPFS/NTFS partition identifier. Lets say the device file name is found to be /dev/Y.

4. gedit /etc/fstab . Gedit will open

5. On a new line at the bottom of the file, add the line

/dev/Y /mnt/X ntfs ro,defaults,umask=0222  0 0

where X is the name of the directory you created in step 2.

6. Save and quit the file /etc/fstab

7. Then run mount -a (or some say mount -t ntfs /dev/hdb1 /mnt) and the NTFS partition will be mounted. It will also be mounted automatically after reboot so that you do not have to do anything after you reboot.

1 comment:

  1. cool
    good keep going ..
    have u tried user daemons

    ReplyDelete