Tuesday 31 July 2007

Mount NTFS Partition on Fedora Core 6

If you have a ntfs partition on your computer system and want to read & write to that drive, you can now do so with NTFS-3G. Installation was a breeze.

su -
yum install ntfs-3g

In the /etc/udev/rules.d/50-udev.rules replace this line:

SUBSYSTEM=="block", GROUP="disk", MODE="0640"

with the following line:

SUBSYSTEM=="block", GROUP="disk", MODE="0660"

Add the user to the disk and fuse group:
usermod -a -G disk,fuse change_this_to_your_username

Change permissions of the directory (example is hda1) where you want to mount the NTFS partition to 777:
chmod 777 /media/hda1
*If your not sure which drive is your NTFS partition as root type in “fdisk -l” to see a list of all your drives*

Add this line to /etc/fstab (change hda1 to your ntfs drive):
/dev/hda1 /media/hda1 ntfs-3g dmask=022,fmask=133,noauto,locale=hu_HU.UTF-8,user 0 0

To automatically mount your NTFS partition in GNOME, run this command:
rm -f /usr/share/hal/fdi/policy/10osvendor/
99-redhat-storage-policy-fixed-drives.fdi

No comments: