Wednesday, May 28, 2008

Mount a network drive

Here is how I am mounting network drives at the moment. I am having trouble getting this working in /etc/fstab, but it works fine manually as root. The command will look like this:

mount -t cifs //servername/share /mountpoint -o user=username

Mine looks like this:
mount -t cifs //192.168.47.63/tmp /mnt/Abyss_tmp -0 user=jzachari

You should also be able to use the FQDN instead of IP, and you can put in the password, or reference a password file. If you leave it like mine it prompts you for the password.
Use "man mount.cifs" for the manual.


1 comment:

Anonymous said...

You write very well.