Koozali.org: home of the SME Server

Mounting the FS from one SME into another SME

Lasse Johansson

Mounting the FS from one SME into another SME
« on: November 19, 2002, 11:06:34 AM »
Has anyone done something like this before?

I need to mount an an IBAY from server_2 into a mountpoint at server_1.

It should really work with smbmount, but my brain isn't bright enough to figure out exactly how...

If I use something like the following (on server_1):

"mount -t smbfs -o username=user,password=xxxxxx //server_2/ibay /...path_to_mountpoint/mountpoint"

...it really works!

But how do I make this mount "permanent" (ie automatially mounts at a reboot of server_1)

...Anyone????????

Byte

Re: Mounting the FS from one SME into another SME
« Reply #1 on: November 19, 2002, 12:22:37 PM »
You edit the fstab (located in /etc/fstab) if you search on here for editing fstab you should find some good answers quite simple to do :-)

Rgds

Byte

Lasse Johansson

Re: Mounting the FS from one SME into another SME
« Reply #2 on: November 19, 2002, 01:06:07 PM »
Byte wrote:
>
> You edit the fstab (located in /etc/fstab) if you search on
> here for editing fstab you should find some good answers
> quite simple to do :-)
>
My /proc/filesystems doesn't include smbfs...

This is the /proc/filesystems:
        ext2
nodev   proc
        iso9660
nodev   devpts

Neither is smbfs mentioned in "man fstab"

(On my desktop Mandrake box, it is, but that's not where I want to make the mount.....)

Byte

Re: Mounting the FS from one SME into another SME
« Reply #3 on: November 19, 2002, 01:58:35 PM »
Ok the here is what you need to enter into the fstab something like this for example

//SMB_server/share local_mount_dir smbfs options 0 0

then on bootup it will load automatically, i use this on a few machine's

Rgds

Byte

Lasse Johansson

Re: Mounting the FS from one SME into another SME
« Reply #4 on: November 19, 2002, 04:04:42 PM »
Great, and thanks for your answer!

Just a last one:

Do you have to "sync" users and groups on those machines?

Otherwise, I don't realize how to get through this:

Firstly I edit fstab as you descibed.

Then:

[root@myserver /etc]# mount -a
Password:


(The IBAY in server_2 is set to:

 group=everyone
write=group, read=everyone)

Byte

Re: Mounting the FS from one SME into another SME
« Reply #5 on: November 19, 2002, 04:21:04 PM »
ok if you need password to be verified use this line instead in the fstab

//server/example /mnt/example smbfs username=admin,password=pass

not sure what you mean by syncing users and groups tho, or did you mean that you want to sync A to B to be the same?

Rgds

Byte

Lasse Johansson

Re: Mounting the FS from one SME into another SME
« Reply #6 on: November 20, 2002, 10:31:57 AM »
What I mean is to enable the SME-users on server_1 (the server with the mount point) to get write access to the mounted ibay from server_2

Can you do that?

Byte

Re: Mounting the FS from one SME into another SME
« Reply #7 on: November 20, 2002, 01:47:00 PM »
Yes you can i noticed you had write=group you should maybe try everyone

Byte