www.fromthevalley.com.au

Auto Mounting Samba Share

To Auto Mount a samba share you must edit the /etc/fstab:

 

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdd        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
//10.0.0.5/Phocas /mnt/ms_sql_server/ cifs username=<username>,password=<password> 0 0

 

 

 

Add the Remote mount address first,

then the local file system mount,

then the type which is smbfs,

then the options(ie username and password),

then 0,

then 0

 

Write the file and restart the box and you should see that the samba share comes back up.

HOMEAJAXAPACHEBizphoneCSSDNSGeneralGraphicsHTMLHardwareJavascriptLinuxMACMS SQLMailMicrosoftOFFICE 365PerlPostgresSEOSocial MediaVMwareWindows 10