• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 881
  • Last Modified:

Mount Windows Ntfs to Linux

Hello,

I am trying to mount a Windows shared folder (NTFS) from a computer on my network to my linux station.

Somehow I am not able to perform this operation. I get all kinds of error message like Server does not exist, Ntfs not supported, etc...

Any help please?

0
markrhyman
Asked:
markrhyman
  • 5
  • 4
  • 2
  • +1
1 Solution
 
JohnK813Commented:
Red Hat and Fedora (and possibly others) don't come with native NTFS support for a variety of reasons.  You'll need this:

http://linux-ntfs.sourceforge.net/

If you need any help with it, don't be afraid to ask.
0
 
markrhymanAuthor Commented:
Yes I would appreciate some help.  I am fairly new to Linux.  Therefore I do not know the commands as I wished.

Mark
0
 
manav_mathurCommented:
try mount -t ntfs /dev/hdax /mnt/some_directory

where /dev/hdax is your ntfs drive partition which you want to mount, and /mnt/some_directory is a preexisting (preferably empty) directory.

Manav
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
markrhymanAuthor Commented:

I get

 mount: fs type ntfs not supported by kernel

JohnK813 was right.  I need to install NTFS Support but I am not sure of how to do this.  I see that I have to upgrade the kernel and recompile it.  I don't want to screw up and loose information on the linux machine.  I would like to be guided through the steps of this operation please.

Thanks
0
 
rindiCommented:
For what you want to do here you don't need to mount an ntfs filesystem, as the that is on another PC on your lan. What you will need to have installed on your linux machine, is a Samba client. So first make sure amba is installed. If you also have konqueror installed, you can use that to check if the sambe client works. Just start up konqueror and enter

smb://IpAddressOfWindowsPC

You should now be able to see the shares on your windows PC and also connect to them by using a username and password that exists on your windows PC.

If access to the Windows PC with the konqueror browser isn't enough, and you need it mounted, create a folder on the linux PC which you will use as mountpoint.

Now enter

mount -t cifs -o username=YourUserNameontheWindowsPC //IPAddressOfYourWindowsPC/ShareName /MountPointYouCreated

If that doesn't work try using -t smbfs instead of -t cifs

0
 
markrhymanAuthor Commented:
Rinji,

I tried:

smb://IpAddressOfWindowsPC
# smb://Web
bash: smb://Web: No such file or directory
# smb ://Web
bash: smb: command not found
# smb ://192.168.1.253
bash: smb: command not found
# smb://192.168.1.253
bash: smb://192.168.1.253: No such file or directory

Therefore I tried Smbd ://192.168.1.253 and I got back the #

Then I tried

mount -t cifs -o username=administrator //Web/Ipecac/Public /mnt/usrfiles

and I got cifs not supported

thus I did

mount -t smbfs -o username=administrator //Web/Ipecac/Public /mnt/usrfiles

Prompted me for the password.  Entered the windows password and got:

14463: session request to 192.168.1.253 failed (Called name not present)
14463: session request to 192 failed (Called name not present)
Password:
14463: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed
[root@localhost root]#


0
 
JohnK813Commented:
rindi is right - you need Samba.  I didn't see at first that you wanted to connect to a shared folder.

Which Linux are you running, and which Desktop Manager?  I'm on Gnome in Fedora Core 3, and I can access Samba through the program menu - that may be a little easier for you.
0
 
rindiCommented:
The first part you need konqueror, which runs under the Xwindows system (KDE, for instance). If you aren't using X you won't have konqueror installed.

The second part looks like a syntax error on your part. What is the name of the share on your server? Go to your windows PC (Which OS are you using there? XP? Windows 2000 Server? Windows 2003 Server?). right click the shared folder (You should see a small hand below the folder). Then select sharing and security and you should see the name under which the folder is shared.

the syntax would now be:

//IPAddress/Sharedname

your entry was:

//IPAddress/FolderName/PossibleSharedname
0
 
markrhymanAuthor Commented:
I am not running and X window on this machine.  Pure command line is what is being used.  Konqueror is not installed either.

The windows server is a windows 2000 Advanced server.

The shared folder I want to access from Linux is \\Web\Ipecac\Public\Backup where Web is the computer with ip 198.168.1.253

Rindi you are right for the Shared Folder that I was trying to access.  I managed to mount the folder on Linux.

Is there a way to have this mount always mounted on reboot?
0
 
rindiCommented:
You need to edit your fstab file.

add the entry

//ip/sharename      /mountpoint      -t smbfs       -o username=xxxx,password=xxxx,          0  0

I'm not 100% sure about the username, password part, possibly the -o isn't necessary. The syntax could also be somewhat different, but you can see the general way to do it, I think.

The reason I asked about the windows server, for windows 2000 the smbfs always works, with windows 2003 you often need the cifs filesystem, which isn't installed on your linux box...

You would need ntfs mountable only if there was a disk in your PC which has a ntfs partition on it, by the way.
0
 
markrhymanAuthor Commented:
Thanks a lot you've been of great help.

Mark
0
 
rindiCommented:
Thanks too, and no problem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 5
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now