Mounting SMB drive / windows share on debian
October 31st, 2007
Tags: debian, linux, ubuntu, windows
1. Install the required package.
CODE:
-
apt-get install smbfs
2.a Load module manually
CODE:
-
modprobe smbfs
2.b or on startup by inserting the next line into /etc/modules.
CODE:
-
smbfs
3. Create directory to mount windows share to.
CODE:
-
mkdir /mnt/smb
-
chmod 775 /mnt/smb
4. Mount the share
CODE:
-
mount -t smbfs -o username=WINDOWSUSERNAME //WINDOWS_IP/path/to/share
Now you should be able to access your SMB drive under /mnt/smb.
5. Once you are done you can unmount the drive with
CODE:
-
umount -f /mnt/smb







Leave a Reply