You are not logged in.
Pages: 1
I followed the Wiki's guide for mounting a window's share, but when I try mounting with the smbmount command I get:
bash: smbmount: command not found
I'm not sure what's going on because I did install smbclient.
Offline
Dunno about smbclient to access shares... why not just mount it as if it were any other partition? Make a .credentials file that contains your l/p to the windows box like this:
$ su -
# nano ~/.credentialsThe file should have two lines containing the username and password you're windows share wants, example:
username=bananaeater
password=fileZsa21Now make that file restricted to root only to keep it safe:
# chmod 600 ~/.credentialsNow you'll make a mount point for the windows share:
# mkdir /media/shareFinally mount it:
# mount -t cifs -o credentials=/root/.credentials \\windows_machine_name\share /media/shareIf you do not have the windows_machine_name linked it an IP address in your /etc/hosts you'll substitute the IP addy of the windows box in that mount statement for the word 'windows_machine_name' as I typed it.
If you like it, go ahead and add a line to your /etc/fstab to mount the thing automatically or just make a script out of that mount line.
Last edited by graysky (2009-06-28 19:49:47)
Offline
That didn't work? When I tried the mount command:
# mount -f cifs -o credentials=~/.credentials \\192.168.1.102\music /mnt/shares/isaacI got the help for the mount command which would mean that the syntax is incorrect?
Offline
Instead of using ~ in your mount statement, type it out:
/root/.credentials
Offline
I use this same method all the time, but the syntax here is slightly incorrect:
mount -f cifs -o credentials=~/.credentials \\192.168.1.102\music /mnt/shares/isaac
should be:
mount -t cifs -o credentials=~/.credentials //192.168.1.102/music /mnt/shares/isaac
You may also have to run it with sudo or as root.
Last edited by xyrico (2009-06-28 19:49:43)
Offline
@xyrico - dammit... that should be -t not -f in my post ![]()
Offline
Thanks guys I'll try those when I get home ![]()
Offline
Offline
Ah yes they worked perfectly haha.
Offline
Pages: 1