mounting a samba share locally

This way you can mount a remote samba share locally.

It is useful to make some applications which do not support smb:// filepath work on remote files thinking they are actually local files.

First make sure you have installed smbfs via the package manager (or sudo apt-get install smbfs ).

Then load smbfs module
sudo modprobe smbfs
if you want it being loaded automatically at every boot type
sudo echo ‘smbfs’ >> /etc/modules

Finally mount your remote share as follows

sudo mount -t smbfs -o username=WINDOWSUSER,password=WINDOWSPASSWORD,
uid=LINUXUSER,gid=LINUXGROUP //YOURSERVER/SHARE /mountpoint

if needed also put dmask=777,fmask=777,umask=777 options after -o argument. Note that this makes the mounted files and folder totally accessible by anybody!

Note: if you get an error and tail dmesg shows “smbfs: mount_data version 1919251317 is not supported” you did not istall smbfs package, did you?

Reference: http://www.debian-administration.org/articles/165

 

Related posts:

  1. mounting .iso & .img files
  2. AcetoneISO the Daemon Tools and UltraISO for linux
  3. “What package is that file in?”
  4. ext3 > ext2
  5. problems mounting usb drive after installing from usb
  6. “bash: ./configure: /bin/sh: bad interpreter: Permission denied”
  7. Chrooting: how to gain access to a bricked install
| Print This Post Print This Post | Email This Post Email This Post
RSS 2.0 | Trackback | Comment

Leave a Reply

XHTML: You can use these tags: b, cite, code, em, i, q cite="", strike, strong.