Wednesday, 5 March 2008

Knoppix mount smbfs share

This is a bit off topic, but I have spent ages searching around for the correct syntax to mount a smbfs share on my knoppix livecd session, so I am going to write it here so I dont forget again.

***
I have no idea what this does to the share itself (if anything) so dont blindly follow this in case it does something nasty to the data permissions. I will try to understand what the chmod stuff is doing afterwards...
***

sudo mkdir /mnt/smbmount
sudo chmod 777 /mnt/smbmount
sudo mount -t smbfs //10.1.1.1/share /mnt/smbmount -o username=username,dir_mode=0777,file_mode=0777

Thats it - I now have 'read write' access to the file share. If only want read-only access then leave out the chmod bit and the dir_mode and file_mode