Operating System - Linux
1747994 Members
4648 Online
108756 Solutions
New Discussion юеВ

Mounting a Samba drive at startup

 
Chris Swenson
Advisor

Mounting a Samba drive at startup

I have 2 linux boxes, one a propriatary system I cannot mess with and the other totally at my mercy. I need to mount a drive on my system from the propriatary system via SMB. From the command line I can just type "mount -t smbfs //freya/banner /root/test -o username=someone%something" with sucess. I would like it to automount on reboot. (I am not allowed to install NFS on one system) Is there a way to do this via the smb.conf. I am not allowed to tinker with the fstab.
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: Mounting a Samba drive at startup

You cannot do it with smb.conf, you have to do it with fstab, automount/autofs or PAM.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Chris Swenson
Advisor

Re: Mounting a Samba drive at startup

I did try this in the fstaband it failed, //freya/banner /root/test smbfs username=username%somepass 0 0

Is there a way to mount the smb from the fstab? Do I have the right syntax?
Ivan Ferreira
Honored Contributor

Re: Mounting a Samba drive at startup

Please see:

http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?