LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-23-2004, 02:43 PM   #1
AndreL
Member
 
Registered: Feb 2004
Distribution: RH 7.3
Posts: 56

Rep: Reputation: 15
Mounting a Directory for Sharing


I'm trying to lean linux and I want to know step by step how to mount a dirctory for shareing so I can access some files in XP.
 
Old 03-23-2004, 03:33 PM   #2
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
I'm not entirely clear on this, but are you trying to make a Samba / Windows share available *from your linux box* *to your Windows box*? If that's the case, then you need to install samba, available from:
http://www.samba.org/
Post back when you've installed that, you'll need to configure it. If you're not scared of using a text editor and command line, then you'll need to edit smb.conf. If you want a graphical interface, there are many around, SWAT being the most common.
 
Old 03-23-2004, 04:37 PM   #3
AndreL
Member
 
Registered: Feb 2004
Distribution: RH 7.3
Posts: 56

Original Poster
Rep: Reputation: 15
I have samba ver 2.2.1a
 
Old 03-23-2004, 05:45 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
have you configured samba? do you have shares setup on the windows machine? if so, create a directory to mount to

cd /mnt
mkdir /xpshare

then issue

smbmount //computername/share /mnt/xpshare
 
Old 03-23-2004, 06:22 PM   #5
AndreL
Member
 
Registered: Feb 2004
Distribution: RH 7.3
Posts: 56

Original Poster
Rep: Reputation: 15
Never configed samba but thanks for that command line on how to mount a dirve. and after I make it how do I get XP to access it.
 
Old 03-23-2004, 06:29 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
that was to mount an xpshare from linux. for sharing linux directories you'll need samba configured, and directories shared such as

[share]
comment = share
path = /path/to/share
public = yes
browsable = yes
writeable = yes
 
Old 03-23-2004, 06:30 PM   #7
AndreL
Member
 
Registered: Feb 2004
Distribution: RH 7.3
Posts: 56

Original Poster
Rep: Reputation: 15
how do I type all that in at the command line
 
Old 03-23-2004, 06:34 PM   #8
AndreL
Member
 
Registered: Feb 2004
Distribution: RH 7.3
Posts: 56

Original Poster
Rep: Reputation: 15
I'm getting an error after I type
"smbmount //computername/share /mnt/xpshare"
could not resolve mount point
 
Old 03-23-2004, 06:35 PM   #9
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
you don't unless your editing your smb.conf from a command line editor such as pico. i think you are missing the point here. your not going to share, mount any directories until you configure the samba. you have some reading in front of you here

http://us1.samba.org/samba/docs/

http://us1.samba.org/samba/docs/using_samba/toc.html

once you get samba up and running, come back w/more ?'s.
good luck.
 
Old 03-23-2004, 06:42 PM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
Originally posted by AndreL
I'm getting an error after I type
"smbmount //computername/share /mnt/xpshare"
could not resolve mount point
see my last post on getting things configured. as for the command,

//computername/share

is an example. you'll need your computer name and the name of the share to put into those fields. again, see my last post, read up on samba, post back w/any troubles.
good luck.
 
Old 03-23-2004, 10:59 PM   #11
Frank_Drebin
Member
 
Registered: Feb 2004
Location: Atlanta, GA USA
Posts: 232

Rep: Reputation: 30
Smile

Looks like the mount point failed because you need to mkdir /mnt/xpshare instead of /xpshare as posted. Try mkdir /mnt/xpshare then do it again.
 
Old 03-24-2004, 06:52 AM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
the problem is that samba has not been configured. i posted a working smb.conf file that i start from when setting up samba a while back. a search for smb.conf and my username should yield results quickly. armed w/that and the documentation at the links above, one should be able to get samba going, then the other information can be applied accordingly.
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 for file-sharing dauphinfay Linux - Newbie 2 02-20-2004 11:56 AM
Sharing a windows directory under linux Wimpie22 Linux - Software 12 08-08-2003 06:23 AM
Sharing files not in Home directory tomsa Linux - Networking 0 07-22-2003 03:22 PM
directory sharing under linux jayakrishnan Linux - General 1 07-05-2003 01:04 AM
Directory File Sharing SpEcIeS Linux - Networking 1 02-09-2003 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:48 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