LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 10-31-2005, 09:51 AM   #1
towel401
Member
 
Registered: Apr 2005
Location: Ireland
Distribution: Mepis, mdk10
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: Mepis, mdk10
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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/Novell 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


All times are GMT -5. The time now is 07:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration