Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-13-2010, 01:30 PM   #1
LQ Newbie
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
mounting samba shares?

A Google search suggests that I can modify /etc/fstab to permanently mount an SMB share but I don't want to permanently mount one. I just want to mount it this once while I'm on this network. When I go home I don't want my laptop trying to automount some non-existant SMB share.

Any ideas?

In Windows, what you'd do is this:

net use z: \\computername\path\to\directory
Old 04-13-2010, 01:31 PM   #2
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Rep: Reputation: 115Reputation: 115
man mount
Old 04-13-2010, 01:40 PM   #3
LQ Newbie
Registered: Dec 2009
Location: Mammoth Lakes California/ currently in Austin Texas for a year
Distribution: slackware, ubuntu, ubuntu studio
Posts: 8

Rep: Reputation: 1
If you want to mount it manually, you can do this:
mount // /media/dir/on/local/machine
replace the IP with the IP of the machine you want to connect to, followed by the dir you want access to on the remote machine. then mount it somewhere in /media on the local machine.

it is way easier to just add it to /etc/fstab. it is automatically mounted while you are on that network. If it fails to mount, It wont cause you any problems.
Old 04-13-2010, 03:13 PM   #4
Registered: Aug 2007
Distribution: FreeBSD 8.0 xubuntu
Posts: 49

Rep: Reputation: 16
mount_smbfs -I -W your domain or workgroup //your login@server/share /mount point on your pc

This always seems to work


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 samba shares wheaties_box Linux - Software 1 01-23-2007 12:21 AM
mounting shares with samba darkleaf Linux - Software 1 02-13-2005 06:13 AM
Mounting Samba Shares (Newbie) disinformation Mandriva 3 09-20-2003 08:01 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Mounting windows shares...using samba tarballed Linux - Software 7 07-01-2003 05:11 PM

All times are GMT -5. The time now is 04:36 PM.

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