Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: smepenguin on May 28, 2007, 05:09:20 PM

Title: Mount Windows Share on Boot
Post by: smepenguin on May 28, 2007, 05:09:20 PM
I have mount working successfully to a windows share.
But when I reboot it is not there. I have searched for fstab and smb.conf but am still not clear on how to setup an automount when/if the server reboots.

Your help is appreciated.

I am using the following command to mount the share:
mount -o username=username,password=password //ipaddress/share /mnt/mntpoint

Thanks in advance!!
Title: Re: Mount Windows Share on Boot
Post by: dmay on May 28, 2007, 07:35:07 PM
Quote from: "smepenguin"
I have mount working successfully to a windows share.
But when I reboot it is not there. I have searched for fstab and smb.conf but am still not clear on how to setup an automount when/if the server reboots.

Your help is appreciated.

I am using the following command to mount the share:
mount -o username=username,password=password //ipaddress/share /mnt/mntpoint

Thanks in advance!!

Try adding to your /etc/fstab something like this:

Code: [Select]
//ipaddress/share /mnt/mntpoint smbfs username=username,password=password 0 0
Darrell
Title: Mount Windows Share on Boot
Post by: smepenguin on May 28, 2007, 08:11:24 PM
Thanks for the tip, but it didn't seem to work...

Here's how my /etc/fstab looks:

/dev/main/root          /                       ext3    usrquota,grpquota        1 1
/dev/md1                /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/main/swap          swap                    swap    defaults        0 0
//ipaddress/share /mnt/mntpoint smbfs username=username,password=password 0 0
/dev/hda                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0

Thank you....
Title: Mount Windows Share on Boot
Post by: leso on June 02, 2007, 09:37:21 PM
use :

/etc/rc.local

copy paste your sentence on this file .
But the method with /etc/fstab may work also.