Link to home
Start Free TrialLog in
Avatar of markrhyman
markrhyman

asked on

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?

Avatar of JohnK813
JohnK813
Flag of United States of America image

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.
Avatar of markrhyman
markrhyman

ASKER

Yes I would appreciate some help.  I am fairly new to Linux.  Therefore I do not know the commands as I wished.

Mark
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

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
ASKER CERTIFIED SOLUTION
Avatar of rindi
rindi
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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]#


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.
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
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?
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.
Thanks a lot you've been of great help.

Mark
Thanks too, and no problem.