|
Problems with mounting windows share (Solved)
|
|
Junior Member
|
27. January 2010 @ 14:12 |
Link to this message
|
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!
|
Advertisement
|
  |
|
Moderator
|
27. January 2010 @ 15:17 |
Link to this message
|
Here's an example of what i use in Puppy linux ~
Quote: Utilmount="/mnt/network/QUADbox/"
Utildir="Utils-to-cd"
mount-FULL -t cifs //QUADbox/$Utildir $Utilmount$Utildir -o username=xbox,password=xbox
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.
Main PC ~ Intel C2Q Q6600 (G0 Stepping)/Gigabyte GA-EP45-DS3/2GB Crucial Ballistix PC2-8500/Zalman CNPS9700/Antec 900/Corsair HX 620W
Network ~ DD-WRT ~ 2node WDS-WPA2/AES ~ Buffalo WHR-G54S. 3node WPA2/AES ~ WRT54GS v6 (inc. WEP BSSID), WRT54G v2, WRT54G2 v1. *** Forum Rules ***
|
Junior Member
|
28. January 2010 @ 10:00 |
Link to this message
|
Hmmm. I've tried replacing smbfs with cifs and got the same result. Is that an example of a shell script you posted?
I'll also look into what mount-FULL is when I get back home lol. My background in linux is somewhat limited. I can use it but I don't know much.
|
Moderator
|
28. January 2010 @ 12:19 |
Link to this message
|
Yeah it's just a few lines from a simple script i knocked up ~
Quote: if [ $# -ne 1 ]
then
echo "Usage: $0 <input1>" >&2
echo "Make sure <input1> equates to partial filename"
exit 1
fi
Utilmount="/mnt/network/QUADbox/"
Utildir="Utils-for-burning-to-cd"
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
Main PC ~ Intel C2Q Q6600 (G0 Stepping)/Gigabyte GA-EP45-DS3/2GB Crucial Ballistix PC2-8500/Zalman CNPS9700/Antec 900/Corsair HX 620W
Network ~ DD-WRT ~ 2node WDS-WPA2/AES ~ Buffalo WHR-G54S. 3node WPA2/AES ~ WRT54GS v6 (inc. WEP BSSID), WRT54G v2, WRT54G2 v1. *** Forum Rules ***
|
Junior Member
|
28. January 2010 @ 14:44 |
Link to this message
|
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.
|
Junior Member
|
4. February 2010 @ 14:03 |
Link to this message
|
Just an update: My problem was user error. Always remember to type the path name correctly.
|
Advertisement
|
  |
|
Moderator
|
4. February 2010 @ 14:16 |
Link to this message
|
Ah well, as long as it's working
Main PC ~ Intel C2Q Q6600 (G0 Stepping)/Gigabyte GA-EP45-DS3/2GB Crucial Ballistix PC2-8500/Zalman CNPS9700/Antec 900/Corsair HX 620W
Network ~ DD-WRT ~ 2node WDS-WPA2/AES ~ Buffalo WHR-G54S. 3node WPA2/AES ~ WRT54GS v6 (inc. WEP BSSID), WRT54G v2, WRT54G2 v1. *** Forum Rules ***
|