I've done a lot of searching on google and have managed to get a little closer but I'm still having some issues when mounting a remote share on my network.
When I run the command:
mount -t smbfs -o username=<name>,password=<pass>,workgroup=<workgroup> //192.168.0.30/share /mnt/server
...it looks like it works properly. But when I try to cd to /mnt/server I get the error message "No such directory". So then I do a ls -l /mnt, and it shows its there but it looks like:
d????????? ? ? ? ? ? server
That is where I'm lost and have no idea why it's like that.
I'm running Debian Lenny AMD 64 bit 2.6.26.2. Please and thanks for any help!
I was struggling to get smbfs to work the other day (can't remember exactly why now), i used pretty much the same syntax you posted above. I gave up after a while and found the cifs method to work much better.
echo
echo "Searching QUADbox's Utils directory for '$1'"
echo
if [ `mount|grep "$Utilmount$Utildir"|grep -c "$Utilmount$Utildir"` -ge 1 ]
then
echo "$Utilmount$Utildir already mounted, continuing"
else
mount-FULL -t cifs //QUADbox/$Utildir $Utilmount$Utildir -o username=xbox,password=xbox
fi
find $Utilmount$Utildir -iname $1 -type f -exec ls -l -print {} \;
umount $Utilmount$Utildir
As to your first post when it moans about no such directory yet you can see a directory, that'll be because it's showing the mountpoint ie there needs to be a mountpoint dir whether it's mounted or not, so the dir is there but just empty. No idea why yours isn't mounting, need more to go on
Quote: As to your first post when it moans about no such directory yet you can see a directory, that'll be because it's showing the mountpoint ie there needs to be a mountpoint dir whether it's mounted or not, so the dir is there but just empty
Not sure if I follow you there, but what I'm guessing at is that, its mounted at "/mnt/server" but it didn't mount properly so it's just empty?
I can connect using the GUI file browser and see all the files just fine, but I need to be able to mount for access to a truecrypt volume, since I access it on Windows and Linux.
I would also be more than happy to provide any other information though.
ps. Trying to migrate from windows to Linux only but it's a rough road lol.