How to mount network ntfs drive on linux server and add it on FSTAB
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to mount network ntfs drive on linux server and add it on FSTAB
Hello everyone,
I need help mounting network NTFS drive on my linux server. I am using CentOS 5.5 OS. I already install ntfs-3g rpm, but I don't know the command to mount network NTFS drive. I also want to mount it on my fstab file, so whenever it reloads, it can automatically mount on the specific folder.
Contradiction in terms. NTFS is not a network filesystem. In all likelihood, you mean a CIFS/SMB network share, or you mean an NTFS partition on a dual-boot host. Please clarify.
Contradiction in terms. NTFS is not a network filesystem. In all likelihood, you mean a CIFS/SMB network share, or you mean an NTFS partition on a dual-boot host. Please clarify.
--- rod.
I am sorry. Well, I have a linux server installed on the Virtual box; and my base machine is running on Windows 7 OS. So basically what I want to do is that I want to map my windows 7 NTFS drive on linux server which is CentOS.
Okay, yet another possibility. I'm not very acquainted with the ins and outs of virtual OS's, but I'm going to guess that the host OS isn't going to expect there to be another OS using it's drive. Therefore, your most probable solution would be to create a network share in the Windows OS, and mount it with the Linux guest OS's SMB/CIFS. For that, start out with (as root):
Code:
mount -t cifs //the/windows/sharename /the/linux/mountpoint
Then, you will want to
Code:
man mount.cifs
man mount
man fstab
Those should give you the information to fill in the details and refine the mount. In /etc/fstab, you will probably end up with an entry something like:
The drive on the base machine was shared via network already, we were just trying to mount the network drive onto CentOS. This is the command we just used and it worked, thanks all.
I am having trouble understanding this command, mostly the last part of it. What is "directio" and everything that comes after that? Also what is the uid and gid?
I am having trouble understanding this command, mostly the last part of it. What is "directio" and everything that comes after that? Also what is the uid and gid?
Thanks
Well, I'm not sure, Warhawk. I think lets wait for someone to reply.
All of the comma-separated items in the entry are the options passed to mount.cifs (standard fstab stuff). Many are optional, and most require local customization. All are explained in the man page for mount.cifs, along with the numerous other possible options.
--- rod.
All of the comma-separated items in the entry are the options passed to mount.cifs (standard fstab stuff). Many are optional, and most require local customization. All are explained in the man page for mount.cifs, along with the numerous other possible options.
--- rod.
Okay, l ll try this next morning and see if it works. I have a question I will post back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.