Mozekoze

Mozekoze

Wow, a blog..How original

Mozekoze RSS Feed
 
 
 
 

Mounting samba-share on boot

You’ll need the “smbfs”-package for your distribution and rememer to create the mount-point first.

Add the following to your /etc/fstab, all on one line:

//127.0.0.1/folder  /media/smbshare      smbfs   username=yourusername,password=yourpassword    0 0

Of course, fill in the IP-adress, fold and username/password for your share. If you often boot without being near the samba share I would reccommend creating a simple shell-script that mounts the share for you when run, something like this should work:

#!/bin/sh

mount -t smbfs -o username=myname password=mypass //127.0.0.1/folder /media/smbshare

Leave a Reply