Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-30-2001, 06:56 PM
|
#1
|
Member
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472
Rep:
|
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?
|
|
|
08-30-2001, 07:52 PM
|
#2
|
Member
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204
Rep:
|
did you try:
mount -t smbfs //computer/folder
Leave out the "ShareName" part since the "folder" is shared anyway..
|
|
|
08-30-2001, 07:58 PM
|
#3
|
Member
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472
Original Poster
Rep:
|
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.
|
|
|
08-30-2001, 08:13 PM
|
#4
|
Member
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204
Rep:
|
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....
|
|
|
08-30-2001, 08:19 PM
|
#5
|
Member
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117
Rep:
|
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.
|
|
|
08-30-2001, 11:09 PM
|
#6
|
Member
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472
Original Poster
Rep:
|
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.
|
|
|
08-31-2001, 05:31 PM
|
#7
|
Member
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117
Rep:
|
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
|
|
|
08-31-2001, 08:17 PM
|
#8
|
Member
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498
Rep:
|
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
|
|
|
08-31-2001, 11:13 PM
|
#9
|
Member
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472
Original Poster
Rep:
|
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)
|
|
|
All times are GMT -5. The time now is 05:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|