LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-05-2005, 09:12 PM   #1
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Rep: Reputation: 131Reputation: 131
How to connect to a Windows share?


I have a Win2000 box at 10.0.0.12 with a share at \\10.0.0.10\c\. How, from my slackware 10.0 box, can I map/mount this share? Ideally, I'd like to see it at /mnt/winbloze/fat-c .
 
Old 04-05-2005, 09:17 PM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
First, make sure you've got Samba installed, and your kernel sees the smb filesystem. If you're using an install kernel, you don't have to worry about the latter part, and Samba is in the N set of packages for Slackware.


That done, make sure that you have the directory /mnt/winbloze/fat-c existing and empty. Then, as root, type:
smbmount //10.0.0.12/c /mnt/winbloze/fat-c -o guest

When that works, edit your /etc/fstab to include the line:
Code:
//10.0.0.12/c     /mnt/winbloze/fat-c     smbfs     noauto,users,rw     1     0
so that you can mount/unmount it as a regular user, and you're up and running.
 
Old 04-05-2005, 09:19 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
smbmount \\10.0.0.10\c /mnt/winbloze/fat-c

Edit: Late..
 
Old 04-06-2005, 08:02 PM   #4
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
hmm

ok Ive done that, and I get a response in the terminal of anonymous login success

then the mount point disappears

my line in fstab is as follows

\\192.168.1.107\mp3 /mnt/xp1 smbfs noauto,users,rw 1 0

what did I do wrong ?
 
Old 04-06-2005, 08:30 PM   #5
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
This was my final command line that did exactly what I wanted:

mount -t smbfs -o guest //10.0.0.12/c /mnt/zootal/fat-c

I stuck this in my rc.local instead of smb.conf

Thanks
 
Old 04-06-2005, 09:26 PM   #6
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Probably not a good idea to have it in your rc.local. It'll work, but meh.


Bejiita, your problem is the backslashes, and the lack of the "guest" option. I misspoke earlier, when I posted mine. I was reconstructing it from memory....

For you, it looks like it should be:
//192.168.1.107/mp3 /mnt/xp1 smbfs noauto,users,rw,guest 1 0

With the noauto, it will not mount at bootup. You need to type "mount /mnt/xp1" as a user. I've found that's necessary if I'm going to be able to upload as well as download, but YMMV.
 
Old 04-06-2005, 09:30 PM   #7
subekk0
Member
 
Registered: Sep 2003
Location: Dallas, TX.
Distribution: Slacking since '94
Posts: 153

Rep: Reputation: 32
a command that might work a little better for you and be a little more secure would be:
mount -t smbfs -o username=name,password=password,workgroup=workgroup //machine/share /mnt/mntpoint

Add this to a script that is only executable by you and then add that to /usr/local/bin and when you want to connect to the drive just type in the name of the script at the # and then voilla!
 
Old 04-06-2005, 10:41 PM   #8
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
Quote:
Originally posted by killerbob
Probably not a good idea to have it in your rc.local. It'll work, but meh.
Yeah, I agree, but I didn't know how to translate it to an fstab entry, and I was rushed for time
 
Old 04-07-2005, 04:17 PM   #9
bejiita
Member
 
Registered: Feb 2004
Location: Upstate NY
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
it would seem that its all working. my only concern is after it is mounted /mnt/xp1 disappears from the /mnt directory

maybe its a permissions issue on the directory ??
 
Old 04-08-2005, 12:24 PM   #10
subekk0
Member
 
Registered: Sep 2003
Location: Dallas, TX.
Distribution: Slacking since '94
Posts: 153

Rep: Reputation: 32
Quote:
Originally posted by bejiita
it would seem that its all working. my only concern is after it is mounted /mnt/xp1 disappears from the /mnt directory

maybe its a permissions issue on the directory ??
yep. check your permissions on the Windows share. If you add whatever user you are on Slackware to the users on Windows it should resolve the issue. However, you should also check the permissions on /mnt/xp1 directory and make sure that the owner and group are correct.
 
  


Reply



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
Trying to connect to windows share? rerun07 AIX 22 06-17-2005 04:53 PM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Authenticating through Windows active directory to connect to a Linux share ganninu Linux - General 1 04-07-2005 05:39 PM
connect to windows share without samba? zuessh Linux - Software 7 01-30-2004 02:37 PM
Connect to Windows Share plexi100 Linux - Newbie 6 11-12-2003 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:03 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
Open Source Consulting | Domain Registration