System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Mounting a Samba drive at startup

 

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
Highlighted
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?
Highlighted

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?
Highlighted
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?