Linux - NetworkingThis 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.
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.
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.
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.
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.