auto_mounting_samba_onto_ubuntu

Quick Profile

Alex Ooi Profile Picture
Hometown: Melbourne, Australia
Specializations: Java, Ruby on Rails
University: Software Engineering & Economics, Melbourne University
High School: VCE, Melbourne High School
Links:
 

Popular Articles

Thursday, July 07, 2011

this one is mainly for my own reference because its not something I do often and there seems to be a stack of alternatives out there... this is what works for me when mounting a windows network drive

To mount a windows network drive onto my ubuntu box I did the following:

  1. made sure i had the smbfs package installed (using apt-get)
  2. tested the mounting by simply using the "mount" command with the "-t smbfs" option as follows:
    mount -t smbfs //192.168.1.200/Users 
      /home/ayqooi/mounts/example 
      -o username=ayqooi,password=password,rw
    
    (the -o allows us to provide a username/password)
  3. once that was confirmed, i unmounted it and added the following to my /etc/fstab file so that it would automatically mount my network drive everytime ubuntu started (each row corresponds to a column of the fstab file):
    //192.168.1.200/Users     
    /home/ayqooi/mounts/example    
    smbfs    
    username=ayqooi,password=password,rw    
    0    
    0
    

Comments ...

Holy Guacamole! Nobody has commented on this post yet! Why don't you make a name for yourself and be the first to do so ... Any comment whatsoever, as long as it is non-defamatory, will be welcome!

Add a Comment

*
*
You must answer the following simple maths question before your comment will be accepted.
*