15 April, 2010

To permanently mount a windows ntfs share in linux

1. create a file named /root/.ntfs_share to look like this

username=xyz
password=Password1

2. change its permissions to 600

3. edit /etc/fstab and make an entry just like the following:

//servername/sharename /home/abc/mountpoint cifs auto,credentials=
/root/.ntfs_share,uid=500,gid=500,file_mode=0775,dir_mode=0775 0 0

4. mount with mount -a command.

No comments:

Post a Comment