LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mounting 2 file systems to one directory (https://www.linuxquestions.org/questions/linux-networking-3/mounting-2-file-systems-to-one-directory-406318/)

leupi 01-21-2006 05:48 PM

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.

Todd

michaelk 01-21-2006 06:44 PM

You can only mount one filesystem to a single directory.

snowtigger 01-21-2006 06:46 PM

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

:)

leupi 01-21-2006 08:00 PM

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.

Todd

Matir 01-21-2006 08:42 PM

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.

leupi 01-21-2006 08:56 PM

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:
Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
/dev/hda3      /              ext3    defaults,errors=remount-ro 0      1
/dev/hda5      none            swap    sw              0      0
/dev/hdc        /media/cdrom0  udf,iso9660 user,noauto    0      0
acsserver:/home /home/tparks/server    nfs    default 0 0
acsserver:/shared      /shared        nfs    default 0 0

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.

Todd

Matir 01-21-2006 10:13 PM

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.

leupi 01-21-2006 10:29 PM

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...


All times are GMT -5. The time now is 03:18 AM.