LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-2006, 10:24 PM   #1
luckythedonkey
LQ Newbie
 
Registered: Aug 2005
Location: Australia
Posts: 16

Rep: Reputation: 0
Trouble mounting Windows share


Hi Guys,

I'm not exactly new to the forums but this is the first thread I've posted.

I've searched the forums for a solution on this but nothing actually works.

How do I mount a Windows network share on my linux box? I'm using Ubuntu 5.10 and I've also tried a Gentoo box. I'm sure it's a syntax problem. I can ping the box with the share but it won't hit the Windows share. Below is an example of my syntax and the error I'm getting:


mount -o user=justin 192.168.100.113:/doc/ /test/
unknown nfs mount parameter: user=0

I've also tried adding the "-t ntfs" switch. I've tried adding " " around my username but it won't allow me to do it. If I take the user=justin option out, it gives me the below error. Most likely because no username was supplied and won't authenticate.

mount: RPC: Remote system error - Connection refused

My Windows network share does definately exist and my username '
Last week I was doing Red Hat training, and I was mounting nfs shares all week as root with no problems but this is the first time I've tried mounting to my own Windows network share at home.

I'm sure it's something simple I'm missing.


Thanks
Justin
 
Old 04-03-2006, 12:34 AM   #2
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
You mount Windows shares using the smbmount program from the Samba package. This is because the way they connect is different and the code is not built into mount. To use the smbmount program, you can do this (borrowing from your example):

smbmount //192.168.100.113/doc /test -o username=justin

Notice that the remote share is referenced using a Windows UNC style name (with forward slashes instead of backslashes). Also you with be prompted for the Windows password at mount time unless you embed the paasword in the mount command, thus:

smbmount //192.168.100.113/doc /test -o username=justin,password=mypassword

The password will be in cleartext, so be sure the file permissions on the script where you use this are not world readable.

There are many other options, all described in the smbmount manpage.
 
Old 04-03-2006, 02:33 PM   #3
pretty.tulip
LQ Newbie
 
Registered: Apr 2006
Location: Egypt
Distribution: RedHat 9 & enterprise 4
Posts: 4

Rep: Reputation: 0
Hi Justin,
Mount command can take the following form:

mount -t smbfs -o username=Justin,password //192.168.100.113/c$ /mnt/c

Notes: 1.You don't have to type password=&type the password, rather if you just typed username=justin,password, it will accept it at the moment then it will ask you about it later on & it will be encrypted.
2. the source can be in the computer name from windows, you can get it by right click on my computer & properties, there will be few tabs including computer name.
3. c$ is the partition or file you want to mount in full path & should end by ($)
4. /mnt/c is the mount point.
Good luck!
 
  


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
mounting windows share with samba? lilili Linux - Software 2 03-08-2006 04:10 AM
Mounting hidden windows share ashjam10 Linux - Networking 1 11-12-2005 11:11 PM
Trouble mounting a Windows share lowpro2k3 Slackware 2 10-17-2005 05:38 AM
Samba > Trouble mounting remote NTFS share Harlin Linux - Software 6 06-20-2005 08:07 PM
mounting a windows network share? graystarr Linux - Networking 2 11-09-2002 06:57 PM


All times are GMT -5. The time now is 09:30 PM.

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