LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mounting a Directory for Sharing (https://www.linuxquestions.org/questions/linux-networking-3/mounting-a-directory-for-sharing-161470/)

AndreL 03-23-2004 02:43 PM

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.

andrewlkho 03-23-2004 03:33 PM

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.

AndreL 03-23-2004 04:37 PM

I have samba ver 2.2.1a

Peacedog 03-23-2004 05:45 PM

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

AndreL 03-23-2004 06:22 PM

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.

Peacedog 03-23-2004 06:29 PM

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

AndreL 03-23-2004 06:30 PM

how do I type all that in at the command line

AndreL 03-23-2004 06:34 PM

I'm getting an error after I type
"smbmount //computername/share /mnt/xpshare"
could not resolve mount point

Peacedog 03-23-2004 06:35 PM

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.

Peacedog 03-23-2004 06:42 PM

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.

Frank_Drebin 03-23-2004 10:59 PM

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.

Peacedog 03-24-2004 06:52 AM

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.


All times are GMT -5. The time now is 04:45 PM.