Operating System - Linux
1753437 Members
4845 Online
108794 Solutions
New Discussion юеВ

Re: Mounting NTFS in linux

 
Andrew Cowan
Honored Contributor

Re: Mounting NTFS in linux

The basic steps are:

mkdir /mount_point

Where the "mount_point" is the name of the directory E.g. "/mnt".

chmod 777 /mnt

This sets the permissions open to everyone, however it will be superceded by the permissions of the directory that is mounted over it. E.g. if the device was a cd then the files would always be read-only.

vi /etc/fstab

Add your mount line as you've stated above then save and exit the file use :x! I use this command as it overrides file protections on the file your editing.

mount /mnt

Your filesystem should now be available. Most Linux versions can only read NTFS and will not allow you to make changes to it, but this should now be available to all users.

If it's a one-off mount you can forego the editing of "fstab" and just specify the full mount command. Eg. mount /dev/sda3 /mnt
Linux can usually work out the type of filesystem, however if it can't you can add extra options to the mount command to force it.

Claudio Cilloni
Honored Contributor

Re: Mounting NTFS in linux

The are two options that you can use to assign a filesystem to a specific user.

uid=luke,gid=luke

these will declare the user 'luke', group 'luke' as the owner of the filesystem.
so your line in /etc/fstab is:

/mountpoint /dev/hdaX ntfs uid=luke,gid=luke 0 0

This trick works well with fat32 (vfat for linux) partitions.
(I don't know if 'ntfs' is right, I never used it).

hth
Claudio
Caesar_3
Esteemed Contributor

Re: Mounting NTFS in linux

Hello!

You need to know that the suport of the ntfs
driver is for read only so you can't write
to the ntfs drive.

Caesar