The kernels provided by Debian have read-only NTFS support present through the ntfs module.
As for the configuration in /etc/fstab regarding the mounting, the fields on the line are separated by whitespace (spaces, tabs) and have the following meaning:
The first field is the device name of the partition containing the NTFS filesystem you want to mount
The second field is the mount point - where you want it to be mounted.
The third field is what kind of filesystem it is that you want to mount, in this case NTFS which is specified as
ntfs.
The fourth field is various mount options that can be specified.
The fifth parameter has to do with backups of ext2 filesystems. Just leave it at zero.
The sixth parameter has to do with order of filesystem checking. For these kinds of partitions it is common to leave it as a zero as well.
The mount point directories must exist prior to mounting.
The entries in /etc/fstab (that aren't marked noauto) are mounted at system bootup.
If you want to mount all filesystems specified in /etc/fstab (that aren't marked noauto), after boot (e.g. when just having edited /etc/fstab) you can do so by
mount -a
Example from one of my systems:
Code:
/dev/hda5 /mnt/win2k ntfs ro,uid=0,gid=50,umask=002 0 0
/dev/hda6 /mnt/winxp ntfs ro,uid=0,gid=50,umask=002 0 0
/dev/hda5 is a partition containing an NTFS filesystem that is mounted on /mnt/win2k
/dev/hda6 is a partition containing an NTFS filesystem that is mounted on /mnt/winxp
As for the options, they are set as read-only (ro) although this driver does not even support write operations in the first place, and the owner of all files and directories is root (uid=0), and the group of all files and directories is staff (gid=50) and the permissions on all files and directories is set to 775 (umask=002) but actually due to the read-only nature the umask effectively becomes 222 (permissions of 555).