LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-30-2001, 06:56 PM   #1
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
windows share question


i'm trying to mount a windows drive on my redhat machine. it works fine when i mount like this:

mount -t smbfs \\\\Computer\\ShareName /mnt/mntpnt

but when i try and mount a folder within the share, it dosen't work:

mount -t smbfs \\\\Computer\\ShareName\\folder

is it possible to mount a folder within a share? or am i just going to need to make a share on my windows machine for every folder i want to mount?
 
Old 08-30-2001, 07:52 PM   #2
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
did you try:

mount -t smbfs //computer/folder


Leave out the "ShareName" part since the "folder" is shared anyway..
 
Old 08-30-2001, 07:58 PM   #3
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Original Poster
Rep: Reputation: 30
that's not really what i'm getting at... what i want to do is mount a folder within a share. for example, my windows folders look like this:

c:\mp3s\rock\

i have the mp3s folder shared, but want to mount the rock folder on my linux machine, i don't want the entire mp3s folder mounted, just the rock folder. but my windows shares appear like this:

\\Computer\\mp3s

see what i'm getting at? i want to mount a folder underneath that share... but linux returns an error says the share does not exist.
 
Old 08-30-2001, 08:13 PM   #4
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
that's what I was trying to say.....


Is the rock folder shared as well?? If not, share it then go

\\Computer\\rock

instead of

\\Computer\\mp3s


it "should" work....
 
Old 08-30-2001, 08:19 PM   #5
loganwva
Member
 
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117

Rep: Reputation: 15
mount -t smbfs //computer_name/share /mnt/mount point

Mine is like this mount -t smbfs /winxp/f /mnt/disk

winxp is my windows box name, the windows IP address will work in place of the computer name, f is the drive or share I'm mounting, it could also be a folder share, and /mnt/disk is my Linux mount point.
 
Old 08-30-2001, 11:09 PM   #6
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by nuzzy
that's what I was trying to say.....


Is the rock folder shared as well?? If not, share it then go

\\Computer\\rock

instead of

\\Computer\\mp3s


it "should" work....
ok, that's what i'm getting at though. i DON'T want to share the rock folder. i have quite a few subfolders of my initial share that i would like to mount, but it just seems a little tedious to have to share every single folder... not to mention inefficient.
 
Old 08-31-2001, 05:31 PM   #7
loganwva
Member
 
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117

Rep: Reputation: 15
I connected to shared subfolder without sharing the root folder like this:

I created a folder on my C:\ dirve and called it "share", my C:\ is not shared.

To mount the folder "share" I did this:

mount -t smbfs //winxp/share /mnt/disk

This gave me access to only the folder "share" not the rest of C:\ drive.
Hope this helps
 
Old 08-31-2001, 08:17 PM   #8
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
Windows Share

I've tried mounting a WIndows partition on a Windows ME box with full access to the fiolder using this command:

mount -t smbfs //windows/drive /mnt/win
and this one
mount -t smbfs ////windows/drive /mnt/win

with this first one command i get these errors:

session request to WINDOWS failed
session request to *SMBSERVER failed
SMB connection failed

and the second one:

session request to failed
SMB connection failed
 
Old 08-31-2001, 11:13 PM   #9
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Original Poster
Rep: Reputation: 30
ok... apparantly, no one understands what i'm getting at. so let me try to explain AGAIN.

i have a folder shared on my win2k machine like this:

\\ComputerName\ShareName

under this directory structure, i have a certain number of folders beneath the ShareName. i want to mount these other folders to my linux machine WITHOUT specifically sharing them.

i have no problem mounting ShareName using this command:

mount -t smbfs -o username=user,password=pw \\\\ComputerName\\ShareName /mnt/mntpoint

HOWEVER, if i want to mount a directory within the share, it does not work:

mount -t smbfs -o username=user,password=pw \\\\ComputerName\\ShareName\\SubDirectory /mnt/mntpoint

so basically, i want to mount SubDirectory without sharing it (since i have a large number of sub directories under that share, and sharing them all is more work than it needs to be, and quite inefficient)
 
  


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
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Question about Samba 2.2.8a Setup to Share with Windows XP eternalcrow Linux - Software 2 12-15-2003 01:37 PM
Probably a silly question, but is it possible to share with Windows XP? cubeman Linux - Hardware 3 10-18-2003 03:41 PM
Stupid Question #2 - Printing to a windows printer share baldy3105 Linux - Newbie 4 01-20-2003 10:50 AM
Mount windows share - not standard question hopefully! Flibble Linux - General 4 10-17-2002 10:22 AM

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

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