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.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Rep:
Mounting 2 file systems to one directory
I have a server with two directories that I exported, /shared and /home. I want to mount those to /home/tparks/server directory on my workstation. Whenever I mount one, the other one unmounts. Can you only mount one directory to a directory or is something else happening? Thanks.
Yes that is correct, you can only mount one filesystem to a directory.
Make a directory for each mount point in /home/tparks/server. Example, /home/tparks/server/shared then mount to that folder
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
OK, that makes sense with what I am seeing.
Question: What is the 'standard' way of setting up network shares on the server? I have about seven workstations on the network, where on the server does one usually put the network shares? Would everyones files be in their home folder (/home/user) on the server or is it better practice to put a directory on / for each user and set the permissions accordingly?
What about files that need to be accessed by more then one person? I would think that they should not go into a users home directory on the server. Just wondering what standard operating procedure says about this, thanks.
Well, it all depends on your situation, but I have a fileserver where each user's individual share is simply their home directory, and there are a few common shares that are controlled by group and public access. These are, on my system, in /shares/public/SHARENAME and /shares/group/GROUPNAME.
The /shares choice is just arbitrary, but stays out of the way of ordinary/other data.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
OK, that helps.
I have another question problem that I am having trouble getting around. I have FC4 on a server and Ubuntu on a laptop and I cannot get the shares on the server to automount on the laptop. My fstab file is:
I am trying to mount the last two entries. They will mount fine if I use the mount command but they will not automount after a reboot. Once they mount I can access them just fine in Linux but I can only access /shares in WinXP. I get a permission denied error trying to access /home or /tparks so Samba must be working fine or I would think that I could not access anything while in WinXP. Any ideas? BTW, thanks for the previous post.
Hrrm, I'm honestly not sure why those won't automount. I nfs mount a few things, but using Gentoo... and they work fine. The only thing I can think of is that the OS attempts to mount them before networking is enabled. Does anything show up in the logs?
As for XP, you'll need to connect using the proper username and password (per smbpasswd). Check your samba logs to see if it shows any detail on the errors.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
I'm not sure where the logs are but as soon as I find them I'll check. I did notice though that when I manually mount them they take well over a minute before they are mounted and I am back at a command prompt. Usually things mount much quicker then that.
As far as Samba is concerned I'm sure that I have the right usernames and passwords, I even redid the samba shares and users just to see but it made no difference. I can access /shared but not /home or /tparks.
I think that I hear penguins laughing in the distance...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.