LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-31-2005, 09:51 AM   #1
towel401
Member
 
Registered: Apr 2005
Location: Ireland
Distribution: Debian
Posts: 39

Rep: Reputation: 15
mounting smb shares


what command should I use to mount a smb share on my laptop? i can mount it with
Code:
 smbmount //192.168.1.3/towel401 /mnt/laptop
but that prompts me for a password and the password=blah switch doesnt seem to work. I want to put it in a script so it will mount when ever i click an icon. i dont want to use the smb:/ kioslave because i dont always use kde and i want to browse the shares from bash.

if my laptop disconnects it causes problems when every i try to go into /mnt/laptop and it will refuse to unmount for ages, is there any way to force it to unmount, or do all this automatically so i dont have to bother with manually mounting it?
 
Old 10-31-2005, 11:54 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
the following command should work:
smbmount //machine/share /mnt/mount_point -o username="foo" password=''bar"

For your second question there's a -f flag in mount, to force, but i don't know if it will help in your case.
 
Old 10-31-2005, 12:04 PM   #3
towel401
Member
 
Registered: Apr 2005
Location: Ireland
Distribution: Debian
Posts: 39

Original Poster
Rep: Reputation: 15
no -f didnt work, but smbumount worked the last time i think. not regular umount

i from cork as well
 
Old 10-31-2005, 12:15 PM   #4
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
that's funny!! nice to meet you!
 
Old 10-31-2005, 06:59 PM   #5
apepost
Member
 
Registered: Oct 2003
Distribution: Fedora core 4
Posts: 113

Rep: Reputation: 15
Quote:
Originally posted by fr_laz
the following command should work:
smbmount //machine/share /mnt/mount_point -o username="foo" password=''bar"
I'm having success with smbmount //machine/share /mnt/mount_point -o username=foo,password=bar .

I think the [SPACE] in your example would be fatal.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting smb shares john8675309 Linux - Software 3 09-25-2005 09:54 PM
mounting smb shares in Suse 9.2 BlankFrank SUSE / openSUSE 6 01-23-2005 05:32 PM
Mounting SMB shares as a non-root user dmancine Linux - Networking 0 08-24-2004 03:24 PM
mounting smb shares Snerkel Linux - Hardware 6 07-29-2004 01:17 AM
Problem mounting SMB shares... Camasii Linux - Networking 2 12-13-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration