Mounting A Network Drive On Startup Using Linux Ubuntu 7.10 On A Macbook Pro

http://celeb.wohoo.co.uk/wp-content/uploads/2007/02/nas-where-are-they-now.jpgI wanted to have my network attached storage (NAS) always mount on startup.

To do this there must first be a place to mount to, so create a folder (I created mine at /media/nas) either visually or using the following line in terminal:

sudo mkdir /media/nas

Once this is done the following line mounts the drive:

sudo mount -t cifs -o username=username,password=password //192.168.1.10/nas /media/nas

Once that is all working to get the NAS to mount every time add the following line to the bottom of /etc/fstab:

#Mount NAS
//192.168.1.10/nas /media/nas cifs username=username,password=password

Add the correct username and password and you’re away. If it’s a guest account the username is guest and password remains blank. The drive mounts fine at startup and when no network connection is present, nothing happens. When you then connect, the NAS will be mounted automatically, at least in my experience.

There may be some issues with permission so you might need to chmod and chown the folder created to mount to, but I have had no problems as yet.

USB Sparks

Ever seen sparks when you plug in a USB device?  I just did when I plugged my Olympus PS-100 printer into my Macbook Pro.  It scared me but everything seems to work..

« Previous Page