We help IT Professionals succeed at work.

how to mount NTFS share under centos

gddl630
gddl630 asked
on
I've done this previously on an old redhat box, but the commands I used then are not entirely applicable for this new centos install

I used something like:
mount -t smbfs -o username=gd,password=psw,uid=gd,gid=gd //nas/bcmv$ /mnt/bcmv

how will this be different on centos? and what additional packages will need to be installed for this to work?
Comment
Watch Question

Most Valuable Expert 2015
Commented:
replace smbfs with cifs. Make sure you have cifs support installed.
Michael WorshamCloud/Infrastructure Solutions Architect

Commented:
You can use NTFS-3G for this

How to Mount an NTFS Filesystem
http://wiki.centos.org/TipsAndTricks/NTFS
Most Valuable Expert 2015

Commented:
He's trying to mount a windows or samba share, the underlying file-system of that share is irrelevant here.
Michael WorshamCloud/Infrastructure Solutions Architect

Commented:
@rindi: Sorry, I re-read the question and saw the clarification.

As you had stated using cifs, here is a site with detailed instructions just in case:

http://wiki.centos.org/TipsAndTricks/WindowsShares
http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html

Author

Commented:
thanks rindi works fine - will this persist and work after reboot too?
Most Valuable Expert 2015

Commented:
You'd have to put the command into a script and run the script at boot to get it to persist.