LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-02-2012, 10:19 AM   #1
lukester
LQ Newbie
 
Registered: Mar 2012
Posts: 11

Rep: Reputation: Disabled
mount windows ntfs drive - internal ip


Hi Guys and Girls

Got some wonderful help here on my last post so thought id ask for more :-)

I am trying to mount a windows ntfs share to centos 5.7
The windows share is the C drive of a seperate server (includes windows sys files). I wish to access this using the internal IP address (192 range) so the traffic is not going through the firewall and other monitor software.

I have made it work to an empty FAT32 partition but not NTFS. This is what i have done so far:
Code:
yum install fuse fuse-ntfs-3g
Code:
yum install ntfs-3g
Code:
mkdir /mnt/cf10
I have this in fstab
Code:
//192.168.1.15/LocalDisk /mnt/win ntfs-3g rw,user=USERNAME,password=PASSWORD 0 0
I then run
Code:
mount -a
and i get:
[root@test ~]# mount -a
ntfs-3g: Failed to access volume '//192.168.1.15/LocalDisk': No such file or directory

ntfs-3g 2010.10.2 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2010 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options: ro (read-only mount), remove_hiberfile, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

Ntfs-3g news, support and information: http://ntfs-3g.org
[root@test ~]#

I have also tried mounting it without using fstab, I have tried this
Code:
mount -t ntfs-3g //192.168.1.15/LocalDisk /mnt/cf10
and
Code:
mount -t ntfs-3g //192.168.1.15/LocalDisk /mnt/cf10 user=USER,password=PASSWORD
Both give me the same error - ntfs-3g: Failed to access volume '//192.168.1.15/LocalDisk': No such file or directory. Im not sure if i am calling this properly, if i was doing this from a windows machine i would specify the admin share ie //192.168.1.15/c$ - should i be doing this in centos and if so how?

I have also tried
Code:
ntfs-3g //192.168.1.15 /mnt/windows
and
Code:
ntfs-3g //192.168.1.15/LocalDrive /mnt/windows
also
Code:
ntfs-3g //192.168.1.15/LocalDrive /mnt/windows user=USER, password=PASSWORD
and other variations such as
Code:
ntfs-3g user=USER,password=PASSWORD //192.168.1.15/LocalDrive /mnt/windows
etc

I am aware that using a credentials file for passwords is seen as best practise, but i just want to make it work as is before fiddling!

This is what i have for FAT32 in FSTAB and it works but the server is hosted elsewhere and is using the full internet IP if it helps...
Code:
//xx.xxx.xx.xxx/linux /mnt/win cifs user=USER,password=PASSWORD 0 0
Thanks for your time and help
Luke
 
Old 04-02-2012, 10:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you can't mount NTFS over a network. It doesn't make sense. NTFS is a local disk filesystem between the disk drive and the host operating system. If you want to share that data out to other systems, then that's a separate protocol, independent of the disk itself, i.e. CIFS / SMB on Windows. You would only use the ntfs-3g module if the disk was inside your system.

You can clearly see in your own "fat32" example there is no reference to fat32 at all. Just cifs.
 
Old 04-02-2012, 10:39 AM   #3
lukester
LQ Newbie
 
Registered: Mar 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi Chris

thanks for your quick reply, im a newbie to this and thought cifs was the thing that "translated" fat32 to centos readable format, and thought the ntfs-3g thing did the same.

Maybe i have not explained my wants and needs properly...

I have 2 Datacenters with lots of VMs in each, some windows some linux. I have a seperate stand-alone server in another datacenter for backups. I am trying to get my linux test box to connect to the harddrive of a windows server and backup the contents of the wwwroot folder to the standalone server. I can successfully connect to the standalone servers E drive using the working code in my 1st post (//xx.xxx.xx.xxx/linux /mnt/win cifs user=USER,password=PASSWORD 0 0). The E drive of this standalone server is FAT32. The other windows servers are all NTFS.

In windows i would do this by "map network drive" then typing //192.168.1.12/c$ - is there no way to do the same using linux?

Cheers
Luke
 
Old 04-02-2012, 10:41 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
it's totally possible, but from the Linux perspective, you will be talking to a cifs server, not an ntfs disk. just forget about fat32 / ntfs and use cifs for both.
 
1 members found this post helpful.
Old 04-02-2012, 11:01 AM   #5
lukester
LQ Newbie
 
Registered: Mar 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi Chris

Thanks for that, i have now got
Code:
//192.168.1.15/LocalDisk /mnt/cf10 cifs user=USER,password=PASSWORD 0 0
in my FSTAB, when i run
Code:
mount -a
i get: retrying with upper case share name
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

I dont have many ideas as to why, the device is definitely there and i can ping the ip address. I think it has something to do with the way i am specifying C drive - i am writing LocalDisk which is what the label (name) is set as in windows.

//192.168.1.12/LocalDisk Is this the correct way to specify the disk? In windows i would write //192.168.1.12/c$ regardless of the label, but in centos i think (correct me if wrong) the $ is a special character? - would the name LocalDisk be causing issues?

Thanks very much for your help it is greatly appreciated.
Luke

Last edited by lukester; 04-02-2012 at 11:31 AM.
 
Old 04-02-2012, 11:54 AM   #6
lukester
LQ Newbie
 
Registered: Mar 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
all done

Many thanks to Chris for your help, i have made it work finally - and i even figured out why it wouldnt work before- school boy error, forgot to set the drive as shared on the windows side. Anyway its working now Im posting this to help anyone else that may come across this thread. this is my FSTAB
Code:
//192.168.1.15/LocalDisk /mnt/cf10 cifs user=USER,password=PASSWORD 0 0
Thanks again for your help Chris.

Regards
Luke
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot mount internal ntfs drive jens1245 Linux - Newbie 3 05-07-2009 08:35 AM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 08:29 PM
got my ntfs sata drive to mount but cat get to auto mount Jack Daniels Linux - Hardware 3 04-15-2007 11:42 AM
Set up rsync to mirror mount on Windows Server to mount point on 2nd internal drive MoMule Linux - Server 4 04-13-2007 10:34 PM
Mount NTFS Windows Drive / Permission Problems allen_p Linux - Newbie 1 08-05-2004 10:16 PM


All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration