Mount a network share via Samba PDF Print E-mail
Written by JLangbridge   
Wednesday, 03 June 2009 11:33

I own a LaCie Big Disk Network, a simple home NAS server. It has a hard drive, embedded controller and is small and quiet enough to fit anywhere. Mine lives under the sofa. It can be accessed by FTP or by a WIndows share. I usually transfer photos and data to and from the disk via FTP, but having a Windows share is easier, let's face it. Gnome can connect to the drive using a nice interface, asking for a user and password, but I needed something more basic, an entry in the fstab file for my monitor-less server.

In order to mount the drive from the command line, try this:

mount -t cifs -o user=<username>,pass=<password>,uid=<uid> //192.168.0.1/share /mnt/nas

This will allow you to mount the drive under the specified folder, but also to give the read/write rights to UID <uid>, something that had been a problem for me. With this, the specified user can freely access the system, make files, create folders and run all of my backup scripts.

 

Last Updated on Monday, 29 June 2009 20:31
 

Add comment


Security code
Refresh