Releases/Mandriva/2007.1/NTFS writing

From Mandriva Community Wiki

Jump to: navigation, search


Mandriva Linux 2007 Spring includes the ntfs-3g system for accessing NTFS-formatted drives. This system allows drives to be written to as well as read, unlike the default system, which includes support only for reading. Configuring support for removable devices under GNOME is fairly simple, and is covered in the Release Notes. This page assumes you have already completed installation of ntfs-3g as detailed on that page. Configuring support for static drives is slightly more complex, and will require you to edit system configuration files directly.

To enable use of ntfs-3g for a static drive or partition, you must edit the /etc/fstab file. For instructions on how to edit system configuration files like this, please see this page. You must change the filesystem type for the partition from ntfs to ntfs-3g.

If you only have one NTFS-formatted drive or partition in your system, there should be only one occurrence of ntfs in the file, and it is this you must change to ntfs-3g. If you have several NTFS-formatted drives or partitions and you wish to use ntfs-3g for all of them, you may change every occurrence of ntfs to ntfs-3g.

If you have several NTFS-formatted drives or partitions and you only wish to use ntfs-3g on one or some of them, you must identify the partitions on which you wish to use ntfs-3g by their partition names - for instance, /dev/hdc3 or /dev/sdb1. You can use diskdrake, the Mandriva hard disk management utility, to identify the partition name(s). Then you must change only the occurrence(s) of ntfs in the line(s) for these partitions to ntfs-3g, and leave the other occurrences of ntfs untouched.

An example of the change follows.

Before:

/dev/hda5 /mnt/win_d ntfs silent,umask=0

After:

/dev/hda5 /mnt/win_d ntfs-3g silent,umask=0

After making the change, you may either unmount and remount the affected partitions - either manually, with the umount and mount commands, or using diskdrake - or reboot, in order for the changes to take effect.


You can also use the ntfs-config utility to configure ntfs-3g. First, install the ntfs-config package following the instructions at Installing and removing software.

Next, you have to edit the /etc/fstab file. For instructions on how to edit system configuration files like this, please see this page. Completely remove all fstab entries related to NTFS partitions and drives.

Then start ntfs-config from the menu, you can find it under System - Settings - Hardware - NTFS-Configuration Tool. Then you select your partition and choose a mount point for it: enter only a descriptive name, not a path, the partition will be mounted under /media/name. Next, select whether you want to enable write access for internal and/or for external drives. Then you are ready to go and your partition will be already mounted. External partitons should be unmounted when you are finished with writing, with the function your desktop environment offers ("Safely remove").

Personal tools