Sunday, January 28, 2007

Connecting to a Network Drive on Startup

This post is mostly drawn from the Ubuntu Starter Guide directions with some modifications and assumes you already have Samba set up (see previous post on file sharing). You also want to set a mount point on your local computer for the shared directory. To do this, pick a name for the folder (I'll choose Storage) and type this into a terminal:
sudo mkdir /media/Storage

Then you want to edit /etc/fstab by adding a line for the network folder as shown below. The formula should be:
(network location) (mount point) (filesystem) (options) (0) (0)

So assuming my shared folder is named Bob and is on my desktop named Ugly, and assuming that the mount point on my local computer is at /media/Storage, then the fstab entry would be as follows:
//ugly-desktop/Bob /media/Storage smbfs defaults,users,dmask=777,fmask=777 0 0

No comments: