User User name Password  
   
Thursday 21.11.2024 / 10:46
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > software, operating systems and more > linux - general discussion > problems with mounting windows share (solved)
Show topics
 
Forums
Forums
Problems with mounting windows share (Solved)
  Jump to:
 
Posted Message
Junior Member
_
27. January 2010 @ 14:12 _ Link to this message    Send private message to this user   
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    Send private message to this user   
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    Send private message to this user   
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    Send private message to this user   
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    Send private message to this user   
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    Send private message to this user   
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    Send private message to this user   
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 ***
afterdawn.com > forums > software, operating systems and more > linux - general discussion > problems with mounting windows share (solved)
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2024 by AfterDawn Ltd.

  IDG TechNetwork