LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-21-2006, 05:48 PM   #1
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Rep: Reputation: 30
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
 
Old 01-21-2006, 06:44 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,139

Rep: Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345
You can only mount one filesystem to a single directory.
 
Old 01-21-2006, 06:46 PM   #3
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
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

 
Old 01-21-2006, 08:00 PM   #4
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Original Poster
Rep: Reputation: 30
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
 
Old 01-21-2006, 08:42 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
Old 01-21-2006, 08:56 PM   #6
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Original Poster
Rep: Reputation: 30
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
 
Old 01-21-2006, 10:13 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
Old 01-21-2006, 10:29 PM   #8
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Original Poster
Rep: Reputation: 30
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting to file systems n e r d Linux - Hardware 3 07-22-2004 07:53 AM
Mounting Win File Systems mattp Linux - Newbie 4 03-09-2004 06:33 AM
Mounting NTFS File Systems quorn Linux - General 7 10-09-2003 02:56 PM
mounting two file systems to one point sophie Linux - Hardware 4 07-01-2003 12:47 PM
mounting file systems philfighter Linux - General 5 08-20-2001 08:20 PM

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

All times are GMT -5. The time now is 02:43 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